@dword-design/base-config-web-extension 4.0.6 → 4.0.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/index.d.ts +2 -14
- package/dist/index.js +4 -15
- package/package.json +1 -3
package/dist/index.d.ts
CHANGED
|
@@ -50,21 +50,9 @@ declare const _default: (this: Base<BaseConfig>, config: BaseConfig) => {
|
|
|
50
50
|
gitignore: string[];
|
|
51
51
|
isLockFileFixCommitType: boolean;
|
|
52
52
|
lint: typeof lint;
|
|
53
|
-
preDeploySteps:
|
|
53
|
+
preDeploySteps: {
|
|
54
54
|
run: string;
|
|
55
|
-
|
|
56
|
-
'working-directory'?: undefined;
|
|
57
|
-
} | {
|
|
58
|
-
env: {
|
|
59
|
-
FIREFOX_EXTENSION_ID: string;
|
|
60
|
-
};
|
|
61
|
-
run: string;
|
|
62
|
-
'working-directory'?: undefined;
|
|
63
|
-
} | {
|
|
64
|
-
run: string;
|
|
65
|
-
'working-directory': string;
|
|
66
|
-
env?: undefined;
|
|
67
|
-
})[];
|
|
55
|
+
}[];
|
|
68
56
|
prepare: () => Promise<any>;
|
|
69
57
|
readmeInstallString: string;
|
|
70
58
|
typecheck: typeof typecheck;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import pathLib from "node:path";
|
|
|
2
2
|
import { defineBaseConfig } from "@dword-design/base";
|
|
3
3
|
import depcheckParserSass from "@dword-design/depcheck-parser-sass";
|
|
4
4
|
import depcheck from "depcheck";
|
|
5
|
-
import binName from "depcheck-bin-name";
|
|
6
5
|
import packageName from "depcheck-package-name";
|
|
7
6
|
import endent from "endent";
|
|
8
7
|
import fs from "fs-extra";
|
|
@@ -64,7 +63,7 @@ export default defineBaseConfig(function (config) {
|
|
|
64
63
|
FIREFOX_JWT_SECRET: "${{ secrets.FIREFOX_JWT_SECRET }}"
|
|
65
64
|
},
|
|
66
65
|
deployPlugins: [[packageName`@semantic-release/exec`, {
|
|
67
|
-
publishCmd:
|
|
66
|
+
publishCmd: "pnpm wxt submit --chrome-zip dist/*-chrome.zip --firefox-zip dist/*-firefox.zip --firefox-sources-zip dist/*-sources.zip"
|
|
68
67
|
}]],
|
|
69
68
|
editorIgnore: [".wxt", "dist", "userdata"],
|
|
70
69
|
gitignore: ["/.wxt", "/dist", "/userdata"],
|
|
@@ -73,18 +72,9 @@ export default defineBaseConfig(function (config) {
|
|
|
73
72
|
preDeploySteps: [{
|
|
74
73
|
run: "pnpm prepublishOnly"
|
|
75
74
|
}, {
|
|
76
|
-
|
|
77
|
-
FIREFOX_EXTENSION_ID: "${{ secrets.FIREFOX_EXTENSION_ID }}"
|
|
78
|
-
},
|
|
79
|
-
run: "pnpm prepublishOnly firefox"
|
|
80
|
-
}, {
|
|
81
|
-
run: "zip -r ../chrome.zip .",
|
|
82
|
-
"working-directory": "dist/chrome"
|
|
83
|
-
}, {
|
|
84
|
-
run: "zip -r ../firefox.zip .",
|
|
85
|
-
"working-directory": "dist/firefox"
|
|
75
|
+
run: "pnpm wxt zip"
|
|
86
76
|
}, {
|
|
87
|
-
run: "
|
|
77
|
+
run: "pnpm wxt zip -b firefox"
|
|
88
78
|
}],
|
|
89
79
|
prepare: () => Promise.all([fs.ensureDir(pathLib.join(this.cwd, "userdata")), outputFiles(this.cwd, {
|
|
90
80
|
".wxtrc": stringifyIni({
|
|
@@ -96,8 +86,7 @@ export default defineBaseConfig(function (config) {
|
|
|
96
86
|
import { defineWebExtConfig } from 'wxt';
|
|
97
87
|
|
|
98
88
|
export default defineWebExtConfig({
|
|
99
|
-
${[...(config.startUrl ? [`chromiumArgs: ['${config.startUrl}']`] : []), "chromiumProfile: 'userdata', // chromiumArgs: ['--user-data-dir=userdata'] doesn't keep sessions across dev restarts", "keepProfileChanges: true"].map(line => `${line}
|
|
100
|
-
`).join("")}
|
|
89
|
+
${[...(config.startUrl ? [`chromiumArgs: ['${config.startUrl}']`] : []), "chromiumProfile: 'userdata', // chromiumArgs: ['--user-data-dir=userdata'] doesn't keep sessions across dev restarts", "keepProfileChanges: true"].map(line => `${line},`).join("\n")}
|
|
101
90
|
});\n
|
|
102
91
|
`
|
|
103
92
|
})]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base-config-web-extension",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"repository": "dword-design/base-config-web-extension",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@dword-design/depcheck-parser-sass": "^5.0.0",
|
|
36
36
|
"@semantic-release/exec": "^6.0.3",
|
|
37
37
|
"@wxt-dev/module-vue": "^1.0.2",
|
|
38
|
-
"depcheck-bin-name": "^2.0.0",
|
|
39
38
|
"depcheck-package-name": "^4.0.0",
|
|
40
39
|
"endent": "npm:@dword-design/endent@^1.4.7",
|
|
41
40
|
"execa": "^9.6.0",
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
"ini": "^5.0.0",
|
|
44
43
|
"lodash-es": "^4.17.21",
|
|
45
44
|
"output-files": "^3.0.0",
|
|
46
|
-
"publish-browser-extension": "^2.3.1",
|
|
47
45
|
"wxt": "npm:@dword-design/wxt-fork@^0.0.2"
|
|
48
46
|
},
|
|
49
47
|
"devDependencies": {
|