@dword-design/base-config-web-extension 4.0.3 → 4.0.5

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,3 @@
1
+ import type { Config } from '@dword-design/base';
2
+
3
+ export type BaseConfig = Config & { startUrl?: string }; // TODO: Fields should be defaulted in Base
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,7 +96,7 @@ 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
99
+ ${config.startUrl ? `chromiumArgs: ['${config.startUrl}'],` : ""}chromiumProfile: 'userdata', // chromiumArgs: ['--user-data-dir=userdata'] doesn't keep sessions across dev restarts
100
100
  keepProfileChanges: true,
101
101
  });\n
102
102
  `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-web-extension",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "repository": "dword-design/base-config-web-extension",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -57,7 +57,7 @@
57
57
  "get-port": "^7.1.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "depcheck": "*"
60
+ "@dword-design/depcheck": "*"
61
61
  },
62
62
  "packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
63
63
  "engines": {