Skip to content

Commit 9fec6be

Browse files
committed
Add npm script to test in production
1 parent 20ae207 commit 9fec6be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
"prepack": "npm run build && npm run format",
6565
"build": "tsc --build --clean && tsc --build && type-coverage",
6666
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
67-
"test-api": "node --conditions development test/index.js",
67+
"test-api-prod": "node --conditions production test/index.js",
68+
"test-api-dev": "node --conditions development test/index.js",
69+
"test-api": "npm run test-api-dev && npm run test-api-prod",
6870
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6971
"test": "npm run build && npm run format && npm run test-coverage"
7072
},

0 commit comments

Comments
 (0)