diff --git a/package.json b/package.json index 80037b8..5778e7b 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,9 @@ "postinstall": "husky install", "prepack": "yarn clean && yarn build", "prettier": "prettier --check . --cache", - "test": "yarn lint && yarn tsc && yarn prettier && yarn unit", + "test": "yarn lint && yarn tsc && yarn tsc:node16 && yarn prettier && yarn unit", "tsc": "tsc --noEmit", + "tsc:node16": "tsc --project tsconfig.node16.json --noEmit", "unit": "vitest" }, "keywords": [ diff --git a/src/index.ts b/src/index.ts index e080c1d..aa8a049 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ -import AsyncButton from './AsyncButton.js'; +import AsyncButton from './AsyncButton'; -export type { AsyncButtonProps } from './AsyncButton.js'; +export type { AsyncButtonProps } from './AsyncButton'; export { AsyncButton }; diff --git a/tsconfig.node16.json b/tsconfig.node16.json new file mode 100644 index 0000000..60565a0 --- /dev/null +++ b/tsconfig.node16.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "moduleResolution": "node16", + "skipLibCheck": true + }, + "exclude": ["src/**/*.spec.ts", "src/**/*.spec.tsx"] +}