Skip to content

Commit 11c9aa9

Browse files
authored
change postinstall to pretest script. (#73)
* change `postinstall` to `pretest` script. * comma * move playright install to pretest:browser
1 parent 21d183b commit 11c9aa9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@
2828
"lint": "eslint --ignore-path .gitignore .",
2929
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
3030
"test": "npm run test:node && npm run test:browser",
31-
"pretest:browser": "npm run build",
31+
"pretest:browser": "npx playwright install && npm run build",
3232
"test:browser": "wtr",
3333
"pretest:node": "npm run build",
3434
"test:node": "mocha",
3535
"build": "npm run build:lib && npm run build:esm-bundle && npm run build:cjs-bundle",
3636
"build:lib": "esbuild \"src/*.ts\" --outdir=lib --format=esm",
3737
"build:esm-bundle": "esbuild --bundle src/index.ts --outfile=loupe.js --format=esm",
3838
"build:cjs-bundle": "esbuild --bundle src/index.ts --outfile=loupe.js --format=cjs",
39-
"upload-coverage": "codecov",
40-
"postinstall": "npx playwright install"
39+
"upload-coverage": "codecov"
4140
},
4241
"eslintConfig": {
4342
"root": true,

0 commit comments

Comments
 (0)