Skip to content

Commit f88eeee

Browse files
committed
Add npm script to test in production
1 parent e5e0857 commit f88eeee

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
@@ -67,7 +67,9 @@
6767
"prepack": "npm run build && npm run format",
6868
"build": "tsc --build --clean && tsc --build && type-coverage",
6969
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
70-
"test-api": "node --conditions development test/index.js",
70+
"test-api-prod": "node --conditions production test/index.js",
71+
"test-api-dev": "node --conditions development test/index.js",
72+
"test-api": "npm run test-api-dev && npm run test-api-prod",
7173
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7274
"test": "npm run build && npm run format && npm run test-coverage"
7375
},

0 commit comments

Comments
 (0)