Skip to content

Commit

Permalink
馃敤 Update build to use tsc compiler to generate type definitions
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
kiliman committed Nov 10, 2022
1 parent 233522a commit 936ebf2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -7,13 +7,15 @@
"migrate-flat-routes": "dist/cli.js"
},
"files": [
"dist/**/*.js",
"README.md"
"dist/**/*.j",
"dist/**/*d.ts",
"README.md",
"CHANGELOG.md"
],
"sideEffects": false,
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && esbuild --format=cjs --sourcemap --outdir=./dist ./src/*.ts",
"build": "tsc --project tsconfig.build.json --module CommonJS --outDir ./dist",
"test": "jest",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.build.json
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*"],
"exclude": ["**/*.test.ts"]
}
5 changes: 1 addition & 4 deletions tsconfig.json
Expand Up @@ -8,10 +8,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"declaration": true,
"jsx": "react-jsx",
"importHelpers": true,
"noEmit": true
"declaration": true
},
"exclude": ["node_modules"],
"include": ["src/**/*.ts", "src/**/*.tsx", "test/**/*.ts"]
Expand Down

0 comments on commit 936ebf2

Please sign in to comment.