@stacksjs/browser-extension 0.70.73 → 0.70.75
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/build.js +4 -1
- package/package.json +2 -2
package/dist/build.js
CHANGED
|
@@ -39,7 +39,10 @@ async function buildScript(entry, out, outdir, cwd, minify) {
|
|
|
39
39
|
if (!result.success)
|
|
40
40
|
throw Error(`[browser-extension] failed to build ${entry}: ${result.logs.join(`
|
|
41
41
|
`)}`);
|
|
42
|
-
|
|
42
|
+
const output = result.outputs[0];
|
|
43
|
+
if (!output)
|
|
44
|
+
throw Error(`[browser-extension] build produced no output for ${entry}`);
|
|
45
|
+
await Bun.write(join(outdir, out), await output.text());
|
|
43
46
|
}
|
|
44
47
|
export async function buildExtension(config, options) {
|
|
45
48
|
const target = options.target ?? "chrome", cwd = options.cwd ?? process.cwd(), outdir = resolve(cwd, resolveOutdir(config, target, options.outdir)), minify = options.minify ?? !0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/browser-extension",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.75",
|
|
5
5
|
"description": "Build MV3 browser extensions (Chrome + Firefox) the Stacks way — manifest, content/background scripts, DNR rules, packaging, all config-driven.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
"prepublishOnly": "bun run build"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"better-dx": "^0.2.
|
|
59
|
+
"better-dx": "^0.2.16"
|
|
60
60
|
}
|
|
61
61
|
}
|