From a69378df7783c8a9ba5ff4cd7ea4cee73588c717 Mon Sep 17 00:00:00 2001 From: Thomas Boop Date: Mon, 13 Jul 2020 16:35:40 -0400 Subject: [PATCH 1/2] Pipe audit results to a json file so lerna does not overflow --- .gitignore | 1 + packages/artifact/package.json | 2 +- packages/cache/package.json | 2 +- packages/core/package.json | 2 +- packages/exec/package.json | 2 +- packages/github/package.json | 2 +- packages/glob/package.json | 2 +- packages/io/package.json | 2 +- packages/tool-cache/package.json | 2 +- 9 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 255bac5731..c13ba4b55e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ packages/*/node_modules/ packages/*/lib/ packages/*/__tests__/_temp/ .DS_Store +packages/*/audit.json diff --git a/packages/artifact/package.json b/packages/artifact/package.json index 0c7baf925b..b1777af56a 100644 --- a/packages/artifact/package.json +++ b/packages/artifact/package.json @@ -29,7 +29,7 @@ "directory": "packages/artifact" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/cache/package.json b/packages/cache/package.json index 3299349b1c..19e07baa49 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -29,7 +29,7 @@ "directory": "packages/cache" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/core/package.json b/packages/core/package.json index 79e6df0bb5..24bfb2a5b6 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -28,7 +28,7 @@ "directory": "packages/core" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/exec/package.json b/packages/exec/package.json index a16c14c361..842764ec12 100644 --- a/packages/exec/package.json +++ b/packages/exec/package.json @@ -28,7 +28,7 @@ "directory": "packages/exec" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/github/package.json b/packages/github/package.json index 60283670de..cb716d6e36 100644 --- a/packages/github/package.json +++ b/packages/github/package.json @@ -27,7 +27,7 @@ "directory": "packages/github" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "jest", "build": "tsc", "format": "prettier --write **/*.ts", diff --git a/packages/glob/package.json b/packages/glob/package.json index 58eff04db7..8a6f6053ba 100644 --- a/packages/glob/package.json +++ b/packages/glob/package.json @@ -29,7 +29,7 @@ "directory": "packages/glob" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/io/package.json b/packages/io/package.json index 0fd128ef5e..018ee229a0 100644 --- a/packages/io/package.json +++ b/packages/io/package.json @@ -27,7 +27,7 @@ "directory": "packages/io" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/tool-cache/package.json b/packages/tool-cache/package.json index 536a8e92de..b4a761e66d 100644 --- a/packages/tool-cache/package.json +++ b/packages/tool-cache/package.json @@ -28,7 +28,7 @@ "directory": "packages/tool-cache" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, From e4cccddc08f2dbb5effcc543d45d2eb934e8c63f Mon Sep 17 00:00:00 2001 From: Thomas Boop Date: Mon, 13 Jul 2020 17:34:46 -0400 Subject: [PATCH 2/2] reorder flags and args --- packages/artifact/package.json | 2 +- packages/cache/package.json | 2 +- packages/core/package.json | 2 +- packages/exec/package.json | 2 +- packages/github/package.json | 2 +- packages/glob/package.json | 2 +- packages/io/package.json | 2 +- packages/tool-cache/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/artifact/package.json b/packages/artifact/package.json index b1777af56a..42891a153a 100644 --- a/packages/artifact/package.json +++ b/packages/artifact/package.json @@ -29,7 +29,7 @@ "directory": "packages/artifact" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/cache/package.json b/packages/cache/package.json index 19e07baa49..7db7ada72a 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -29,7 +29,7 @@ "directory": "packages/cache" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/core/package.json b/packages/core/package.json index 24bfb2a5b6..05f03cb9ab 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -28,7 +28,7 @@ "directory": "packages/core" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/exec/package.json b/packages/exec/package.json index 842764ec12..fde021d3df 100644 --- a/packages/exec/package.json +++ b/packages/exec/package.json @@ -28,7 +28,7 @@ "directory": "packages/exec" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/github/package.json b/packages/github/package.json index cb716d6e36..3d93545b1b 100644 --- a/packages/github/package.json +++ b/packages/github/package.json @@ -27,7 +27,7 @@ "directory": "packages/github" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "jest", "build": "tsc", "format": "prettier --write **/*.ts", diff --git a/packages/glob/package.json b/packages/glob/package.json index 8a6f6053ba..e75dae1c9a 100644 --- a/packages/glob/package.json +++ b/packages/glob/package.json @@ -29,7 +29,7 @@ "directory": "packages/glob" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/io/package.json b/packages/io/package.json index 018ee229a0..9d4213e184 100644 --- a/packages/io/package.json +++ b/packages/io/package.json @@ -27,7 +27,7 @@ "directory": "packages/io" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/packages/tool-cache/package.json b/packages/tool-cache/package.json index b4a761e66d..c16195ba1c 100644 --- a/packages/tool-cache/package.json +++ b/packages/tool-cache/package.json @@ -28,7 +28,7 @@ "directory": "packages/tool-cache" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate --json > audit.json", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" },