Skip to content

Commit 4fe5980

Browse files
committed
Add script to test in production
1 parent b46fc50 commit 4fe5980

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
@@ -74,7 +74,9 @@
7474
"prepack": "npm run build && npm run format",
7575
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
7676
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
77-
"test-api": "node --conditions development test/index.js",
77+
"test-api-dev": "node --conditions development test/index.js",
78+
"test-api-prod": "node --conditions production test/index.js",
79+
"test-api": "npm run test-api-dev && npm run test-api-prod",
7880
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7981
"test": "npm run build && npm run format && npm run test-coverage"
8082
},

0 commit comments

Comments
 (0)