From 2f17174f0feb91038658ed1b1dac148c9635487a Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 3 Jan 2022 18:03:58 -0600 Subject: [PATCH] Revert "Reduce install size for linux glibc/musl (#32850)" This reverts commit a5fab84840d0bb384b7cf24d4825a350f0037811. --- .../next-swc/crates/napi/npm/linux-arm64-gnu/install.js | 2 -- .../next-swc/crates/napi/npm/linux-arm64-gnu/package.json | 6 +----- .../next-swc/crates/napi/npm/linux-arm64-musl/install.js | 2 -- .../next-swc/crates/napi/npm/linux-arm64-musl/package.json | 6 +----- packages/next-swc/crates/napi/npm/linux-x64-gnu/install.js | 2 -- .../next-swc/crates/napi/npm/linux-x64-gnu/package.json | 6 +----- packages/next-swc/crates/napi/npm/linux-x64-musl/install.js | 2 -- .../next-swc/crates/napi/npm/linux-x64-musl/package.json | 6 +----- 8 files changed, 4 insertions(+), 28 deletions(-) delete mode 100644 packages/next-swc/crates/napi/npm/linux-arm64-gnu/install.js delete mode 100644 packages/next-swc/crates/napi/npm/linux-arm64-musl/install.js delete mode 100644 packages/next-swc/crates/napi/npm/linux-x64-gnu/install.js delete mode 100644 packages/next-swc/crates/napi/npm/linux-x64-musl/install.js diff --git a/packages/next-swc/crates/napi/npm/linux-arm64-gnu/install.js b/packages/next-swc/crates/napi/npm/linux-arm64-gnu/install.js deleted file mode 100644 index 296ba2215f890..0000000000000 --- a/packages/next-swc/crates/napi/npm/linux-arm64-gnu/install.js +++ /dev/null @@ -1,2 +0,0 @@ -const { glibcVersionRuntime } = process.report.getReport().header; -process.exit(glibcVersionRuntime ? 0 : 1); \ No newline at end of file diff --git a/packages/next-swc/crates/napi/npm/linux-arm64-gnu/package.json b/packages/next-swc/crates/napi/npm/linux-arm64-gnu/package.json index ef8c28f7a8c65..eb097c5a75d50 100644 --- a/packages/next-swc/crates/napi/npm/linux-arm64-gnu/package.json +++ b/packages/next-swc/crates/napi/npm/linux-arm64-gnu/package.json @@ -9,12 +9,8 @@ ], "main": "next-swc.linux-arm64-gnu.node", "files": [ - "next-swc.linux-arm64-gnu.node", - "install.js" + "next-swc.linux-arm64-gnu.node" ], - "scripts": { - "install": "node install.js" - }, "license": "MIT", "engines": { "node": ">= 10" diff --git a/packages/next-swc/crates/napi/npm/linux-arm64-musl/install.js b/packages/next-swc/crates/napi/npm/linux-arm64-musl/install.js deleted file mode 100644 index 3cc50b7e18eda..0000000000000 --- a/packages/next-swc/crates/napi/npm/linux-arm64-musl/install.js +++ /dev/null @@ -1,2 +0,0 @@ -const { glibcVersionRuntime } = process.report.getReport().header; -process.exit(glibcVersionRuntime ? 1 : 0); \ No newline at end of file diff --git a/packages/next-swc/crates/napi/npm/linux-arm64-musl/package.json b/packages/next-swc/crates/napi/npm/linux-arm64-musl/package.json index e27020587cea4..ac0d638a6e482 100644 --- a/packages/next-swc/crates/napi/npm/linux-arm64-musl/package.json +++ b/packages/next-swc/crates/napi/npm/linux-arm64-musl/package.json @@ -9,12 +9,8 @@ ], "main": "next-swc.linux-arm64-musl.node", "files": [ - "next-swc.linux-arm64-musl.node", - "install.js" + "next-swc.linux-arm64-musl.node" ], - "scripts": { - "install": "node install.js" - }, "license": "MIT", "engines": { "node": ">= 10" diff --git a/packages/next-swc/crates/napi/npm/linux-x64-gnu/install.js b/packages/next-swc/crates/napi/npm/linux-x64-gnu/install.js deleted file mode 100644 index 296ba2215f890..0000000000000 --- a/packages/next-swc/crates/napi/npm/linux-x64-gnu/install.js +++ /dev/null @@ -1,2 +0,0 @@ -const { glibcVersionRuntime } = process.report.getReport().header; -process.exit(glibcVersionRuntime ? 0 : 1); \ No newline at end of file diff --git a/packages/next-swc/crates/napi/npm/linux-x64-gnu/package.json b/packages/next-swc/crates/napi/npm/linux-x64-gnu/package.json index 70fb20fa9bd6e..07f4f9f039d19 100644 --- a/packages/next-swc/crates/napi/npm/linux-x64-gnu/package.json +++ b/packages/next-swc/crates/napi/npm/linux-x64-gnu/package.json @@ -9,12 +9,8 @@ ], "main": "next-swc.linux-x64-gnu.node", "files": [ - "next-swc.linux-x64-gnu.node", - "install.js" + "next-swc.linux-x64-gnu.node" ], - "scripts": { - "install": "node install.js" - }, "license": "MIT", "engines": { "node": ">= 10" diff --git a/packages/next-swc/crates/napi/npm/linux-x64-musl/install.js b/packages/next-swc/crates/napi/npm/linux-x64-musl/install.js deleted file mode 100644 index 3cc50b7e18eda..0000000000000 --- a/packages/next-swc/crates/napi/npm/linux-x64-musl/install.js +++ /dev/null @@ -1,2 +0,0 @@ -const { glibcVersionRuntime } = process.report.getReport().header; -process.exit(glibcVersionRuntime ? 1 : 0); \ No newline at end of file diff --git a/packages/next-swc/crates/napi/npm/linux-x64-musl/package.json b/packages/next-swc/crates/napi/npm/linux-x64-musl/package.json index e4cfdba4ee1a7..031a573ed3f9f 100644 --- a/packages/next-swc/crates/napi/npm/linux-x64-musl/package.json +++ b/packages/next-swc/crates/napi/npm/linux-x64-musl/package.json @@ -9,12 +9,8 @@ ], "main": "next-swc.linux-x64-musl.node", "files": [ - "next-swc.linux-x64-musl.node", - "install.js" + "next-swc.linux-x64-musl.node" ], - "scripts": { - "install": "node install.js" - }, "license": "MIT", "engines": { "node": ">= 10"