From d0c634046991717273edfb6e5b78b45e74bda21b Mon Sep 17 00:00:00 2001 From: AlCalzone Date: Fri, 22 Nov 2024 11:33:57 +0100 Subject: [PATCH] fix: correct path in `nvmedit` binary (#7432) --- packages/nvmedit/bin/nvmedit.js | 2 -- packages/nvmedit/bin/nvmedit.mjs | 2 ++ packages/nvmedit/package.json | 2 +- yarn.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 packages/nvmedit/bin/nvmedit.js create mode 100755 packages/nvmedit/bin/nvmedit.mjs diff --git a/packages/nvmedit/bin/nvmedit.js b/packages/nvmedit/bin/nvmedit.js deleted file mode 100644 index 89394a709020..000000000000 --- a/packages/nvmedit/bin/nvmedit.js +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -require("../build/cli.js"); diff --git a/packages/nvmedit/bin/nvmedit.mjs b/packages/nvmedit/bin/nvmedit.mjs new file mode 100755 index 000000000000..25f72e508cdc --- /dev/null +++ b/packages/nvmedit/bin/nvmedit.mjs @@ -0,0 +1,2 @@ +#!/usr/bin/env node +import "../build/esm/cli.js"; diff --git a/packages/nvmedit/package.json b/packages/nvmedit/package.json index 46b04077117b..587a67bb79c5 100644 --- a/packages/nvmedit/package.json +++ b/packages/nvmedit/package.json @@ -26,7 +26,7 @@ "build/**/*.{js,cjs,mjs,d.ts,d.cts,d.mts,map}", "build/**/package.json" ], - "bin": "bin/nvmedit.js", + "bin": "bin/nvmedit.mjs", "author": { "name": "AlCalzone", "email": "d.griesel@gmx.net" diff --git a/yarn.lock b/yarn.lock index 9ee03cc11940..45f58d0e0722 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2762,7 +2762,7 @@ __metadata: vitest: "npm:^2.1.4" yargs: "npm:^17.7.2" bin: - nvmedit: bin/nvmedit.js + nvmedit: bin/nvmedit.mjs languageName: unknown linkType: soft