diff --git a/packages/nextjs/tsconfig.json b/packages/nextjs/tsconfig.json index 32c6b33..57d9cda 100644 --- a/packages/nextjs/tsconfig.json +++ b/packages/nextjs/tsconfig.json @@ -1,20 +1,8 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, "noEmit": true, - "noUnusedLocals": true, - "esModuleInterop": true, - "module": "CommonJS", - "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", @@ -24,7 +12,8 @@ { "name": "next" } - ] + ], + "strictNullChecks": true }, "include": [ "next-env.d.ts", diff --git a/packages/ui/package.json b/packages/ui/package.json index 495e90f..f562064 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -8,7 +8,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "scripts": { - "build": "tsup", + "build": "rm -rf dist && tsup", "storybook": "storybook dev -p 6006", "storybook:build": "storybook build", "storybook:start": "test -d storybook-static || pnpm run storybook:build && http-server --port 6006 --silent true storybook-static", diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index f8a1661..b2baa0e 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -1,28 +1,7 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noUnusedLocals": true, - "esModuleInterop": true, - "module": "CommonJS", - "moduleResolution": "node", "jsx": "react-jsx", "outDir": "./dist" - }, - "include": [ - "**/*.ts", - "**/*.tsx", - ], - "exclude": [ - "node_modules", - "dist", - ".storybook" - ] -} + } +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..704deee --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noUnusedLocals": true, + "esModuleInterop": true, + "module": "CommonJS", + "moduleResolution": "node" + }, + "include": [ + "**/*.ts", + "**/*.tsx", + ], + "exclude": [ + "node_modules", + "dist", + ".storybook" + ] +}