diff --git a/package.json b/package.json index ecf1dc1..f1f76b4 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "version-next": "^1.0.2" }, "scripts": { - "build": "tsc --project tsconfig.json && echo 'declare module \"postcss-preset-mantine\";' > dist/index.d.ts", + "build": "tsc --project tsconfig.build.json && echo 'declare module \"postcss-preset-mantine\";' > dist/index.d.ts", "lint": "eslint src --cache", "format": "prettier src", "format:check": "prettier --check src", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..7dc774d --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "lib": ["es2018", "dom"], + "outDir": "./dist", + "rootDir": "./src", + "target": "esnext", + "module": "CommonJS", + "moduleResolution": "node", + "strict": true, + "esModuleInterop": true, + "declaration": false + }, + "exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/tests/**", "./scripts"] +}