Skip to content

Commit bdcc411

Browse files
committed
chore(build): add build:test for tests and avoid copying test assets in production build; update test script
1 parent 6e94419 commit bdcc411

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
"test": "test"
1010
},
1111
"scripts": {
12-
"test": "yarn build && tsc -p test/tsconfig.json && FASTIFY_AUTOLOAD_TYPESCRIPT=1 node --test --experimental-test-coverage 'dist/test/**/*.js'",
13-
"build": "tsc && node scripts/copy-test-assets.js",
12+
"test": "yarn build:test && FASTIFY_AUTOLOAD_TYPESCRIPT=1 node --test --experimental-test-coverage 'dist/test/**/*.js'",
13+
"build": "tsc",
14+
"build:test": "yarn build && node scripts/copy-test-assets.js && tsc -p test/tsconfig.json",
1415
"watch": "tsc -w",
1516
"start": "fastify start -l info dist/src/app.js --options",
1617
"dev": "yarn run build && concurrently -k -p '[{name}]' -n TypeScript,App -c yellow.bold,cyan.bold yarn:watch yarn:dev:start",

0 commit comments

Comments
 (0)