zotero-plugin-scaffold 0.2.0-beta.14 → 0.2.0-beta.16

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.
@@ -4,7 +4,7 @@ import process from 'node:process';
4
4
  import { Octokit } from 'octokit';
5
5
  import { globSync, glob } from 'tinyglobby';
6
6
  import { isCI } from 'std-env';
7
- import { B as Base } from '../shared/zotero-plugin-scaffold.rCsToUj_.mjs';
7
+ import { B as Base } from '../shared/zotero-plugin-scaffold.BhavR4LH.mjs';
8
8
  import 'c12';
9
9
  import 'es-toolkit';
10
10
  import 'fs-extra/esm';
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import process from 'node:process';
2
2
  import { Command } from '@commander-js/extra-typings';
3
- import { E as ExitSignals, l as logger, C as Config, a as Build, S as Serve, T as Test, R as Release } from './shared/zotero-plugin-scaffold.rCsToUj_.mjs';
3
+ import { E as ExitSignals, l as logger, C as Config, a as Build, S as Serve, T as Test, R as Release } from './shared/zotero-plugin-scaffold.BhavR4LH.mjs';
4
4
  import { readFile, writeFile } from 'node:fs/promises';
5
5
  import { pathExists, ensureFile } from 'fs-extra';
6
6
  import tinyUpdateNotifier from 'tiny-update-notifier';
@@ -30,7 +30,7 @@ import 'xvfb-ts';
30
30
 
31
31
  const name = "zotero-plugin-scaffold";
32
32
  const type = "module";
33
- const version = "0.2.0-beta.14";
33
+ const version = "0.2.0-beta.16";
34
34
  const packageManager = "pnpm@9.15.2";
35
35
  const description = "A scaffold for Zotero plugin development.";
36
36
  const author = "northword";
package/dist/index.d.mts CHANGED
@@ -51,14 +51,9 @@ interface Manifest {
51
51
  zotero: {
52
52
  id: string;
53
53
  update_url: string;
54
- strict_min_version: string;
54
+ strict_min_version?: string;
55
55
  strict_max_version?: string;
56
56
  };
57
- gecko: {
58
- id: string;
59
- update_url: string;
60
- strict_min_version: string;
61
- };
62
57
  };
63
58
  }
64
59
 
@@ -81,7 +76,7 @@ interface UpdateJSON {
81
76
  update_hash?: string;
82
77
  applications: {
83
78
  zotero: {
84
- strict_min_version: string;
79
+ strict_min_version?: string;
85
80
  strict_max_version?: string;
86
81
  };
87
82
  [application: string]: {
package/dist/index.d.ts CHANGED
@@ -51,14 +51,9 @@ interface Manifest {
51
51
  zotero: {
52
52
  id: string;
53
53
  update_url: string;
54
- strict_min_version: string;
54
+ strict_min_version?: string;
55
55
  strict_max_version?: string;
56
56
  };
57
- gecko: {
58
- id: string;
59
- update_url: string;
60
- strict_min_version: string;
61
- };
62
57
  };
63
58
  }
64
59
 
@@ -81,7 +76,7 @@ interface UpdateJSON {
81
76
  update_hash?: string;
82
77
  applications: {
83
78
  zotero: {
84
- strict_min_version: string;
79
+ strict_min_version?: string;
85
80
  strict_max_version?: string;
86
81
  };
87
82
  [application: string]: {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { a as Build, C as Config, R as Release, S as Serve, T as Test, d as defineConfig } from './shared/zotero-plugin-scaffold.rCsToUj_.mjs';
1
+ export { a as Build, C as Config, R as Release, S as Serve, T as Test, d as defineConfig } from './shared/zotero-plugin-scaffold.BhavR4LH.mjs';
2
2
  import 'c12';
3
3
  import 'es-toolkit';
4
4
  import 'fs-extra/esm';
@@ -203,26 +203,12 @@ const defaultConfig = {
203
203
  enable: true,
204
204
  template: {
205
205
  manifest_version: 2,
206
- name: "__addonName__",
207
- version: "__buildVersion__",
208
- description: "__description__",
209
- homepage_url: "__homepage__",
210
- author: "__author__",
211
- icons: {
212
- 48: "content/icons/favicon@0.5x.png",
213
- 96: "content/icons/favicon.png"
214
- },
206
+ name: "",
207
+ version: "",
215
208
  applications: {
216
209
  zotero: {
217
- id: "__addonID__",
218
- update_url: "__updateURL__",
219
- strict_min_version: "6.999",
220
- strict_max_version: "7.0.*"
221
- },
222
- gecko: {
223
- id: "__addonID__",
224
- update_url: "__updateURL__",
225
- strict_min_version: "102"
210
+ id: "",
211
+ update_url: ""
226
212
  }
227
213
  }
228
214
  }
@@ -385,11 +371,10 @@ class PrefsManager {
385
371
  }
386
372
  }
387
373
  function renderPluginPrefsDts(prefs, prefix) {
388
- const dtsContent = `
374
+ const dtsContent = `// Generated by zotero-plugin-scaffold
389
375
  /* prettier-ignore */
390
376
  /* eslint-disable */
391
377
  // @ts-nocheck
392
- // Generated by zotero-plugin-scaffold
393
378
 
394
379
  type _PluginPrefsMap = {
395
380
  ${Object.entries(prefs).map(([key, value]) => {
@@ -513,7 +498,6 @@ class Build extends Base {
513
498
  ...version && { version },
514
499
  manifest_version: 2,
515
500
  applications: {
516
- // @ts-expect-error 此处不包含版本限制
517
501
  zotero: {
518
502
  id,
519
503
  update_url: updateURL
@@ -658,7 +642,7 @@ class Build extends Base {
658
642
  },
659
643
  applications: {
660
644
  zotero: {
661
- strict_min_version: min,
645
+ ...min && { strict_min_version: min },
662
646
  ...max && { strict_max_version: max }
663
647
  }
664
648
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zotero-plugin-scaffold",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.14",
4
+ "version": "0.2.0-beta.16",
5
5
  "description": "A scaffold for Zotero plugin development.",
6
6
  "author": "northword",
7
7
  "license": "AGPL-3.0-or-later",