node-version-use 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/installBinaries.cjs +284 -0
- package/assets/postinstall.cjs +11 -404
- package/dist/cjs/assets/installBinaries.cjs +284 -0
- package/dist/cjs/assets/installBinaries.cjs.map +1 -0
- package/dist/cjs/assets/installBinaries.d.cts +1 -0
- package/dist/cjs/assets/postinstall.cjs +11 -404
- package/dist/cjs/assets/postinstall.cjs.map +1 -1
- package/dist/cjs/commands/index.js +2 -3
- package/dist/cjs/commands/index.js.map +1 -1
- package/dist/cjs/commands/setup.js +23 -41
- package/dist/cjs/commands/setup.js.map +1 -1
- package/dist/cjs/commands/teardown.js +2 -1
- package/dist/cjs/commands/teardown.js.map +1 -1
- package/dist/cjs/compat.d.cts +1 -0
- package/dist/cjs/compat.d.ts +1 -0
- package/dist/cjs/compat.js +11 -4
- package/dist/cjs/compat.js.map +1 -1
- package/dist/esm/assets/installBinaries.cjs +282 -0
- package/dist/esm/assets/installBinaries.cjs.map +1 -0
- package/dist/esm/assets/installBinaries.d.cts +1 -0
- package/dist/esm/assets/postinstall.cjs +11 -404
- package/dist/esm/assets/postinstall.cjs.map +1 -1
- package/dist/esm/commands/index.js +2 -3
- package/dist/esm/commands/index.js.map +1 -1
- package/dist/esm/commands/setup.js +24 -42
- package/dist/esm/commands/setup.js.map +1 -1
- package/dist/esm/commands/teardown.js +2 -1
- package/dist/esm/commands/teardown.js.map +1 -1
- package/dist/esm/compat.d.ts +1 -0
- package/dist/esm/compat.js +8 -4
- package/dist/esm/compat.js.map +1 -1
- package/package.json +13 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-use/src/commands/setup.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-use/src/commands/setup.ts"],"sourcesContent":["import exit from 'exit-compat';\nimport fs from 'fs';\nimport getopts from 'getopts-compat';\nimport Module from 'module';\nimport path from 'path';\nimport { readdirWithTypes } from '../compat.ts';\nimport { storagePath } from '../constants.ts';\nimport { findInstalledVersions } from '../lib/findInstalledVersions.ts';\n\nconst _require = typeof require === 'undefined' ? Module.createRequire(import.meta.url) : require;\nconst { installBinaries, printInstructions } = _require('../assets/installBinaries.cjs');\n\n/**\n * nvu setup [--shims]\n *\n * Install/reinstall nvu binaries to ~/.nvu/bin\n * With --shims: create shims for existing global packages\n */\nexport default function setupCmd(args: string[]): void {\n const options = getopts(args, { boolean: ['force'] });\n\n installBinaries(options, (err, installed) => {\n if (err) {\n console.error(`Setup failed: ${err.message || err}`);\n exit(1);\n return;\n }\n\n printInstructions();\n if (!installed) console.log('Use --force to reinstall.');\n\n if (options.force) {\n const binDir = path.join(storagePath, 'bin');\n createShimsForGlobalPackages(binDir);\n return;\n }\n });\n}\n\n/**\n * Create shims for all global packages in the default Node version\n */\nfunction createShimsForGlobalPackages(binDir: string): void {\n // Read default version\n const defaultPath = path.join(storagePath, 'default');\n if (!fs.existsSync(defaultPath)) {\n console.log('No default Node version set.');\n console.log('Set one with: nvu default <version>');\n exit(1);\n return;\n }\n\n const defaultVersion = fs.readFileSync(defaultPath, 'utf8').trim();\n const versionsDir = path.join(storagePath, 'installed');\n\n // Resolve to exact version\n const matches = findInstalledVersions(versionsDir, defaultVersion);\n if (matches.length === 0) {\n console.log(`Default version ${defaultVersion} is not installed.`);\n exit(1);\n return;\n }\n\n const resolvedVersion = matches[matches.length - 1];\n const nodeBinDir = path.join(versionsDir, resolvedVersion, 'bin');\n\n if (!fs.existsSync(nodeBinDir)) {\n console.log(`No bin directory found for ${resolvedVersion}`);\n exit(1);\n return;\n }\n\n // Get the node shim to copy from\n const nodeShim = path.join(binDir, 'node');\n if (!fs.existsSync(nodeShim)) {\n console.log('Node shim not found. Run: nvu setup');\n exit(1);\n return;\n }\n\n // Scan binaries in Node's bin directory\n const entries = readdirWithTypes(nodeBinDir);\n let created = 0;\n let skipped = 0;\n\n for (let i = 0; i < entries.length; i++) {\n const entry = entries[i];\n const name = entry.name;\n\n // Skip our routing shims (node/npm/npx) - don't overwrite them\n if (name === 'node' || name === 'npm' || name === 'npx') continue;\n const shimPath = path.join(binDir, name);\n\n // Skip if shim already exists\n if (fs.existsSync(shimPath)) {\n skipped++;\n continue;\n }\n\n // Copy the node shim\n try {\n const shimContent = fs.readFileSync(nodeShim);\n fs.writeFileSync(shimPath, shimContent);\n fs.chmodSync(shimPath, 493); // 0755\n console.log(`Created shim: ${name}`);\n created++;\n } catch (err) {\n console.error(`Failed to create shim for ${name}: ${(err as Error).message}`);\n }\n }\n\n console.log('');\n console.log(`Done. Created ${created} shims, skipped ${skipped} (already exists).`);\n exit(0);\n}\n"],"names":["exit","fs","getopts","Module","path","readdirWithTypes","storagePath","findInstalledVersions","_require","require","createRequire","url","installBinaries","printInstructions","setupCmd","args","options","boolean","err","installed","console","error","message","log","force","binDir","join","createShimsForGlobalPackages","defaultPath","existsSync","defaultVersion","readFileSync","trim","versionsDir","matches","length","resolvedVersion","nodeBinDir","nodeShim","entries","created","skipped","i","entry","name","shimPath","shimContent","writeFileSync","chmodSync"],"mappings":"AAAA,OAAOA,UAAU,cAAc;AAC/B,OAAOC,QAAQ,KAAK;AACpB,OAAOC,aAAa,iBAAiB;AACrC,OAAOC,YAAY,SAAS;AAC5B,OAAOC,UAAU,OAAO;AACxB,SAASC,gBAAgB,QAAQ,eAAe;AAChD,SAASC,WAAW,QAAQ,kBAAkB;AAC9C,SAASC,qBAAqB,QAAQ,kCAAkC;AAExE,MAAMC,WAAW,OAAOC,YAAY,cAAcN,OAAOO,aAAa,CAAC,YAAYC,GAAG,IAAIF;AAC1F,MAAM,EAAEG,eAAe,EAAEC,iBAAiB,EAAE,GAAGL,SAAS;AAExD;;;;;CAKC,GACD,eAAe,SAASM,SAASC,IAAc;IAC7C,MAAMC,UAAUd,QAAQa,MAAM;QAAEE,SAAS;YAAC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lB,QAAQG,GAAG,CAAC;QACZvB,KAAK;QACL;IACF;IAEA,wCAAwC;IACxC,MAAMuC,UAAUlC,iBAAiBgC;IACjC,IAAIG,UAAU;IACd,IAAIC,UAAU;IAEd,IAAK,IAAIC,IAAI,GAAGA,IAAIH,QAAQJ,MAAM,EAAEO,IAAK;QACvC,MAAMC,QAAQJ,OAAO,CAACG,EAAE;QACxB,MAAME,OAAOD,MAAMC,IAAI;QAEvB,+DAA+D;QAC/D,IAAIA,SAAS,UAAUA,SAAS,SAASA,SAAS,OAAO;QACzD,MAAMC,WAAWzC,KAAKsB,IAAI,CAACD,QAAQmB;QAEnC,8BAA8B;QAC9B,IAAI3C,GAAG4B,UAAU,CAACgB,WAAW;YAC3BJ;YACA;QACF;QAEA,qBAAqB;QACrB,IAAI;YACF,MAAMK,cAAc7C,GAAG8B,YAAY,CAACO;YACpCrC,GAAG8C,aAAa,CAACF,UAAUC;YAC3B7C,GAAG+C,SAAS,CAACH,UAAU,MAAM,OAAO;YACpCzB,QAAQG,GAAG,CAAC,CAAC,cAAc,EAAEqB,MAAM;YACnCJ;QACF,EAAE,OAAOtB,KAAK;YACZE,QAAQC,KAAK,CAAC,CAAC,0BAA0B,EAAEuB,KAAK,EAAE,EAAE,AAAC1B,IAAcI,OAAO,EAAE;QAC9E;IACF;IAEAF,QAAQG,GAAG,CAAC;IACZH,QAAQG,GAAG,CAAC,CAAC,cAAc,EAAEiB,QAAQ,gBAAgB,EAAEC,QAAQ,kBAAkB,CAAC;IAClFzC,KAAK;AACP"}
|
|
@@ -3,6 +3,7 @@ import fs from 'fs';
|
|
|
3
3
|
import { rmSync } from 'fs-remove-compat';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
import { storagePath } from '../constants.js';
|
|
6
|
+
const isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);
|
|
6
7
|
/**
|
|
7
8
|
* nvu teardown
|
|
8
9
|
*
|
|
@@ -14,7 +15,7 @@ import { storagePath } from '../constants.js';
|
|
|
14
15
|
'npm',
|
|
15
16
|
'npx'
|
|
16
17
|
];
|
|
17
|
-
const ext =
|
|
18
|
+
const ext = isWindows ? '.exe' : '';
|
|
18
19
|
let removed = 0;
|
|
19
20
|
for(let i = 0; i < binaries.length; i++){
|
|
20
21
|
const binaryPath = path.join(binDir, binaries[i] + ext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-use/src/commands/teardown.ts"],"sourcesContent":["import exit from 'exit-compat';\nimport fs from 'fs';\nimport { rmSync } from 'fs-remove-compat';\nimport path from 'path';\nimport { storagePath } from '../constants.ts';\n\n/**\n * nvu teardown\n *\n * Remove nvu binaries from ~/.nvu/bin\n */\nexport default function teardownCmd(_args: string[]): void {\n const binDir = path.join(storagePath, 'bin');\n\n const binaries = ['node', 'npm', 'npx'];\n const ext =
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-use/src/commands/teardown.ts"],"sourcesContent":["import exit from 'exit-compat';\nimport fs from 'fs';\nimport { rmSync } from 'fs-remove-compat';\nimport path from 'path';\nimport { storagePath } from '../constants.ts';\n\nconst isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);\n\n/**\n * nvu teardown\n *\n * Remove nvu binaries from ~/.nvu/bin\n */\nexport default function teardownCmd(_args: string[]): void {\n const binDir = path.join(storagePath, 'bin');\n\n const binaries = ['node', 'npm', 'npx'];\n const ext = isWindows ? '.exe' : '';\n\n let removed = 0;\n for (let i = 0; i < binaries.length; i++) {\n const binaryPath = path.join(binDir, binaries[i] + ext);\n if (fs.existsSync(binaryPath)) {\n rmSync(binaryPath, { force: true });\n removed++;\n }\n }\n\n if (removed > 0) {\n console.log(`Removed ${removed} binary(s) from ${binDir}`);\n console.log('');\n console.log('You may also want to remove ~/.nvu/bin from your PATH.');\n } else {\n console.log('No binaries found to remove.');\n }\n\n exit(0);\n}\n"],"names":["exit","fs","rmSync","path","storagePath","isWindows","process","platform","test","env","OSTYPE","teardownCmd","_args","binDir","join","binaries","ext","removed","i","length","binaryPath","existsSync","force","console","log"],"mappings":"AAAA,OAAOA,UAAU,cAAc;AAC/B,OAAOC,QAAQ,KAAK;AACpB,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,UAAU,OAAO;AACxB,SAASC,WAAW,QAAQ,kBAAkB;AAE9C,MAAMC,YAAYC,QAAQC,QAAQ,KAAK,WAAW,kBAAkBC,IAAI,CAACF,QAAQG,GAAG,CAACC,MAAM;AAE3F;;;;CAIC,GACD,eAAe,SAASC,YAAYC,KAAe;IACjD,MAAMC,SAASV,KAAKW,IAAI,CAACV,aAAa;IAEtC,MAAMW,WAAW;QAAC;QAAQ;QAAO;KAAM;IACvC,MAAMC,MAAMX,YAAY,SAAS;IAEjC,IAAIY,UAAU;IACd,IAAK,IAAIC,IAAI,GAAGA,IAAIH,SAASI,MAAM,EAAED,IAAK;QACxC,MAAME,aAAajB,KAAKW,IAAI,CAACD,QAAQE,QAAQ,CAACG,EAAE,GAAGF;QACnD,IAAIf,GAAGoB,UAAU,CAACD,aAAa;YAC7BlB,OAAOkB,YAAY;gBAAEE,OAAO;YAAK;YACjCL;QACF;IACF;IAEA,IAAIA,UAAU,GAAG;QACfM,QAAQC,GAAG,CAAC,CAAC,QAAQ,EAAEP,QAAQ,gBAAgB,EAAEJ,QAAQ;QACzDU,QAAQC,GAAG,CAAC;QACZD,QAAQC,GAAG,CAAC;IACd,OAAO;QACLD,QAAQC,GAAG,CAAC;IACd;IAEAxB,KAAK;AACP"}
|
package/dist/esm/compat.d.ts
CHANGED
package/dist/esm/compat.js
CHANGED
|
@@ -9,12 +9,16 @@ import path from 'path';
|
|
|
9
9
|
const _require = typeof require === 'undefined' ? _Module.createRequire(import.meta.url) : require;
|
|
10
10
|
const hasHomedir = typeof os.homedir === 'function';
|
|
11
11
|
export function homedir() {
|
|
12
|
-
if (hasHomedir)
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
const home = _require('homedir-polyfill');
|
|
12
|
+
if (hasHomedir) return os.homedir();
|
|
13
|
+
const home = require('homedir-polyfill');
|
|
16
14
|
return home();
|
|
17
15
|
}
|
|
16
|
+
const hasTmpdir = typeof os.tmpdir === 'function';
|
|
17
|
+
export function tmpdir() {
|
|
18
|
+
if (hasTmpdir) return os.tmpdir();
|
|
19
|
+
const osShim = require('os-shim');
|
|
20
|
+
return osShim.tmpdir();
|
|
21
|
+
}
|
|
18
22
|
/**
|
|
19
23
|
* String.prototype.endsWith wrapper for Node.js 0.8+
|
|
20
24
|
* - Uses native endsWith on Node 4.0+ / ES2015+
|
package/dist/esm/compat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-use/src/compat.ts"],"sourcesContent":["/**\n * Compatibility Layer for Node.js 0.8+\n * Local to this package - contains only needed functions.\n */\nimport fs from 'fs';\nimport _Module from 'module';\nimport os from 'os';\nimport path from 'path';\n\n// Use existing require in CJS, or createRequire in ESM (Node 12.2+)\nconst _require = typeof require === 'undefined' ? _Module.createRequire(import.meta.url) : require;\n\nconst hasHomedir = typeof os.homedir === 'function';\
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-use/src/compat.ts"],"sourcesContent":["/**\n * Compatibility Layer for Node.js 0.8+\n * Local to this package - contains only needed functions.\n */\nimport fs from 'fs';\nimport _Module from 'module';\nimport os from 'os';\nimport path from 'path';\n\n// Use existing require in CJS, or createRequire in ESM (Node 12.2+)\nconst _require = typeof require === 'undefined' ? _Module.createRequire(import.meta.url) : require;\n\nconst hasHomedir = typeof os.homedir === 'function';\nexport function homedir(): string {\n if (hasHomedir) return os.homedir();\n const home = require('homedir-polyfill');\n return home();\n}\n\nconst hasTmpdir = typeof os.tmpdir === 'function';\nexport function tmpdir(): string {\n if (hasTmpdir) return os.tmpdir();\n const osShim = require('os-shim');\n return osShim.tmpdir();\n}\n\n/**\n * String.prototype.endsWith wrapper for Node.js 0.8+\n * - Uses native endsWith on Node 4.0+ / ES2015+\n * - Falls back to lastIndexOf on Node 0.8-3.x\n */\nconst hasEndsWith = typeof String.prototype.endsWith === 'function';\n\nexport function stringEndsWith(str: string, search: string, position?: number): boolean {\n if (hasEndsWith) {\n return str.endsWith(search, position);\n }\n const len = position === undefined ? str.length : position;\n return str.lastIndexOf(search) === len - search.length;\n}\n\n/**\n * Recursive mkdir for Node.js 0.8+\n */\nexport function mkdirpSync(dir: string): void {\n const mkdirp = _require('mkdirp-classic');\n mkdirp.sync(dir);\n}\n\n/**\n * Recursive rm for Node.js 0.8+\n */\nexport function rmSync(dir: string): void {\n const safeRmSync = _require('fs-remove-compat').safeRmSync;\n safeRmSync(dir);\n}\n\n/**\n * Read directory entries with types for Node.js 0.8+\n * Returns array of {name, isDirectory()}\n */\nexport interface DirEntry {\n name: string;\n isDirectory(): boolean;\n}\n\nexport function readdirWithTypes(dir: string): DirEntry[] {\n const names = fs.readdirSync(dir);\n return names.map((name) => {\n const fullPath = path.join(dir, name);\n let stat: fs.Stats;\n try {\n stat = fs.statSync(fullPath);\n } catch (_e) {\n // If stat fails, treat as non-directory\n return { name: name, isDirectory: () => false };\n }\n return {\n name: name,\n isDirectory: () => stat.isDirectory(),\n };\n });\n}\n"],"names":["fs","_Module","os","path","_require","require","createRequire","url","hasHomedir","homedir","home","hasTmpdir","tmpdir","osShim","hasEndsWith","String","prototype","endsWith","stringEndsWith","str","search","position","len","undefined","length","lastIndexOf","mkdirpSync","dir","mkdirp","sync","rmSync","safeRmSync","readdirWithTypes","names","readdirSync","map","name","fullPath","join","stat","statSync","_e","isDirectory"],"mappings":"AAAA;;;CAGC,GACD,OAAOA,QAAQ,KAAK;AACpB,OAAOC,aAAa,SAAS;AAC7B,OAAOC,QAAQ,KAAK;AACpB,OAAOC,UAAU,OAAO;AAExB,oEAAoE;AACpE,MAAMC,WAAW,OAAOC,YAAY,cAAcJ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ACNM,aAAa,IAAMH,KAAKG,WAAW;QACrC;IACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-version-use",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "Cross-platform solution for using multiple versions of node. Useful for compatibility testing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsds build",
|
|
41
|
-
"build:assets": "tsds
|
|
41
|
+
"build:assets": "tsds validate && mkdir -p assets && cp -R dist/cjs/assets/*.cjs assets/",
|
|
42
42
|
"clean": "rm -rf .tmp dist",
|
|
43
43
|
"format": "tsds format",
|
|
44
44
|
"postinstall": "node assets/postinstall.cjs",
|
|
@@ -49,33 +49,38 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"cross-spawn-cb": "^2.4.14",
|
|
52
|
-
"
|
|
52
|
+
"env-path-key": "^1.1.8",
|
|
53
|
+
"exit-compat": "^1.0.4",
|
|
53
54
|
"fs-remove-compat": "^0.2.3",
|
|
55
|
+
"get-file-compat": "^0.1.0",
|
|
54
56
|
"getopts-compat": "^2.2.6",
|
|
55
57
|
"homedir-polyfill": "^1.0.3",
|
|
56
58
|
"install-module-linked": "^1.3.16",
|
|
57
59
|
"mkdirp-classic": "^0.5.3",
|
|
58
|
-
"
|
|
60
|
+
"module-root-sync": "^2.0.2",
|
|
61
|
+
"node-resolve-versions": "^1.3.13",
|
|
59
62
|
"node-version-utils": "^1.3.17",
|
|
60
63
|
"queue-cb": "^1.6.3",
|
|
61
64
|
"resolve-bin-sync": "^1.0.12",
|
|
62
65
|
"spawn-streaming": "^1.1.15",
|
|
63
|
-
"spawn-term": "^3.3.5"
|
|
66
|
+
"spawn-term": "^3.3.5",
|
|
67
|
+
"tar-iterator": "^3.1.10",
|
|
68
|
+
"zip-iterator": "^3.0.17"
|
|
64
69
|
},
|
|
65
70
|
"devDependencies": {
|
|
66
71
|
"@types/mocha": "^10.0.10",
|
|
67
|
-
"@types/node": "^25.0.
|
|
72
|
+
"@types/node": "^25.0.2",
|
|
68
73
|
"cr": "^0.1.0",
|
|
69
74
|
"fs-copy-compat": "^0.1.5",
|
|
70
75
|
"fs-remove-compat": "^0.2.3",
|
|
71
76
|
"is-version": "^1.0.9",
|
|
72
77
|
"mkdirp-classic": "^0.5.3",
|
|
73
78
|
"node-version-install": "^1.5.2",
|
|
74
|
-
"node-version-use": "^2.1.
|
|
79
|
+
"node-version-use": "^2.1.6",
|
|
75
80
|
"os-shim": "^0.1.3",
|
|
76
81
|
"pinkie-promise": "^2.0.1",
|
|
77
82
|
"ts-dev-stack": "^1.21.3",
|
|
78
|
-
"tsds-config": "^0.2.
|
|
83
|
+
"tsds-config": "^0.2.2"
|
|
79
84
|
},
|
|
80
85
|
"engines": {
|
|
81
86
|
"node": ">=0.8"
|