Skip to content

Commit 708ed11

Browse files
committed
Add npm script to test in production
1 parent de24bc1 commit 708ed11

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

0 commit comments

Comments
 (0)