diff --git a/package.json b/package.json index e10c4de..2e97338 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..c52380d --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["**/*.test.ts"] +} diff --git a/tsconfig.json b/tsconfig.json index 100c3e8..88e7871 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"]