Skip to content

Commit

Permalink
Better test tsc config
Browse files Browse the repository at this point in the history
  • Loading branch information
JAForbes committed Feb 15, 2024
1 parent 7f9d5b3 commit 90c33b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
"test": "node --import tsx --test test/*.ts",
"dev": "node --watch --import tsx --test test/*.ts",
"build:bundle": "esbuild lib/index.ts --bundle --format=esm --sourcemap --allow-overwrite --outfile=./dist/superhistory.esm.js",
"build:types": "npx tsc ./test/index.ts --noEmit --esModuleInterop && npx tsc",
"build:types": "npx tsc -p tsconfig.test.json && npx tsc",
"build:clear": "rm -fr ./dist",
"build": "npm run build:clear && npm run build:bundle && npm run build:types",
"prepublishOnly": "npm version prerelease --preid=next && npm run build"
Expand Down
14 changes: 14 additions & 0 deletions tsconfig.test.json
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"module": "NodeNext",
"strict": true,
"checkJs": true,
"declaration": true,
"noEmit": true,
"outDir": "./dist",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"target": "ES2022"
},
"include": ["test/**.ts"],
}

0 comments on commit 90c33b1

Please sign in to comment.