Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 4b0f4f1

Browse files
committed
build: adds test script for prod env
1 parent e1e681e commit 4b0f4f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
"build": "NODE_ENV=production webpack",
99
"dist": "NODE_ENV=production webpack && node scripts/zip.js",
1010
"test": "npm run unit-test && npm run e2e-test",
11+
"test-prod": "NODE_ENV=production npm run unit-test && npm run e2e-test",
1112
"unit-test": "jest __tests__/.*.spec.js --silent",
1213
"e2e-test": "jest __e2e-tests__ --runInBand --silent"
1314
},
15+
"pre-commit": [
16+
"test-prod"
17+
],
1418
"repository": {
1519
"type": "git",
1620
"url": "https://github.com/checkly/puppeteer-recorder"

0 commit comments

Comments
 (0)