Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix: clean lib folder before publishing (#577)

Joel Einbinderb1de6cec40fd
diff --git a/package.json b/package.json
index 89208677ba..9af9b14f9b 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,8 @@
"fcoverage": "cross-env COVERAGE=true BROWSER=firefox npm run unit",
"wcoverage": "cross-env COVERAGE=true BROWSER=webkit npm run unit",
"tsc": "tsc -p .",
+ "clean": "rimraf lib",
+ "prepublishOnly": "npm run clean",
"build": "node utils/runWebpack.js --mode='development' && tsc -p .",
"watch": "node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .",
"apply-next-version": "node utils/apply_next_version.js",