From 4c001af46d511bdfff30a564ba83e5c94c2c8847 Mon Sep 17 00:00:00 2001 From: javadbat Date: Thu, 27 Jun 2024 12:35:56 +0330 Subject: [PATCH] fix: update code for new ts build --- lib/JBDateInput.tsx | 2 +- tsconfig.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/lib/JBDateInput.tsx b/lib/JBDateInput.tsx index c5ff7bb..65cd391 100644 --- a/lib/JBDateInput.tsx +++ b/lib/JBDateInput.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState, useImperativeHandle, useCallback, D import 'jb-date-input'; // eslint-disable-next-line no-duplicate-imports import { JBDateInputWebComponent, JBDateInputInputTypes, JBDateInputValidationItem, JBDDateInputInboxElementWebComponent,JBDateInputValueObject } from 'jb-date-input'; -import { useEvent } from '../../custom-hooks/UseEvent'; +import { useEvent } from '../../../common/hooks/use-event'; export {JBDateInputInputTypes,JBDateInputValueObject}; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..8f060cd --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "baseUrl": "." + }, + "include": [ + "../../common/scripts/**/*.ts", + "../../common/hooks/**/*.ts", + "../../common/hooks/**/*.js", + "lib/**/*.ts", + "lib/**/*.tsx" + ], + "exclude": [ + "node_modules", + "**/*.spec.ts", + "dist", + ], + "extends":"../tsconfig-react.json" +} \ No newline at end of file