From 9cc094ab574940f87f78328e8e1c1a346e62e5bf Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Wed, 23 Feb 2022 08:47:47 -0800 Subject: [PATCH] feat(node-swc): Expose the new `swc_cli` as a binary named `swcx` (#3684) --- .npmignore | 4 +++- scripts/npm/android-arm-eabi/package.json | 5 ++++- scripts/npm/android-arm64/package.json | 5 ++++- scripts/npm/darwin-arm64/package.json | 5 ++++- scripts/npm/darwin-x64/package.json | 5 ++++- scripts/npm/freebsd-x64/package.json | 5 ++++- scripts/npm/linux-arm-gnueabihf/package.json | 5 ++++- scripts/npm/linux-arm64-gnu/package.json | 5 ++++- scripts/npm/linux-arm64-musl/package.json | 5 ++++- scripts/npm/linux-x64-gnu/package.json | 5 ++++- scripts/npm/linux-x64-musl/package.json | 5 ++++- scripts/npm/win32-arm64-msvc/package.json | 5 ++++- scripts/npm/win32-ia32-msvc/package.json | 5 ++++- scripts/npm/win32-x64-msvc/package.json | 5 ++++- 14 files changed, 55 insertions(+), 14 deletions(-) diff --git a/.npmignore b/.npmignore index d8a0b22a51b..737a1220077 100644 --- a/.npmignore +++ b/.npmignore @@ -63,4 +63,6 @@ deny.toml .mocha.setup.js .mocharc.js jest.config.js -cliff.toml \ No newline at end of file +cliff.toml +.kodiak.toml +clippy.toml diff --git a/scripts/npm/android-arm-eabi/package.json b/scripts/npm/android-arm-eabi/package.json index c995d6e727f..b7cc2bae842 100644 --- a/scripts/npm/android-arm-eabi/package.json +++ b/scripts/npm/android-arm-eabi/package.json @@ -12,6 +12,9 @@ "swc.android-arm-eabi.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/android-arm64/package.json b/scripts/npm/android-arm64/package.json index efa94d7752a..b48a91d7803 100644 --- a/scripts/npm/android-arm64/package.json +++ b/scripts/npm/android-arm64/package.json @@ -12,6 +12,9 @@ "swc.android-arm64.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/darwin-arm64/package.json b/scripts/npm/darwin-arm64/package.json index 42b8d39a1a6..55e2b2ae73f 100644 --- a/scripts/npm/darwin-arm64/package.json +++ b/scripts/npm/darwin-arm64/package.json @@ -12,6 +12,9 @@ "swc.darwin-arm64.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/darwin-x64/package.json b/scripts/npm/darwin-x64/package.json index 427ca61e789..49b8fed4fbc 100644 --- a/scripts/npm/darwin-x64/package.json +++ b/scripts/npm/darwin-x64/package.json @@ -12,6 +12,9 @@ "swc.darwin-x64.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/freebsd-x64/package.json b/scripts/npm/freebsd-x64/package.json index 969d1597675..f85d089282f 100644 --- a/scripts/npm/freebsd-x64/package.json +++ b/scripts/npm/freebsd-x64/package.json @@ -12,6 +12,9 @@ "swc.freebsd-x64.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/linux-arm-gnueabihf/package.json b/scripts/npm/linux-arm-gnueabihf/package.json index 328b7fa3207..e0be590ebf2 100644 --- a/scripts/npm/linux-arm-gnueabihf/package.json +++ b/scripts/npm/linux-arm-gnueabihf/package.json @@ -12,6 +12,9 @@ "swc.linux-arm-gnueabihf.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/linux-arm64-gnu/package.json b/scripts/npm/linux-arm64-gnu/package.json index f14a614afb6..4e753ea4440 100644 --- a/scripts/npm/linux-arm64-gnu/package.json +++ b/scripts/npm/linux-arm64-gnu/package.json @@ -12,6 +12,9 @@ "swc.linux-arm64-gnu.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/linux-arm64-musl/package.json b/scripts/npm/linux-arm64-musl/package.json index fd49807673a..df5eb07f0e9 100644 --- a/scripts/npm/linux-arm64-musl/package.json +++ b/scripts/npm/linux-arm64-musl/package.json @@ -12,6 +12,9 @@ "swc.linux-arm64-musl.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/linux-x64-gnu/package.json b/scripts/npm/linux-x64-gnu/package.json index a30d76335e3..ede0d69fb45 100644 --- a/scripts/npm/linux-x64-gnu/package.json +++ b/scripts/npm/linux-x64-gnu/package.json @@ -12,6 +12,9 @@ "swc.linux-x64-gnu.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/linux-x64-musl/package.json b/scripts/npm/linux-x64-musl/package.json index 8ccf3950416..ae0419333af 100644 --- a/scripts/npm/linux-x64-musl/package.json +++ b/scripts/npm/linux-x64-musl/package.json @@ -12,6 +12,9 @@ "swc.linux-x64-musl.node", "swc" ], + "bin": { + "swcx": "swc" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/win32-arm64-msvc/package.json b/scripts/npm/win32-arm64-msvc/package.json index f1d2aba4364..40644975891 100644 --- a/scripts/npm/win32-arm64-msvc/package.json +++ b/scripts/npm/win32-arm64-msvc/package.json @@ -12,6 +12,9 @@ "swc.win32-arm64-msvc.node", "swc.exe" ], + "bin": { + "swcx": "swc.exe" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/win32-ia32-msvc/package.json b/scripts/npm/win32-ia32-msvc/package.json index 50aac6dee1d..cdbfc2bcae3 100644 --- a/scripts/npm/win32-ia32-msvc/package.json +++ b/scripts/npm/win32-ia32-msvc/package.json @@ -12,6 +12,9 @@ "swc.win32-ia32-msvc.node", "swc.exe" ], + "bin": { + "swcx": "swc.exe" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file diff --git a/scripts/npm/win32-x64-msvc/package.json b/scripts/npm/win32-x64-msvc/package.json index ac1c331e1cd..4146679b01e 100644 --- a/scripts/npm/win32-x64-msvc/package.json +++ b/scripts/npm/win32-x64-msvc/package.json @@ -12,6 +12,9 @@ "swc.win32-x64-msvc.node", "swc.exe" ], + "bin": { + "swcx": "swc.exe" + }, "description": "Super-fast alternative for babel", "keywords": [ "swc", @@ -39,4 +42,4 @@ "bugs": { "url": "https://github.com/swc-project/swc/issues" } -} +} \ No newline at end of file