@dword-design/base-config-web-extension 4.0.4 → 4.0.6
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/base-config.d.ts +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type Base } from '@dword-design/base';
|
|
2
|
+
import { BaseConfig } from './base-config';
|
|
2
3
|
import lint from './lint';
|
|
3
4
|
import typecheck from './typecheck';
|
|
4
|
-
declare const _default: (this: Base) => {
|
|
5
|
+
declare const _default: (this: Base<BaseConfig>, config: BaseConfig) => {
|
|
5
6
|
allowedMatches: string[];
|
|
6
7
|
commands: {
|
|
7
8
|
dev: {
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import dev from "./dev.js";
|
|
|
12
12
|
import lint from "./lint.js";
|
|
13
13
|
import prepublishOnly from "./prepublish-only.js";
|
|
14
14
|
import typecheck from "./typecheck.js";
|
|
15
|
-
export default defineBaseConfig(function () {
|
|
15
|
+
export default defineBaseConfig(function (config) {
|
|
16
16
|
return {
|
|
17
17
|
allowedMatches: Object.keys({
|
|
18
18
|
".wxtrc": true,
|
|
@@ -96,8 +96,8 @@ export default defineBaseConfig(function () {
|
|
|
96
96
|
import { defineWebExtConfig } from 'wxt';
|
|
97
97
|
|
|
98
98
|
export default defineWebExtConfig({
|
|
99
|
-
chromiumProfile: 'userdata', // chromiumArgs: ['--user-data-dir=userdata'] doesn't keep sessions across dev restarts
|
|
100
|
-
|
|
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("")}
|
|
101
101
|
});\n
|
|
102
102
|
`
|
|
103
103
|
})]),
|