Skip to content

Commit

Permalink
change postinstall to pretest script. (#73)
Browse files Browse the repository at this point in the history
* change `postinstall` to `pretest` script.

* comma

* move playright install to pretest:browser
  • Loading branch information
keithamus authored Nov 3, 2023
1 parent 21d183b commit 11c9aa9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@
"lint": "eslint --ignore-path .gitignore .",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "npm run test:node && npm run test:browser",
"pretest:browser": "npm run build",
"pretest:browser": "npx playwright install && npm run build",
"test:browser": "wtr",
"pretest:node": "npm run build",
"test:node": "mocha",
"build": "npm run build:lib && npm run build:esm-bundle && npm run build:cjs-bundle",
"build:lib": "esbuild \"src/*.ts\" --outdir=lib --format=esm",
"build:esm-bundle": "esbuild --bundle src/index.ts --outfile=loupe.js --format=esm",
"build:cjs-bundle": "esbuild --bundle src/index.ts --outfile=loupe.js --format=cjs",
"upload-coverage": "codecov",
"postinstall": "npx playwright install"
"upload-coverage": "codecov"
},
"eslintConfig": {
"root": true,
Expand Down

0 comments on commit 11c9aa9

Please sign in to comment.