extension-create 3.9.3 → 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 +4 -2
- 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,
|