wxt 0.17.2-alpha3 → 0.17.2-alpha5

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.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('publish-browser-extension/cli');
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.17.2-alpha3";
2
+ var version = "0.17.2-alpha5";
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
- "rollup-plugin-visualizer",
2905
+ "wxt-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-alpha3";
2184
+ var version = "0.17.2-alpha5";
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
- "rollup-plugin-visualizer",
2914
+ "wxt-rollup-plugin-visualizer",
2915
2915
  [
2916
2916
  ...absolutePaths,
2917
2917
  "--template",
@@ -2953,14 +2953,8 @@ function printValidationResults({
2953
2953
  }
2954
2954
 
2955
2955
  // src/core/build.ts
2956
- import { ensureDependencyInstalled } from "nypm";
2957
2956
  async function build(config) {
2958
2957
  await registerWxt("build", config);
2959
- if (wxt.config.analysis.enabled) {
2960
- await ensureDependencyInstalled("rollup-plugin-visualizer", {
2961
- dev: true
2962
- });
2963
- }
2964
2958
  return await internalBuild();
2965
2959
  }
2966
2960
 
@@ -3522,7 +3516,6 @@ async function zip(config) {
3522
3516
 
3523
3517
  // src/cli/cli-utils.ts
3524
3518
  import consola7, { LogLevels as LogLevels2 } from "consola";
3525
- import { ensureDependencyInstalled as ensureDependencyInstalled2 } from "nypm";
3526
3519
  function wrapAction(cb, options) {
3527
3520
  return async (...args) => {
3528
3521
  const isDebug = !!args.find((arg) => arg?.debug);
@@ -3555,10 +3548,9 @@ function getArrayFromFlags(flags, name) {
3555
3548
  return result.length ? result : void 0;
3556
3549
  }
3557
3550
  var aliasCommandNames = /* @__PURE__ */ new Set();
3558
- function createAliasedCommand(base, name, alias, packageName, docsUrl) {
3551
+ function createAliasedCommand(base, name, alias, docsUrl) {
3559
3552
  const aliasedCommand = base.command(name, `Alias for ${alias} (${docsUrl})`).allowUnknownOptions().action(async () => {
3560
3553
  try {
3561
- await ensureDependencyInstalled2(packageName, { dev: true });
3562
3554
  await registerWxt("build");
3563
3555
  const args = process.argv.slice(
3564
3556
  process.argv.indexOf(aliasedCommand.name) + 1
@@ -3662,8 +3654,7 @@ cli.command("init [directory]", "initialize a new project").option("-t, --templa
3662
3654
  createAliasedCommand(
3663
3655
  cli,
3664
3656
  "submit",
3665
- "publish-extension",
3666
- "publish-browser-extension",
3657
+ "wxt-publish-extension",
3667
3658
  "https://www.npmjs.com/publish-browser-extension"
3668
3659
  );
3669
3660
  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-alpha3";
4611
+ var version = "0.17.2-alpha5";
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
- "rollup-plugin-visualizer",
5337
+ "wxt-rollup-plugin-visualizer",
5338
5338
  [
5339
5339
  ...absolutePaths,
5340
5340
  "--template",
@@ -5376,14 +5376,8 @@ function printValidationResults({
5376
5376
  }
5377
5377
 
5378
5378
  // src/core/build.ts
5379
- var import_nypm = require("nypm");
5380
5379
  async function build(config) {
5381
5380
  await registerWxt("build", config);
5382
- if (wxt.config.analysis.enabled) {
5383
- await (0, import_nypm.ensureDependencyInstalled)("rollup-plugin-visualizer", {
5384
- dev: true
5385
- });
5386
- }
5387
5381
  return await internalBuild();
5388
5382
  }
5389
5383
 
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-alpha3";
67
+ var version = "0.17.2-alpha5";
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-alpha3";
67
+ var version = "0.17.2-alpha5";
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,18 +17,12 @@ import {
17
17
  unnormalizePath,
18
18
  version,
19
19
  wxt
20
- } from "./chunk-Q7CFCUFY.js";
20
+ } from "./chunk-DFTMVGC6.js";
21
21
  import "./chunk-VBXJIVYU.js";
22
22
 
23
23
  // src/core/build.ts
24
- import { ensureDependencyInstalled } from "nypm";
25
24
  async function build(config) {
26
25
  await registerWxt("build", config);
27
- if (wxt.config.analysis.enabled) {
28
- await ensureDependencyInstalled("rollup-plugin-visualizer", {
29
- dev: true
30
- });
31
- }
32
26
  return await internalBuild();
33
27
  }
34
28
 
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-Q7CFCUFY.js";
8
+ } from "./chunk-DFTMVGC6.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-alpha3",
4
+ "version": "0.17.2-alpha5",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",
@@ -30,7 +30,10 @@
30
30
  "bin",
31
31
  "dist"
32
32
  ],
33
- "bin": "./bin/wxt.mjs",
33
+ "bin": {
34
+ "wxt": "./bin/wxt.mjs",
35
+ "wxt-publish-extension": "./bin/wxt-publish-extension.cjs"
36
+ },
34
37
  "main": "./dist/index.cjs",
35
38
  "module": "./dist/index.js",
36
39
  "types": "./dist/index.d.ts",
@@ -107,10 +110,11 @@
107
110
  "minimatch": "^9.0.3",
108
111
  "natural-compare": "^1.4.0",
109
112
  "normalize-path": "^3.0.0",
110
- "nypm": "^0.3.6",
111
113
  "ora": "^7.0.1",
112
114
  "picocolors": "^1.0.0",
113
115
  "prompts": "^2.4.2",
116
+ "publish-browser-extension": "^2.1.3",
117
+ "rollup-plugin-visualizer": "^5.9.2",
114
118
  "unimport": "^3.4.0",
115
119
  "vite": "^5.1.3",
116
120
  "web-ext-run": "^0.2.0",
@@ -146,18 +150,6 @@
146
150
  "vitest-mock-extended": "^1.3.1",
147
151
  "vue": "^3.3.10"
148
152
  },
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
- },
161
153
  "packageManager": "pnpm@8.6.3",
162
154
  "simple-git-hooks": {
163
155
  "pre-commit": "pnpm lint-staged"
package/dist/cli.d.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }