extension-create 3.9.1 → 3.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/module.cjs +11 -12
- package/package.json +1 -1
package/dist/module.cjs
CHANGED
|
@@ -863,11 +863,13 @@ async function setupBuiltInTests(projectPath, projectName) {
|
|
|
863
863
|
const external_module_namespaceObject = require("module");
|
|
864
864
|
const requireFromCreate = (0, external_module_namespaceObject.createRequire)(__rslib_import_meta_url__);
|
|
865
865
|
function resolveDevelopRoot(projectPath) {
|
|
866
|
-
const override = process.env.EXTENSION_CREATE_DEVELOP_ROOT;
|
|
867
|
-
if (override) return override;
|
|
868
866
|
try {
|
|
869
867
|
const localPkgPath = external_path_namespaceObject.join(projectPath, 'node_modules', 'extension-develop', 'package.json');
|
|
870
868
|
if (external_fs_namespaceObject.existsSync(localPkgPath)) return external_path_namespaceObject.dirname(localPkgPath);
|
|
869
|
+
} catch {}
|
|
870
|
+
const override = process.env.EXTENSION_CREATE_DEVELOP_ROOT;
|
|
871
|
+
if (override) return override;
|
|
872
|
+
try {
|
|
871
873
|
const pkgPath = requireFromCreate.resolve('extension-develop/package.json', {
|
|
872
874
|
paths: [
|
|
873
875
|
projectPath,
|
|
@@ -1108,16 +1110,13 @@ async function installOptionalDependencies(developRoot, projectPath, plan) {
|
|
|
1108
1110
|
]);
|
|
1109
1111
|
const installMessage = baseMessage.replace('►►► ', `►►► [${index + 1}/${plan.integrations.length}] `);
|
|
1110
1112
|
console.log(installMessage);
|
|
1111
|
-
if (0
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
});
|
|
1119
|
-
if (0 !== result.code) throw new Error(installingDependenciesFailed(pm, args, result.code));
|
|
1120
|
-
}
|
|
1113
|
+
if (0 === missingDeps.length) continue;
|
|
1114
|
+
const args = buildOptionalInstallArgs(pm, missingDeps, developRoot);
|
|
1115
|
+
const result = await runInstall(pm, args, {
|
|
1116
|
+
cwd: developRoot,
|
|
1117
|
+
stdio
|
|
1118
|
+
});
|
|
1119
|
+
if (0 !== result.code) throw new Error(installingDependenciesFailed(pm, args, result.code));
|
|
1121
1120
|
}
|
|
1122
1121
|
}
|
|
1123
1122
|
async function installInternalDependencies(projectPath) {
|