Skip to content

Commit 2ee7fdd

Browse files
committed
Add npm script to test in production
1 parent dc553d9 commit 2ee7fdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
"prepack": "npm run build && npm run format",
6262
"build": "tsc --build --clean && tsc --build && type-coverage",
6363
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
64-
"test-api": "node --conditions development test.js",
64+
"test-api-prod": "node --conditions production test.js",
65+
"test-api-dev": "node --conditions development test.js",
66+
"test-api": "npm run test-api-dev && npm run test-api-prod",
6567
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6668
"test": "npm run build && npm run format && npm run test-coverage"
6769
},

0 commit comments

Comments
 (0)