@penvhq/launcher 0.9.2 → 0.9.4
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/dist/bin.cjs +22 -4
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-IILHH4SV.js → chunk-Q27F7QYT.js} +23 -5
- package/dist/{chunk-IILHH4SV.js.map → chunk-Q27F7QYT.js.map} +1 -1
- package/dist/index.cjs +22 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -1218,8 +1218,8 @@ var DEV_PIN_INTEGRITY = "sha512-development-build-not-a-published-release";
|
|
|
1218
1218
|
var DEV_PIN_VERSION = "0.0.0-dev";
|
|
1219
1219
|
var BUNDLED_ENGINE_PIN = {
|
|
1220
1220
|
package: ENGINE_PACKAGE3,
|
|
1221
|
-
version: "0.9.
|
|
1222
|
-
integrity: "sha512-
|
|
1221
|
+
version: "0.9.4",
|
|
1222
|
+
integrity: "sha512-XnG+KlEAZyUaaKUfANPiyhY1dfYZ9KgnkF2R+5A0OskRgfYPSpBRN0i1UPtq8RnwMJaPxfSNDNdqfiiESz6kRw=="
|
|
1223
1223
|
};
|
|
1224
1224
|
function assertReleasePin(pin) {
|
|
1225
1225
|
if (pin.integrity === DEV_PIN_INTEGRITY || pin.version === DEV_PIN_VERSION) {
|
|
@@ -1369,7 +1369,7 @@ async function launch(options) {
|
|
|
1369
1369
|
return delegate(options, options.bundledEngine(), forwarded, home, cwd);
|
|
1370
1370
|
}
|
|
1371
1371
|
if (ADOPTS.has(first)) {
|
|
1372
|
-
return adopt(options, forwarded, home, cwd);
|
|
1372
|
+
return adopt(options, forwarded, home, cwd, noDownload);
|
|
1373
1373
|
}
|
|
1374
1374
|
throw new NoProjectError(cwd);
|
|
1375
1375
|
}
|
|
@@ -1393,7 +1393,7 @@ async function launch(options) {
|
|
|
1393
1393
|
const engine = engineAt(engineDir, enginePin.name, enginePin.version);
|
|
1394
1394
|
return delegate(options, engine, forwarded, home, cwd);
|
|
1395
1395
|
}
|
|
1396
|
-
async function adopt(options, forwarded, home, cwd) {
|
|
1396
|
+
async function adopt(options, forwarded, home, cwd, noDownload) {
|
|
1397
1397
|
const engine = options.bundledEngine();
|
|
1398
1398
|
const code = await delegate(options, engine, forwarded, home, cwd);
|
|
1399
1399
|
if (code !== 0) {
|
|
@@ -1413,8 +1413,26 @@ async function adopt(options, forwarded, home, cwd) {
|
|
|
1413
1413
|
serializeManifest2({ format: MANIFEST_FORMAT, engine: pin, extensions: {} })
|
|
1414
1414
|
);
|
|
1415
1415
|
options.io.out(`\u2713 ${MANIFEST_PATH4} pins ${pin.package} ${pin.version}`);
|
|
1416
|
+
await ensureAdoptedEngine(
|
|
1417
|
+
options,
|
|
1418
|
+
{ name: pin.package, version: pin.version, integrity: pin.integrity },
|
|
1419
|
+
home,
|
|
1420
|
+
noDownload
|
|
1421
|
+
);
|
|
1416
1422
|
return 0;
|
|
1417
1423
|
}
|
|
1424
|
+
async function ensureAdoptedEngine(options, pin, home, noDownload) {
|
|
1425
|
+
try {
|
|
1426
|
+
await ensure(options, "engines", pin, home, noDownload);
|
|
1427
|
+
} catch (error) {
|
|
1428
|
+
if (!(error instanceof PackageMissingError || error instanceof InstallDeclinedError)) {
|
|
1429
|
+
report(error, options.io);
|
|
1430
|
+
}
|
|
1431
|
+
options.io.out(
|
|
1432
|
+
`\u2192 Run \`${INSTALL_COMMAND}\` to install ${pin.name} ${pin.version} before your first \`penv run\`.`
|
|
1433
|
+
);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1418
1436
|
async function ensure(options, kind, pin, home, noDownload) {
|
|
1419
1437
|
const { io, env, fetcher } = options;
|
|
1420
1438
|
const { dir, state } = inspectInstall(home, kind, pin);
|
|
@@ -1549,4 +1567,4 @@ export {
|
|
|
1549
1567
|
findAdoptedRoot,
|
|
1550
1568
|
runLauncher
|
|
1551
1569
|
};
|
|
1552
|
-
//# sourceMappingURL=chunk-
|
|
1570
|
+
//# sourceMappingURL=chunk-Q27F7QYT.js.map
|