Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Dec 21, 2023
1 parent 9387f0f commit 6ab81bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 14 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit 6ab81bd

Please sign in to comment.