From 11c9aa910efdc1765f52ba56b06573b719adbb1f Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Fri, 3 Nov 2023 15:44:14 +0000 Subject: [PATCH] change `postinstall` to `pretest` script. (#73) * change `postinstall` to `pretest` script. * comma * move playright install to pretest:browser --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0b509e1..ed85244 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "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", @@ -36,8 +36,7 @@ "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,