From 0e612ab0a429923b13e6d30345555d7d4ddd21a4 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:35:00 +0200 Subject: [PATCH] chore: use `ls` and `grep` (#10937) --- packages/browsers/package.json | 2 +- packages/ng-schematics/package.json | 2 +- packages/puppeteer-core/package.json | 2 +- packages/puppeteer/package.json | 2 +- packages/testserver/package.json | 2 +- test/installation/package.json | 2 +- test/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/browsers/package.json b/packages/browsers/package.json index 6f9c84a6..79cd39e0 100644 --- a/packages/browsers/package.json +++ b/packages/browsers/package.json @@ -5,7 +5,7 @@ "scripts": { "build:docs": "wireit", "build": "wireit", - "clean": "git clean -Xf -e '!node_modules' .", + "clean": "git clean -Xf $(ls -A | grep -v node_modules)", "test": "wireit" }, "bin": "lib/cjs/main-cli.js", diff --git a/packages/ng-schematics/package.json b/packages/ng-schematics/package.json index ab39572a..6472cd79 100644 --- a/packages/ng-schematics/package.json +++ b/packages/ng-schematics/package.json @@ -4,7 +4,7 @@ "description": "Puppeteer Angular schematics", "scripts": { "build": "wireit", - "clean": "git clean -Xf -e '!node_modules' .", + "clean": "git clean -Xf $(ls -A | grep -v node_modules)", "dev:test": "npm run test --watch", "dev": "npm run build --watch", "sandbox:test": "node tools/sandbox.js --test", diff --git a/packages/puppeteer-core/package.json b/packages/puppeteer-core/package.json index 8e5d9e68..3815e77d 100644 --- a/packages/puppeteer-core/package.json +++ b/packages/puppeteer-core/package.json @@ -37,7 +37,7 @@ "build:docs": "wireit", "build": "wireit", "check": "tsx tools/ensure-correct-devtools-protocol-package", - "clean": "git clean -Xf -e '!node_modules' .", + "clean": "git clean -Xf $(ls -A | grep -v node_modules)", "prepack": "wireit", "unit": "wireit" }, diff --git a/packages/puppeteer/package.json b/packages/puppeteer/package.json index 704318b3..2c18af33 100644 --- a/packages/puppeteer/package.json +++ b/packages/puppeteer/package.json @@ -36,7 +36,7 @@ "scripts": { "build:docs": "wireit", "build": "wireit", - "clean": "git clean -Xf -e '!node_modules' .", + "clean": "git clean -Xf $(ls -A | grep -v node_modules)", "postinstall": "node install.js", "prepack": "wireit" }, diff --git a/packages/testserver/package.json b/packages/testserver/package.json index 8d2a3905..84b544fd 100644 --- a/packages/testserver/package.json +++ b/packages/testserver/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "build": "wireit", - "clean": "git clean -Xf -e '!node_modules' ." + "clean": "git clean -Xf $(ls -A | grep -v node_modules)" }, "wireit": { "build": { diff --git a/test/installation/package.json b/test/installation/package.json index 3eaeda1e..49d8a5ac 100644 --- a/test/installation/package.json +++ b/test/installation/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "build": "wireit", - "clean": "git clean -Xf -e '!node_modules' .", + "clean": "git clean -Xf $(ls -A | grep -v node_modules)", "test": "mocha" }, "wireit": { diff --git a/test/package.json b/test/package.json index 5a137dcf..123f8841 100644 --- a/test/package.json +++ b/test/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "wireit", - "clean": "git clean -Xf -e '!node_modules' ." + "clean": "git clean -Xf $(ls -A | grep -v node_modules)" }, "wireit": { "build": {