@wipcomputer/wip-ldm-os 0.4.73-alpha.4 → 0.4.73-alpha.5
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/bin/ldm.js +2 -2
- package/package.json +1 -1
package/bin/ldm.js
CHANGED
|
@@ -1329,8 +1329,8 @@ async function cmdInstall() {
|
|
|
1329
1329
|
try {
|
|
1330
1330
|
mkdirSync(tempDir, { recursive: true });
|
|
1331
1331
|
execSync(`npm install ${npmName} --prefix "${tempDir}"`, { stdio: 'pipe' });
|
|
1332
|
-
// Find the installed package in node_modules
|
|
1333
|
-
const pkgName = npmName.
|
|
1332
|
+
// Find the installed package in node_modules (strip @tag suffix like @alpha)
|
|
1333
|
+
const pkgName = npmName.replace(/@(alpha|beta|latest|next|\d[\d.]*[-\w.]*)$/, '');
|
|
1334
1334
|
const installed = join(tempDir, 'node_modules', pkgName);
|
|
1335
1335
|
if (existsSync(installed)) {
|
|
1336
1336
|
console.log(` + Installed from npm`);
|