extension 3.5.0-next.9 → 3.5.0

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.
Files changed (2) hide show
  1. package/dist/cli.cjs +6 -2
  2. package/package.json +3 -3
package/dist/cli.cjs CHANGED
@@ -654,6 +654,7 @@ Cross-Browser Compatibility
654
654
  });
655
655
  });
656
656
  }
657
+ const external_module_namespaceObject = require("module");
657
658
  require("node:url");
658
659
  function parseOptionalBoolean(value) {
659
660
  if (void 0 === value) return true;
@@ -688,6 +689,7 @@ Cross-Browser Compatibility
688
689
  process.exit(1);
689
690
  }
690
691
  }
692
+ const create_require = (0, external_module_namespaceObject.createRequire)(__rslib_import_meta_url__);
691
693
  function registerCreateCommand(program, telemetry) {
692
694
  program.command('create').arguments('<project-name|project-path>').usage('create <project-name|project-path> [options]').description(commandDescriptions.create).option('-t, --template <template-name>', 'specify a template for the created project').option('--install [boolean]', 'whether or not to install the dependencies after creating the project (enabled by default)', parseOptionalBoolean, true).action(async function(pathOrRemoteUrl, { template, install }) {
693
695
  const startedAt = Date.now();
@@ -697,8 +699,11 @@ Cross-Browser Compatibility
697
699
  install: Boolean(install)
698
700
  });
699
701
  try {
702
+ if (!process.env.EXTENSION_CREATE_DEVELOP_ROOT) try {
703
+ const developPkg = create_require.resolve('extension-develop/package.json');
704
+ process.env.EXTENSION_CREATE_DEVELOP_ROOT = external_path_namespaceObject.dirname(developPkg);
705
+ } catch {}
700
706
  const { extensionCreate } = await import("extension-create");
701
- external_path_namespaceObject.isAbsolute(pathOrRemoteUrl) || external_path_namespaceObject.join(process.cwd(), pathOrRemoteUrl);
702
707
  await extensionCreate(pathOrRemoteUrl, {
703
708
  template,
704
709
  install,
@@ -721,7 +726,6 @@ Cross-Browser Compatibility
721
726
  }
722
727
  });
723
728
  }
724
- const external_module_namespaceObject = require("module");
725
729
  function normalizeSourceOption(source, startingUrl) {
726
730
  if (!source) return;
727
731
  const hasExplicitSourceString = 'string' == typeof source && 'true' !== String(source).trim().toLowerCase();
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "extension": "./bin/extension.cjs"
34
34
  },
35
35
  "name": "extension",
36
- "version": "3.5.0-next.9",
36
+ "version": "3.5.0",
37
37
  "description": "Create cross-browser extensions with no build configuration.",
38
38
  "homepage": "https://extension.js.org/",
39
39
  "bugs": {
@@ -90,8 +90,8 @@
90
90
  "@types/chrome": "^0.1.33",
91
91
  "@types/node": "^25.2.0",
92
92
  "@types/webextension-polyfill": "0.12.4",
93
- "extension-create": "^3.5.0-next.9",
94
- "extension-develop": "^3.5.0-next.9",
93
+ "extension-create": "^3.5.0",
94
+ "extension-develop": "^3.5.0",
95
95
  "commander": "^14.0.3",
96
96
  "pintor": "0.3.0",
97
97
  "semver": "^7.7.3",