wxt 0.17.2-alpha5 → 0.17.2
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/bin/wxt-publish-extension.cjs +5 -0
- package/dist/{chunk-DFTMVGC6.js → chunk-OLUK5FJF.js} +8 -14
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +11 -16
- package/dist/{index-Du5Xv5e8.d.ts → index-V1QWdhdh.d.cts} +1 -1
- package/dist/{index-Du5Xv5e8.d.cts → index-V1QWdhdh.d.ts} +1 -1
- package/dist/index.cjs +100 -2491
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -2
- package/dist/storage.js +0 -2
- package/dist/testing.cjs +2 -1
- package/dist/testing.d.cts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +1 -2
- package/package.json +2 -2
- package/dist/chunk-VBXJIVYU.js +0 -38
- package/dist/execa-4F7CCWCA.js +0 -2191
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* A alias around `publish-extension` that is always installed on the path without having to install
|
|
4
|
+
* `publish-browser-extension` as a direct dependency (like for PNPM, which doesn't link
|
|
5
|
+
* sub-dependency binaries to "node_modules/.bin")
|
|
6
|
+
*/
|
|
2
7
|
require('publish-browser-extension/cli');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.17.2
|
|
2
|
+
var version = "0.17.2";
|
|
3
3
|
|
|
4
4
|
// src/core/utils/paths.ts
|
|
5
5
|
import systemPath from "node:path";
|
|
@@ -1322,7 +1322,7 @@ function cssEntrypoints(entrypoint, config) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
|
|
1324
1324
|
// src/core/builders/vite/plugins/bundleAnalysis.ts
|
|
1325
|
-
import { visualizer } from "rollup-plugin-visualizer";
|
|
1325
|
+
import { visualizer } from "@aklinker1/rollup-plugin-visualizer";
|
|
1326
1326
|
import path3 from "node:path";
|
|
1327
1327
|
var increment = 0;
|
|
1328
1328
|
function bundleAnalysis(config) {
|
|
@@ -2849,6 +2849,7 @@ var ValidationError = class extends Error {
|
|
|
2849
2849
|
|
|
2850
2850
|
// src/core/utils/building/internal-build.ts
|
|
2851
2851
|
import consola3 from "consola";
|
|
2852
|
+
import { mergeJsonOutputs } from "@aklinker1/rollup-plugin-visualizer";
|
|
2852
2853
|
async function internalBuild() {
|
|
2853
2854
|
await wxt.hooks.callHook("build:before", wxt);
|
|
2854
2855
|
const verb = wxt.config.command === "serve" ? "Pre-rendering" : "Building";
|
|
@@ -2900,18 +2901,11 @@ async function combineAnalysisStats() {
|
|
|
2900
2901
|
absolute: true
|
|
2901
2902
|
});
|
|
2902
2903
|
const absolutePaths = unixFiles.map(unnormalizePath);
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
"--template",
|
|
2909
|
-
wxt.config.analysis.template,
|
|
2910
|
-
"--filename",
|
|
2911
|
-
wxt.config.analysis.outputFile
|
|
2912
|
-
],
|
|
2913
|
-
{ cwd: wxt.config.root, stdio: "inherit" }
|
|
2914
|
-
);
|
|
2904
|
+
await mergeJsonOutputs({
|
|
2905
|
+
inputs: absolutePaths,
|
|
2906
|
+
template: wxt.config.analysis.template,
|
|
2907
|
+
filename: wxt.config.analysis.outputFile
|
|
2908
|
+
});
|
|
2915
2909
|
if (!wxt.config.analysis.keepArtifacts) {
|
|
2916
2910
|
await Promise.all(absolutePaths.map((statsFile) => fs12.remove(statsFile)));
|
|
2917
2911
|
}
|
package/dist/cli.d.ts
ADDED
package/dist/cli.js
CHANGED
|
@@ -1347,7 +1347,7 @@ function cssEntrypoints(entrypoint, config) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
|
|
1349
1349
|
// src/core/builders/vite/plugins/bundleAnalysis.ts
|
|
1350
|
-
import { visualizer } from "rollup-plugin-visualizer";
|
|
1350
|
+
import { visualizer } from "@aklinker1/rollup-plugin-visualizer";
|
|
1351
1351
|
import path3 from "node:path";
|
|
1352
1352
|
var increment = 0;
|
|
1353
1353
|
function bundleAnalysis(config) {
|
|
@@ -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
|
|
2184
|
+
var version = "0.17.2";
|
|
2185
2185
|
|
|
2186
2186
|
// src/core/utils/log/printHeader.ts
|
|
2187
2187
|
import { consola as consola2 } from "consola";
|
|
@@ -2858,6 +2858,7 @@ var ValidationError = class extends Error {
|
|
|
2858
2858
|
|
|
2859
2859
|
// src/core/utils/building/internal-build.ts
|
|
2860
2860
|
import consola3 from "consola";
|
|
2861
|
+
import { mergeJsonOutputs } from "@aklinker1/rollup-plugin-visualizer";
|
|
2861
2862
|
async function internalBuild() {
|
|
2862
2863
|
await wxt.hooks.callHook("build:before", wxt);
|
|
2863
2864
|
const verb = wxt.config.command === "serve" ? "Pre-rendering" : "Building";
|
|
@@ -2909,18 +2910,11 @@ async function combineAnalysisStats() {
|
|
|
2909
2910
|
absolute: true
|
|
2910
2911
|
});
|
|
2911
2912
|
const absolutePaths = unixFiles.map(unnormalizePath);
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
"--template",
|
|
2918
|
-
wxt.config.analysis.template,
|
|
2919
|
-
"--filename",
|
|
2920
|
-
wxt.config.analysis.outputFile
|
|
2921
|
-
],
|
|
2922
|
-
{ cwd: wxt.config.root, stdio: "inherit" }
|
|
2923
|
-
);
|
|
2913
|
+
await mergeJsonOutputs({
|
|
2914
|
+
inputs: absolutePaths,
|
|
2915
|
+
template: wxt.config.analysis.template,
|
|
2916
|
+
filename: wxt.config.analysis.outputFile
|
|
2917
|
+
});
|
|
2924
2918
|
if (!wxt.config.analysis.keepArtifacts) {
|
|
2925
2919
|
await Promise.all(absolutePaths.map((statsFile) => fs12.remove(statsFile)));
|
|
2926
2920
|
}
|
|
@@ -3548,7 +3542,7 @@ function getArrayFromFlags(flags, name) {
|
|
|
3548
3542
|
return result.length ? result : void 0;
|
|
3549
3543
|
}
|
|
3550
3544
|
var aliasCommandNames = /* @__PURE__ */ new Set();
|
|
3551
|
-
function createAliasedCommand(base, name, alias, docsUrl) {
|
|
3545
|
+
function createAliasedCommand(base, name, alias, bin, docsUrl) {
|
|
3552
3546
|
const aliasedCommand = base.command(name, `Alias for ${alias} (${docsUrl})`).allowUnknownOptions().action(async () => {
|
|
3553
3547
|
try {
|
|
3554
3548
|
await registerWxt("build");
|
|
@@ -3556,7 +3550,7 @@ function createAliasedCommand(base, name, alias, docsUrl) {
|
|
|
3556
3550
|
process.argv.indexOf(aliasedCommand.name) + 1
|
|
3557
3551
|
);
|
|
3558
3552
|
const { execa } = await import("./execa-Y2EWTC4S.js");
|
|
3559
|
-
await execa(
|
|
3553
|
+
await execa(bin, args, {
|
|
3560
3554
|
stdio: "inherit"
|
|
3561
3555
|
});
|
|
3562
3556
|
} catch {
|
|
@@ -3654,6 +3648,7 @@ cli.command("init [directory]", "initialize a new project").option("-t, --templa
|
|
|
3654
3648
|
createAliasedCommand(
|
|
3655
3649
|
cli,
|
|
3656
3650
|
"submit",
|
|
3651
|
+
"publish-extension",
|
|
3657
3652
|
"wxt-publish-extension",
|
|
3658
3653
|
"https://www.npmjs.com/publish-browser-extension"
|
|
3659
3654
|
);
|
|
@@ -2,7 +2,7 @@ import * as vite from 'vite';
|
|
|
2
2
|
import { Manifest, Scripting } from 'webextension-polyfill';
|
|
3
3
|
import { UnimportOptions } from 'unimport';
|
|
4
4
|
import { LogLevel } from 'consola';
|
|
5
|
-
import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
|
|
5
|
+
import { PluginVisualizerOptions } from '@aklinker1/rollup-plugin-visualizer';
|
|
6
6
|
import { FSWatcher } from 'chokidar';
|
|
7
7
|
import { ResolvedConfig as ResolvedConfig$1 } from 'c12';
|
|
8
8
|
import { NestedHooks, Hookable } from 'hookable';
|
|
@@ -2,7 +2,7 @@ import * as vite from 'vite';
|
|
|
2
2
|
import { Manifest, Scripting } from 'webextension-polyfill';
|
|
3
3
|
import { UnimportOptions } from 'unimport';
|
|
4
4
|
import { LogLevel } from 'consola';
|
|
5
|
-
import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
|
|
5
|
+
import { PluginVisualizerOptions } from '@aklinker1/rollup-plugin-visualizer';
|
|
6
6
|
import { FSWatcher } from 'chokidar';
|
|
7
7
|
import { ResolvedConfig as ResolvedConfig$1 } from 'c12';
|
|
8
8
|
import { NestedHooks, Hookable } from 'hookable';
|