wxt 0.17.2-alpha1 → 0.17.2-alpha3

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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.17.2-alpha1";
2
+ var version = "0.17.2-alpha3";
3
3
 
4
4
  // src/core/utils/paths.ts
5
5
  import systemPath from "node:path";
@@ -2902,7 +2902,7 @@ async function combineAnalysisStats() {
2902
2902
  const absolutePaths = unixFiles.map(unnormalizePath);
2903
2903
  const { execa } = await import("./execa-4F7CCWCA.js");
2904
2904
  await execa(
2905
- "wxt-rollup-plugin-visualizer",
2905
+ "rollup-plugin-visualizer",
2906
2906
  [
2907
2907
  ...absolutePaths,
2908
2908
  "--template",
package/dist/cli.js CHANGED
@@ -2181,7 +2181,7 @@ function getChunkSortWeight(filename) {
2181
2181
  import pc4 from "picocolors";
2182
2182
 
2183
2183
  // package.json
2184
- var version = "0.17.2-alpha1";
2184
+ var version = "0.17.2-alpha3";
2185
2185
 
2186
2186
  // src/core/utils/log/printHeader.ts
2187
2187
  import { consola as consola2 } from "consola";
@@ -2911,7 +2911,7 @@ async function combineAnalysisStats() {
2911
2911
  const absolutePaths = unixFiles.map(unnormalizePath);
2912
2912
  const { execa } = await import("./execa-Y2EWTC4S.js");
2913
2913
  await execa(
2914
- "wxt-rollup-plugin-visualizer",
2914
+ "rollup-plugin-visualizer",
2915
2915
  [
2916
2916
  ...absolutePaths,
2917
2917
  "--template",
@@ -2953,8 +2953,14 @@ function printValidationResults({
2953
2953
  }
2954
2954
 
2955
2955
  // src/core/build.ts
2956
+ import { ensureDependencyInstalled } from "nypm";
2956
2957
  async function build(config) {
2957
2958
  await registerWxt("build", config);
2959
+ if (wxt.config.analysis.enabled) {
2960
+ await ensureDependencyInstalled("rollup-plugin-visualizer", {
2961
+ dev: true
2962
+ });
2963
+ }
2958
2964
  return await internalBuild();
2959
2965
  }
2960
2966
 
@@ -3516,6 +3522,7 @@ async function zip(config) {
3516
3522
 
3517
3523
  // src/cli/cli-utils.ts
3518
3524
  import consola7, { LogLevels as LogLevels2 } from "consola";
3525
+ import { ensureDependencyInstalled as ensureDependencyInstalled2 } from "nypm";
3519
3526
  function wrapAction(cb, options) {
3520
3527
  return async (...args) => {
3521
3528
  const isDebug = !!args.find((arg) => arg?.debug);
@@ -3548,9 +3555,10 @@ function getArrayFromFlags(flags, name) {
3548
3555
  return result.length ? result : void 0;
3549
3556
  }
3550
3557
  var aliasCommandNames = /* @__PURE__ */ new Set();
3551
- function createAliasedCommand(base, name, alias, docsUrl) {
3558
+ function createAliasedCommand(base, name, alias, packageName, docsUrl) {
3552
3559
  const aliasedCommand = base.command(name, `Alias for ${alias} (${docsUrl})`).allowUnknownOptions().action(async () => {
3553
3560
  try {
3561
+ await ensureDependencyInstalled2(packageName, { dev: true });
3554
3562
  await registerWxt("build");
3555
3563
  const args = process.argv.slice(
3556
3564
  process.argv.indexOf(aliasedCommand.name) + 1
@@ -3654,7 +3662,8 @@ cli.command("init [directory]", "initialize a new project").option("-t, --templa
3654
3662
  createAliasedCommand(
3655
3663
  cli,
3656
3664
  "submit",
3657
- "wxt-publish-extension",
3665
+ "publish-extension",
3666
+ "publish-browser-extension",
3658
3667
  "https://www.npmjs.com/publish-browser-extension"
3659
3668
  );
3660
3669
  var commands_default = cli;
package/dist/index.cjs CHANGED
@@ -4608,7 +4608,7 @@ function getChunkSortWeight(filename) {
4608
4608
  var import_picocolors4 = __toESM(require("picocolors"), 1);
4609
4609
 
4610
4610
  // package.json
4611
- var version = "0.17.2-alpha1";
4611
+ var version = "0.17.2-alpha3";
4612
4612
 
4613
4613
  // src/core/utils/log/printHeader.ts
4614
4614
  var import_consola2 = require("consola");
@@ -5334,7 +5334,7 @@ async function combineAnalysisStats() {
5334
5334
  const absolutePaths = unixFiles.map(unnormalizePath);
5335
5335
  const { execa: execa2 } = await Promise.resolve().then(() => (init_execa(), execa_exports));
5336
5336
  await execa2(
5337
- "wxt-rollup-plugin-visualizer",
5337
+ "rollup-plugin-visualizer",
5338
5338
  [
5339
5339
  ...absolutePaths,
5340
5340
  "--template",
@@ -5376,8 +5376,14 @@ function printValidationResults({
5376
5376
  }
5377
5377
 
5378
5378
  // src/core/build.ts
5379
+ var import_nypm = require("nypm");
5379
5380
  async function build(config) {
5380
5381
  await registerWxt("build", config);
5382
+ if (wxt.config.analysis.enabled) {
5383
+ await (0, import_nypm.ensureDependencyInstalled)("rollup-plugin-visualizer", {
5384
+ dev: true
5385
+ });
5386
+ }
5381
5387
  return await internalBuild();
5382
5388
  }
5383
5389
 
package/dist/index.d.cts CHANGED
@@ -64,6 +64,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
64
64
  */
65
65
  declare function zip(config?: InlineConfig): Promise<string[]>;
66
66
 
67
- var version = "0.17.2-alpha1";
67
+ var version = "0.17.2-alpha3";
68
68
 
69
69
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.d.ts CHANGED
@@ -64,6 +64,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
64
64
  */
65
65
  declare function zip(config?: InlineConfig): Promise<string[]>;
66
66
 
67
- var version = "0.17.2-alpha1";
67
+ var version = "0.17.2-alpha3";
68
68
 
69
69
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.js CHANGED
@@ -17,12 +17,18 @@ import {
17
17
  unnormalizePath,
18
18
  version,
19
19
  wxt
20
- } from "./chunk-5I3RQIJ6.js";
20
+ } from "./chunk-Q7CFCUFY.js";
21
21
  import "./chunk-VBXJIVYU.js";
22
22
 
23
23
  // src/core/build.ts
24
+ import { ensureDependencyInstalled } from "nypm";
24
25
  async function build(config) {
25
26
  await registerWxt("build", config);
27
+ if (wxt.config.analysis.enabled) {
28
+ await ensureDependencyInstalled("rollup-plugin-visualizer", {
29
+ dev: true
30
+ });
31
+ }
26
32
  return await internalBuild();
27
33
  }
28
34
 
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-5I3RQIJ6.js";
8
+ } from "./chunk-Q7CFCUFY.js";
9
9
  import "./chunk-VBXJIVYU.js";
10
10
 
11
11
  // src/testing/fake-browser.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.17.2-alpha1",
4
+ "version": "0.17.2-alpha3",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",
@@ -30,11 +30,7 @@
30
30
  "bin",
31
31
  "dist"
32
32
  ],
33
- "bin": {
34
- "wxt": "./bin/wxt.mjs",
35
- "wxt-publish-extension": "./bin/wxt-publish-extension.mjs",
36
- "wxt-rollup-plugin-visualizer": "./bin/wxt-rollup-plugin-visualizer.mjs"
37
- },
33
+ "bin": "./bin/wxt.mjs",
38
34
  "main": "./dist/index.cjs",
39
35
  "module": "./dist/index.js",
40
36
  "types": "./dist/index.d.ts",
@@ -111,11 +107,10 @@
111
107
  "minimatch": "^9.0.3",
112
108
  "natural-compare": "^1.4.0",
113
109
  "normalize-path": "^3.0.0",
110
+ "nypm": "^0.3.6",
114
111
  "ora": "^7.0.1",
115
112
  "picocolors": "^1.0.0",
116
113
  "prompts": "^2.4.2",
117
- "publish-browser-extension": "^2.1.2",
118
- "rollup-plugin-visualizer": "^5.9.2",
119
114
  "unimport": "^3.4.0",
120
115
  "vite": "^5.1.3",
121
116
  "web-ext-run": "^0.2.0",
@@ -151,6 +146,18 @@
151
146
  "vitest-mock-extended": "^1.3.1",
152
147
  "vue": "^3.3.10"
153
148
  },
149
+ "peerDependencies": {
150
+ "publish-browser-extension": "^2.1.2",
151
+ "rollup-plugin-visualizer": "^5.9.2"
152
+ },
153
+ "peerDependenciesMeta": {
154
+ "publish-browser-extension": {
155
+ "optional": true
156
+ },
157
+ "rollup-plugin-visualizer": {
158
+ "optional": true
159
+ }
160
+ },
154
161
  "packageManager": "pnpm@8.6.3",
155
162
  "simple-git-hooks": {
156
163
  "pre-commit": "pnpm lint-staged"
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- await import('publish-browser-extension/dist/cli.cjs');
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- await import('rollup-plugin-visualizer/dist/bin/cli.js');