Skip to content

Commit

Permalink
🚑 Hotfix test:prebuild (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolauwae authored Dec 6, 2024
1 parent e88476b commit 66f715c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ lib/*.js
test/*.js
*.map

*.tsbuildinfo

# Project specific
WABT
core/
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
"clean": "rm -rf dist",
"build": "npm run build:cjs",
"build:cjs": "tsc --project tsconfig.build.json",
"build:tests": "tsc --outDir out --project tsconfig.tests.json",
"watch": "tsc -watch -p ./",
"lint": "eslint src/**/* --config .eslint.config.mjs",
"test:prebuild": "npm run build && npx tsc tests/unit/* --outDir out --sourceMap",
"test:prebuild": "npm run build && npm run build:tests",
"test:all": "npm run test:prebuild && npm run test:ava",
"test:ava": "ava",
"coverage:test:ava": "c8 --src src/ --all ava"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"noEmit": false,
"declaration": true,
"declarationDir": "dist/types",
"incremental": true
"incremental": true,
"resolveJsonModule": true
}
}
15 changes: 15 additions & 0 deletions tsconfig.tests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "./tsconfig.build.json",
"include": [
"tests/unit/**/*.ts"
],
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
"noEmit": false,
"declaration": true,
"declarationDir": "dist/types",
"incremental": true,
"resolveJsonModule": true
}
}

0 comments on commit 66f715c

Please sign in to comment.