Skip to content

Commit 851c204

Browse files
committed
Add npm script to test in production
1 parent 84cc8d8 commit 851c204

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
@@ -57,7 +57,9 @@
5757
"prepack": "npm run build && npm run format",
5858
"build": "tsc --build --clean && tsc --build && type-coverage",
5959
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
60-
"test-api": "node --conditions development test.js",
60+
"test-api-prod": "node --conditions production test.js",
61+
"test-api-dev": "node --conditions development test.js",
62+
"test-api": "npm run test-api-dev && npm run test-api-prod",
6163
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6264
"test": "npm run build && npm run format && npm run test-coverage"
6365
},

0 commit comments

Comments
 (0)