extension-develop 3.1.0-next.7 → 3.1.0-next.8

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.js CHANGED
@@ -131460,16 +131460,22 @@ var __webpack_modules__ = {
131460
131460
  const entries = fs__rspack_import_1.readdirSync(projectPath, {
131461
131461
  withFileTypes: true
131462
131462
  });
131463
- return entries.some((e)=>{
131464
- if (e.isFile()) return /\.(ts|tsx|mts|mtsx)$/i.test(e.name);
131465
- if (e.isDirectory()) {
131463
+ return entries.some((entry)=>{
131464
+ if (entry.isFile()) {
131465
+ const name = entry.name;
131466
+ if (!/\.(ts|tsx|mts|mtsx)$/i.test(name)) return false;
131467
+ if (/\.(d\.ts|d\.mts|d\.mtsx)$/i.test(name)) return false;
131468
+ if (/\.(spec|test)\.(ts|tsx|mts|mtsx)$/i.test(name)) return false;
131469
+ return true;
131470
+ }
131471
+ if (entry.isDirectory()) {
131466
131472
  if (![
131467
131473
  'src',
131468
131474
  'content',
131469
131475
  'sidebar',
131470
131476
  'background'
131471
- ].includes(e.name)) return false;
131472
- const sub = path__rspack_import_0.join(projectPath, e.name);
131477
+ ].includes(entry.name)) return false;
131478
+ const sub = path__rspack_import_0.join(projectPath, entry.name);
131473
131479
  return hasTypeScriptSourceFiles(sub);
131474
131480
  }
131475
131481
  return false;
@@ -132006,6 +132012,7 @@ var __webpack_modules__ = {
132006
132012
  Cf: ()=>buildSuccess,
132007
132013
  F$: ()=>downloadingProjectPath,
132008
132014
  F_: ()=>packagingDistributionFiles,
132015
+ G2: ()=>installingRequiredDependencies,
132009
132016
  GW: ()=>failedToDownloadOrExtractZIPFileError,
132010
132017
  H3: ()=>managedDependencyConflict,
132011
132018
  I: ()=>buildWebpack,
@@ -132016,9 +132023,9 @@ var __webpack_modules__ = {
132016
132023
  Ud: ()=>downloadingText,
132017
132024
  Ut: ()=>treeWithDistFilesbrowser,
132018
132025
  V_: ()=>previewing,
132019
- Vy: ()=>installingDependencies,
132020
132026
  W4: ()=>creatingProjectPath,
132021
132027
  W6: ()=>treeWithSourceAndDistFiles,
132028
+ Z0: ()=>dependenciesInstalledRunAgain,
132022
132029
  _A: ()=>debugBrowser,
132023
132030
  aw: ()=>debugContextPath,
132024
132031
  ax: ()=>downloadedProjectFolderNotFound,
@@ -132090,6 +132097,12 @@ var __webpack_modules__ = {
132090
132097
  function previewing(browser) {
132091
132098
  return `${getLoggingPrefix('info')} Previewing the extension on ${capitalizedBrowserName(browser)}...`;
132092
132099
  }
132100
+ function installingRequiredDependencies() {
132101
+ return `${getLoggingPrefix('info')} Installing required dependencies...`;
132102
+ }
132103
+ function dependenciesInstalledRunAgain() {
132104
+ return `${getLoggingPrefix('success')} Dependencies installed. Run the command again to proceed.`;
132105
+ }
132093
132106
  function buildWebpack(projectDir, stats, browser) {
132094
132107
  const statsJson = stats?.toJson();
132095
132108
  const manifestPath = path__rspack_import_1.join(projectDir, 'manifest.json');
@@ -132217,9 +132230,6 @@ var __webpack_modules__ = {
132217
132230
  function isUsingExperimentalConfig(integration) {
132218
132231
  return `${getLoggingPrefix('info')} Using ${pintor__rspack_import_2_default().yellow(integration)}.`;
132219
132232
  }
132220
- function installingDependencies() {
132221
- return `${getLoggingPrefix('info')} Installing project dependencies...`;
132222
- }
132223
132233
  function debugDirs(manifestDir, packageJsonDir) {
132224
132234
  return `${getLoggingPrefix('info')} Directories\n${pintor__rspack_import_2_default().gray('MANIFEST_DIR')} ${pintor__rspack_import_2_default().underline(manifestDir)}\n${pintor__rspack_import_2_default().gray('PACKAGE_JSON_DIR')} ${pintor__rspack_import_2_default().underline(packageJsonDir)}`;
132225
132235
  }
@@ -132503,7 +132513,7 @@ var __webpack_modules__ = {
132503
132513
  },
132504
132514
  "./package.json" (module) {
132505
132515
  "use strict";
132506
- module.exports = JSON.parse('{"rE":"3.1.0-next.7","El":{"@rspack/core":"^1.7.2","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^5.0.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","firefox-location2":"3.0.0","go-git-it":"^5.0.3","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","package-manager-detector":"^1.6.0","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.19.0"}}');
132516
+ module.exports = JSON.parse('{"rE":"3.1.0-next.8","El":{"@rspack/core":"^1.7.2","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^5.0.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","firefox-location2":"3.0.0","go-git-it":"^5.0.3","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","package-manager-detector":"^1.6.0","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.19.0"}}');
132507
132517
  }
132508
132518
  };
132509
132519
  var __webpack_module_cache__ = {};
@@ -132578,6 +132588,7 @@ var __webpack_exports__ = {};
132578
132588
  __webpack_require__.d(__webpack_exports__, {
132579
132589
  extensionDev: ()=>extensionDev,
132580
132590
  extensionStart: ()=>extensionStart,
132591
+ ensureDependencies: ()=>ensureDependencies,
132581
132592
  extensionPreview: ()=>extensionPreview,
132582
132593
  extensionBuild: ()=>extensionBuild
132583
132594
  });
@@ -132770,62 +132781,6 @@ var __webpack_exports__ = {};
132770
132781
  };
132771
132782
  }
132772
132783
  var config_loader = __webpack_require__("./webpack/webpack-lib/config-loader.ts");
132773
- const external_cross_spawn_namespaceObject = require("cross-spawn");
132774
- var external_package_manager_detector_ = __webpack_require__("package-manager-detector");
132775
- async function getInstallCommand() {
132776
- const cwd = process.cwd();
132777
- const hasPnpmLock = external_fs_.existsSync(external_path_.join(cwd, 'pnpm-lock.yaml'));
132778
- const hasYarnLock = external_fs_.existsSync(external_path_.join(cwd, 'yarn.lock'));
132779
- const hasNpmLock = external_fs_.existsSync(external_path_.join(cwd, 'package-lock.json'));
132780
- if (hasPnpmLock) return 'pnpm';
132781
- if (hasYarnLock) return 'yarn';
132782
- if (hasNpmLock) return 'npm';
132783
- const pm = await (0, external_package_manager_detector_.detect)({
132784
- cwd
132785
- });
132786
- if (pm?.name === 'yarn') return 'yarn';
132787
- if (pm?.name === 'pnpm') return 'pnpm';
132788
- return 'npm';
132789
- }
132790
- function getInstallArgs() {
132791
- return [
132792
- 'install'
132793
- ];
132794
- }
132795
- async function installDependencies(projectPath) {
132796
- const nodeModulesPath = external_path_.join(projectPath, 'node_modules');
132797
- const originalDirectory = process.cwd();
132798
- try {
132799
- process.chdir(projectPath);
132800
- const command = await getInstallCommand();
132801
- let dependenciesArgs = getInstallArgs();
132802
- if ('npm' === command) dependenciesArgs = [
132803
- ...dependenciesArgs,
132804
- '--include=dev'
132805
- ];
132806
- await external_fs_.promises.mkdir(nodeModulesPath, {
132807
- recursive: true
132808
- });
132809
- const stdio = 'true' === process.env.EXTENSION_AUTHOR_MODE ? 'inherit' : 'ignore';
132810
- const child = (0, external_cross_spawn_namespaceObject.spawn)(command, dependenciesArgs, {
132811
- stdio
132812
- });
132813
- await new Promise((resolve, reject)=>{
132814
- child.on('close', (code)=>{
132815
- if (0 !== code) reject(new Error(messages.Ke(command, dependenciesArgs, code)));
132816
- else resolve();
132817
- });
132818
- child.on('error', (error)=>{
132819
- reject(error);
132820
- });
132821
- });
132822
- } catch (error) {
132823
- console.error(messages.RB(error));
132824
- process.exit(1);
132825
- } finally{
132826
- process.chdir(originalDirectory);
132827
- }
132828
- }
132829
132784
  var package_0 = __webpack_require__("./package.json");
132830
132785
  function assertNoManagedDependencyConflicts(userPackageJsonPath, projectPath) {
132831
132786
  try {
@@ -132869,6 +132824,28 @@ var __webpack_exports__ = {};
132869
132824
  errors_count: (info?.errors || []).length
132870
132825
  };
132871
132826
  }
132827
+ var react = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/react.ts");
132828
+ var preact = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/preact.ts");
132829
+ var vue = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/vue.ts");
132830
+ var svelte = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/svelte.ts");
132831
+ var typescript = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/typescript.ts");
132832
+ var sass = __webpack_require__("./webpack/plugin-css/css-tools/sass.ts");
132833
+ var less = __webpack_require__("./webpack/plugin-css/css-tools/less.ts");
132834
+ var postcss = __webpack_require__("./webpack/plugin-css/css-tools/postcss.ts");
132835
+ async function preflightOptionalDependencies(projectStructure, mode) {
132836
+ const { packageJsonDir } = (0, paths.fu)(projectStructure);
132837
+ const projectPath = packageJsonDir;
132838
+ await (0, typescript.vv)(projectPath);
132839
+ await (0, react.b)(projectPath);
132840
+ await (0, preact.b)(projectPath);
132841
+ await (0, vue.K)(projectPath);
132842
+ await (0, svelte.X)(projectPath, mode);
132843
+ await (0, sass.IZ)(projectPath);
132844
+ await (0, less.V)(projectPath, projectStructure.manifestPath);
132845
+ await (0, postcss.t)(projectPath, {
132846
+ mode
132847
+ });
132848
+ }
132872
132849
  function findExtensionDevelopRoot() {
132873
132850
  const webpackLibDir = __dirname;
132874
132851
  const webpackDir = external_path_.resolve(webpackLibDir, '..');
@@ -132902,7 +132879,9 @@ var __webpack_exports__ = {};
132902
132879
  const dependencies = loadBuildDependencies();
132903
132880
  return Object.keys(dependencies).filter((dep)=>!isDependencyInstalled(dep, packageRoot));
132904
132881
  }
132905
- async function install_own_dependencies_getInstallCommand(packageRoot) {
132882
+ const external_cross_spawn_namespaceObject = require("cross-spawn");
132883
+ var external_package_manager_detector_ = __webpack_require__("package-manager-detector");
132884
+ async function getInstallCommand(packageRoot) {
132906
132885
  const hasPnpmLock = external_fs_.existsSync(external_path_.join(packageRoot, 'pnpm-lock.yaml'));
132907
132886
  const hasYarnLock = external_fs_.existsSync(external_path_.join(packageRoot, 'yarn.lock'));
132908
132887
  const hasNpmLock = external_fs_.existsSync(external_path_.join(packageRoot, 'package-lock.json'));
@@ -132916,7 +132895,7 @@ var __webpack_exports__ = {};
132916
132895
  if (pm?.name === 'pnpm') return 'pnpm';
132917
132896
  return 'npm';
132918
132897
  }
132919
- function install_own_dependencies_getInstallArgs(command, dependencies, dependenciesMap) {
132898
+ function getInstallArgs(command, dependencies, dependenciesMap) {
132920
132899
  const depsWithVersions = dependencies.map((dep)=>`${dep}@${dependenciesMap[dep]}`);
132921
132900
  if ('pnpm' === command) return [
132922
132901
  'add',
@@ -132942,8 +132921,8 @@ var __webpack_exports__ = {};
132942
132921
  const originalDirectory = process.cwd();
132943
132922
  try {
132944
132923
  process.chdir(packageRoot);
132945
- const command = await install_own_dependencies_getInstallCommand(packageRoot);
132946
- const installArgs = install_own_dependencies_getInstallArgs(command, dependencies, dependenciesMap);
132924
+ const command = await getInstallCommand(packageRoot);
132925
+ const installArgs = getInstallArgs(command, dependencies, dependenciesMap);
132947
132926
  const stdio = 'true' === process.env.EXTENSION_AUTHOR_MODE ? 'inherit' : 'ignore';
132948
132927
  console.log(`Installing build dependencies: ${dependencies.join(', ')}`);
132949
132928
  const child = (0, external_cross_spawn_namespaceObject.spawn)(command, installArgs, {
@@ -132966,39 +132945,101 @@ var __webpack_exports__ = {};
132966
132945
  process.chdir(originalDirectory);
132967
132946
  }
132968
132947
  }
132969
- var react = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/react.ts");
132970
- var preact = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/preact.ts");
132971
- var vue = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/vue.ts");
132972
- var svelte = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/svelte.ts");
132973
- var typescript = __webpack_require__("./webpack/plugin-js-frameworks/js-tools/typescript.ts");
132974
- var sass = __webpack_require__("./webpack/plugin-css/css-tools/sass.ts");
132975
- var less = __webpack_require__("./webpack/plugin-css/css-tools/less.ts");
132976
- var postcss = __webpack_require__("./webpack/plugin-css/css-tools/postcss.ts");
132977
- async function preflightOptionalDependencies(projectStructure, mode) {
132978
- const { packageJsonDir } = (0, paths.fu)(projectStructure);
132979
- const projectPath = packageJsonDir;
132980
- await (0, typescript.vv)(projectPath);
132981
- await (0, react.b)(projectPath);
132982
- await (0, preact.b)(projectPath);
132983
- await (0, vue.K)(projectPath);
132984
- await (0, svelte.X)(projectPath, mode);
132985
- await (0, sass.IZ)(projectPath);
132986
- await (0, less.V)(projectPath, projectStructure.manifestPath);
132987
- await (0, postcss.t)(projectPath, {
132988
- mode
132948
+ async function install_dependencies_getInstallCommand() {
132949
+ const cwd = process.cwd();
132950
+ const hasPnpmLock = external_fs_.existsSync(external_path_.join(cwd, 'pnpm-lock.yaml'));
132951
+ const hasYarnLock = external_fs_.existsSync(external_path_.join(cwd, 'yarn.lock'));
132952
+ const hasNpmLock = external_fs_.existsSync(external_path_.join(cwd, 'package-lock.json'));
132953
+ if (hasPnpmLock) return 'pnpm';
132954
+ if (hasYarnLock) return 'yarn';
132955
+ if (hasNpmLock) return 'npm';
132956
+ const pm = await (0, external_package_manager_detector_.detect)({
132957
+ cwd
132989
132958
  });
132959
+ if (pm?.name === 'yarn') return 'yarn';
132960
+ if (pm?.name === 'pnpm') return 'pnpm';
132961
+ return 'npm';
132990
132962
  }
132991
- async function extensionBuild(pathOrRemoteUrl, buildOptions) {
132992
- const packageRoot = findExtensionDevelopRoot();
132993
- if (packageRoot && !areBuildDependenciesInstalled(packageRoot)) {
132994
- const missing = getMissingBuildDependencies(packageRoot);
132995
- await installOwnDependencies(missing, packageRoot);
132963
+ function install_dependencies_getInstallArgs() {
132964
+ return [
132965
+ 'install'
132966
+ ];
132967
+ }
132968
+ async function installDependencies(projectPath) {
132969
+ const nodeModulesPath = external_path_.join(projectPath, 'node_modules');
132970
+ const originalDirectory = process.cwd();
132971
+ try {
132972
+ process.chdir(projectPath);
132973
+ const command = await install_dependencies_getInstallCommand();
132974
+ let dependenciesArgs = install_dependencies_getInstallArgs();
132975
+ if ('npm' === command) dependenciesArgs = [
132976
+ ...dependenciesArgs,
132977
+ '--include=dev'
132978
+ ];
132979
+ await external_fs_.promises.mkdir(nodeModulesPath, {
132980
+ recursive: true
132981
+ });
132982
+ const stdio = 'true' === process.env.EXTENSION_AUTHOR_MODE ? 'inherit' : 'ignore';
132983
+ const child = (0, external_cross_spawn_namespaceObject.spawn)(command, dependenciesArgs, {
132984
+ stdio
132985
+ });
132986
+ await new Promise((resolve, reject)=>{
132987
+ child.on('close', (code)=>{
132988
+ if (0 !== code) reject(new Error(messages.Ke(command, dependenciesArgs, code)));
132989
+ else resolve();
132990
+ });
132991
+ child.on('error', (error)=>{
132992
+ reject(error);
132993
+ });
132994
+ });
132995
+ } catch (error) {
132996
+ console.error(messages.RB(error));
132997
+ process.exit(1);
132998
+ } finally{
132999
+ process.chdir(originalDirectory);
132996
133000
  }
133001
+ }
133002
+ async function ensureDependencies(projectPath, opts) {
133003
+ const packageRoot = findExtensionDevelopRoot();
133004
+ const missingBuild = packageRoot && !areBuildDependenciesInstalled(packageRoot) ? getMissingBuildDependencies(packageRoot) : [];
133005
+ const shouldInstallUserDeps = !!projectPath && !opts?.skipProjectInstall && (0, paths.Bi)((0, paths.G6)(projectPath));
133006
+ const needsBuildInstall = missingBuild.length > 0;
133007
+ const needsUserInstall = shouldInstallUserDeps;
133008
+ if (!needsBuildInstall && !needsUserInstall) return {
133009
+ installed: false,
133010
+ installedBuild: false,
133011
+ installedUser: false
133012
+ };
133013
+ console.log(messages.G2());
133014
+ if (needsBuildInstall && packageRoot) await installOwnDependencies(missingBuild, packageRoot);
133015
+ if (needsUserInstall && projectPath) await installDependencies(projectPath);
133016
+ if (opts?.showRunAgainMessage !== false) console.log(messages.Z0());
133017
+ if (opts?.exitOnInstall) process.exit(0);
133018
+ return {
133019
+ installed: true,
133020
+ installedBuild: needsBuildInstall,
133021
+ installedUser: needsUserInstall
133022
+ };
133023
+ }
133024
+ async function extensionBuild(pathOrRemoteUrl, buildOptions) {
132997
133025
  const projectStructure = await getProjectStructure(pathOrRemoteUrl);
132998
133026
  const isVitest = 'true' === process.env.VITEST;
132999
133027
  const shouldExitOnError = (buildOptions?.exitOnError ?? true) && !isVitest;
133000
133028
  const browser = (0, paths.YN)(buildOptions?.browser || 'chrome', buildOptions?.chromiumBinary, buildOptions?.geckoBinary || buildOptions?.firefoxBinary);
133029
+ const { manifestDir, packageJsonDir } = (0, paths.fu)(projectStructure);
133001
133030
  try {
133031
+ const depsResult = await ensureDependencies(packageJsonDir, {
133032
+ skipProjectInstall: isVitest || !projectStructure.packageJsonPath,
133033
+ exitOnInstall: true
133034
+ });
133035
+ if (depsResult.installed) return {
133036
+ browser,
133037
+ total_assets: 0,
133038
+ total_bytes: 0,
133039
+ largest_asset_bytes: 0,
133040
+ warnings_count: 0,
133041
+ errors_count: 0
133042
+ };
133002
133043
  await preflightOptionalDependencies(projectStructure, 'production');
133003
133044
  const [{ rspack }, { merge }, { handleStatsErrors }, { default: webpackConfig }] = await Promise.all([
133004
133045
  import("@rspack/core"),
@@ -133010,7 +133051,6 @@ var __webpack_exports__ = {};
133010
133051
  ]).then(__webpack_require__.bind(__webpack_require__, "./webpack/webpack-config.ts"))
133011
133052
  ]);
133012
133053
  const debug = 'true' === process.env.EXTENSION_AUTHOR_MODE;
133013
- const { manifestDir, packageJsonDir } = (0, paths.fu)(projectStructure);
133014
133054
  if (projectStructure.packageJsonPath) assertNoManagedDependencyConflicts(projectStructure.packageJsonPath, manifestDir);
133015
133055
  const commandConfig = await (0, config_loader.eY)(manifestDir, 'build');
133016
133056
  const distPath = (0, paths.q4)(packageJsonDir, browser);
@@ -133037,12 +133077,6 @@ var __webpack_exports__ = {};
133037
133077
  });
133038
133078
  const compilerConfig = merge(userConfig);
133039
133079
  const compiler = rspack(compilerConfig);
133040
- if (projectStructure.packageJsonPath) {
133041
- if ((0, paths.Bi)(packageJsonDir)) {
133042
- console.log(messages.Vy());
133043
- if ('true' !== process.env.VITEST) await installDependencies(packageJsonDir);
133044
- }
133045
- }
133046
133080
  let summary = {
133047
133081
  browser,
133048
133082
  total_assets: 0,
@@ -133112,24 +133146,18 @@ var __webpack_exports__ = {};
133112
133146
  }
133113
133147
  }
133114
133148
  async function extensionDev(pathOrRemoteUrl, devOptions) {
133115
- const packageRoot = findExtensionDevelopRoot();
133116
- if (packageRoot && !areBuildDependenciesInstalled(packageRoot)) {
133117
- const missing = getMissingBuildDependencies(packageRoot);
133118
- await installOwnDependencies(missing, packageRoot);
133119
- }
133120
133149
  const projectStructure = await getProjectStructure(pathOrRemoteUrl);
133121
133150
  try {
133122
133151
  const debug = 'true' === process.env.EXTENSION_AUTHOR_MODE;
133123
133152
  const { manifestDir, packageJsonDir } = (0, paths.fu)(projectStructure);
133153
+ const depsResult = await ensureDependencies(packageJsonDir, {
133154
+ skipProjectInstall: !projectStructure.packageJsonPath,
133155
+ exitOnInstall: true
133156
+ });
133157
+ if (depsResult.installed) return;
133124
133158
  await preflightOptionalDependencies(projectStructure, 'development');
133125
133159
  if ((0, typescript.eE)(manifestDir)) await generateExtensionTypes(manifestDir, packageJsonDir);
133126
133160
  if (projectStructure.packageJsonPath) assertNoManagedDependencyConflicts(projectStructure.packageJsonPath, manifestDir);
133127
- if (projectStructure.packageJsonPath) {
133128
- if ((0, paths.Bi)(packageJsonDir)) {
133129
- console.log(messages.Vy());
133130
- await installDependencies(packageJsonDir);
133131
- }
133132
- }
133133
133161
  const browser = (0, paths.YN)(devOptions.browser || 'chrome', devOptions.chromiumBinary, devOptions.geckoBinary || devOptions.firefoxBinary);
133134
133162
  const geckoBinary = devOptions.geckoBinary || devOptions.firefoxBinary;
133135
133163
  if (debug) {
@@ -133281,11 +133309,6 @@ var __webpack_exports__ = {};
133281
133309
  });
133282
133310
  }
133283
133311
  async function extensionStart(pathOrRemoteUrl, startOptions) {
133284
- const packageRoot = findExtensionDevelopRoot();
133285
- if (packageRoot && !areBuildDependenciesInstalled(packageRoot)) {
133286
- const missing = getMissingBuildDependencies(packageRoot);
133287
- await installOwnDependencies(missing, packageRoot);
133288
- }
133289
133312
  const projectStructure = await getProjectStructure(pathOrRemoteUrl);
133290
133313
  try {
133291
133314
  const debug = 'true' === process.env.EXTENSION_AUTHOR_MODE;
@@ -133320,11 +133343,13 @@ var __webpack_exports__ = {};
133320
133343
  }
133321
133344
  }
133322
133345
  })();
133346
+ exports.ensureDependencies = __webpack_exports__.ensureDependencies;
133323
133347
  exports.extensionBuild = __webpack_exports__.extensionBuild;
133324
133348
  exports.extensionDev = __webpack_exports__.extensionDev;
133325
133349
  exports.extensionPreview = __webpack_exports__.extensionPreview;
133326
133350
  exports.extensionStart = __webpack_exports__.extensionStart;
133327
133351
  for(var __rspack_i in __webpack_exports__)if (-1 === [
133352
+ "ensureDependencies",
133328
133353
  "extensionBuild",
133329
133354
  "extensionDev",
133330
133355
  "extensionPreview",
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "name": "extension-develop",
25
- "version": "3.1.0-next.7",
25
+ "version": "3.1.0-next.8",
26
26
  "description": "Develop, build, preview, and package Extension.js projects.",
27
27
  "author": {
28
28
  "name": "Cezar Augusto",
@@ -1,65 +0,0 @@
1
- {
2
- "name": "Extension.js Theme",
3
- "version": "0.2.0",
4
- "description": "Browser theme for Extension.js",
5
- "manifest_version": 3,
6
- "theme": {
7
- "colors": {
8
- "frame": [
9
- 37,
10
- 37,
11
- 39
12
- ],
13
- "frame_inactive": [
14
- 49,
15
- 49,
16
- 53
17
- ],
18
- "toolbar": [
19
- 25,
20
- 25,
21
- 26
22
- ],
23
- "tab_background_text": [
24
- 255,
25
- 255,
26
- 255
27
- ],
28
- "tab_text": [
29
- 255,
30
- 255,
31
- 255
32
- ],
33
- "tab_background_text_inactive": [
34
- 62,
35
- 62,
36
- 66
37
- ],
38
- "tab_text_inactive": [
39
- 255,
40
- 255,
41
- 255
42
- ],
43
- "bookmark_text": [
44
- 153,
45
- 153,
46
- 159
47
- ],
48
- "ntp_background": [
49
- 179,
50
- 179,
51
- 183
52
- ],
53
- "ntp_text": [
54
- 37,
55
- 37,
56
- 39
57
- ],
58
- "button_background": [
59
- 28,
60
- 28,
61
- 30
62
- ]
63
- }
64
- }
65
- }
@@ -1,65 +0,0 @@
1
- {
2
- "name": "Extension.js Theme",
3
- "version": "0.2.0",
4
- "description": "Browser theme for Extension.js",
5
- "manifest_version": 3,
6
- "theme": {
7
- "colors": {
8
- "frame": [
9
- 37,
10
- 37,
11
- 39
12
- ],
13
- "frame_inactive": [
14
- 49,
15
- 49,
16
- 53
17
- ],
18
- "toolbar": [
19
- 25,
20
- 25,
21
- 26
22
- ],
23
- "tab_background_text": [
24
- 255,
25
- 255,
26
- 255
27
- ],
28
- "tab_text": [
29
- 255,
30
- 255,
31
- 255
32
- ],
33
- "tab_background_text_inactive": [
34
- 62,
35
- 62,
36
- 66
37
- ],
38
- "tab_text_inactive": [
39
- 255,
40
- 255,
41
- 255
42
- ],
43
- "bookmark_text": [
44
- 153,
45
- 153,
46
- 159
47
- ],
48
- "ntp_background": [
49
- 179,
50
- 179,
51
- 183
52
- ],
53
- "ntp_text": [
54
- 37,
55
- 37,
56
- 39
57
- ],
58
- "button_background": [
59
- 28,
60
- 28,
61
- 30
62
- ]
63
- }
64
- }
65
- }
@@ -1,65 +0,0 @@
1
- {
2
- "name": "Extension.js Theme",
3
- "version": "0.2.0",
4
- "description": "Browser theme for Extension.js",
5
- "manifest_version": 3,
6
- "theme": {
7
- "colors": {
8
- "frame": [
9
- 37,
10
- 37,
11
- 39
12
- ],
13
- "frame_inactive": [
14
- 49,
15
- 49,
16
- 53
17
- ],
18
- "toolbar": [
19
- 25,
20
- 25,
21
- 26
22
- ],
23
- "tab_background_text": [
24
- 255,
25
- 255,
26
- 255
27
- ],
28
- "tab_text": [
29
- 255,
30
- 255,
31
- 255
32
- ],
33
- "tab_background_text_inactive": [
34
- 62,
35
- 62,
36
- 66
37
- ],
38
- "tab_text_inactive": [
39
- 255,
40
- 255,
41
- 255
42
- ],
43
- "bookmark_text": [
44
- 153,
45
- 153,
46
- 159
47
- ],
48
- "ntp_background": [
49
- 179,
50
- 179,
51
- 183
52
- ],
53
- "ntp_text": [
54
- 37,
55
- 37,
56
- 39
57
- ],
58
- "button_background": [
59
- 28,
60
- 28,
61
- 30
62
- ]
63
- }
64
- }
65
- }
@@ -1,6 +0,0 @@
1
- {
2
- "name": "Extension.js Theme",
3
- "version": "0.2.0",
4
- "description": "Browser theme for Extension.js",
5
- "manifest_version": 2
6
- }