Skip to content

Commit 975cb94

Browse files
committed
Add npm script to test in production
1 parent d02a03d commit 975cb94

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
@@ -60,7 +60,9 @@
6060
"prepack": "npm run build && npm run format",
6161
"build": "tsc --build --clean && tsc --build && type-coverage",
6262
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
63-
"test-api": "node --conditions development test.js",
63+
"test-api-prod": "node --conditions production test.js",
64+
"test-api-dev": "node --conditions development test.js",
65+
"test-api": "npm run test-api-dev && npm run test-api-prod",
6466
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6567
"test": "npm run build && npm run format && npm run test-coverage"
6668
},

0 commit comments

Comments
 (0)