zotero-plugin-scaffold 0.0.18 → 0.0.20

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/cli.mjs CHANGED
@@ -24,7 +24,7 @@ import 'chokidar';
24
24
  import 'process';
25
25
 
26
26
  const name = "zotero-plugin-scaffold";
27
- const version = "0.0.18";
27
+ const version = "0.0.20";
28
28
  const description = "A scaffold for Zotero plugin development.";
29
29
  const scripts = {
30
30
  dev: "unbuild --stub",
@@ -78,22 +78,22 @@ const directories = {
78
78
  const engines = {
79
79
  node: ">=18"
80
80
  };
81
- const packageManager = "pnpm@8.15.5";
81
+ const packageManager = "pnpm@9.1.1";
82
82
  const dependencies = {
83
- "@inquirer/prompts": "4.3.1",
84
- bumpp: "9.4.0",
83
+ "@inquirer/prompts": "5.0.3",
84
+ bumpp: "9.4.1",
85
85
  c12: "1.10.0",
86
86
  chalk: "5.3.0",
87
87
  chokidar: "3.6.0",
88
88
  commander: "12.0.0",
89
89
  consola: "3.2.3",
90
- "conventional-changelog": "5.1.0",
91
- esbuild: "0.20.2",
90
+ "conventional-changelog": "6.0.0",
91
+ esbuild: "0.21.2",
92
92
  "fast-glob": "3.3.2",
93
93
  "fs-extra": "11.2.0",
94
94
  hookable: "5.5.3",
95
- mime: "4.0.1",
96
- octokit: "3.1.2",
95
+ mime: "4.0.3",
96
+ octokit: "4.0.2",
97
97
  radash: "12.1.0",
98
98
  "replace-in-file": "7.1.0",
99
99
  "std-env": "3.7.0",
@@ -104,14 +104,14 @@ const devDependencies = {
104
104
  "@trivago/prettier-plugin-sort-imports": "4.3.0",
105
105
  "@types/conventional-changelog": "3.1.5",
106
106
  "@types/fs-extra": "11.0.4",
107
- "@types/node": "20.12.2",
107
+ "@types/node": "20.12.12",
108
108
  "@types/update-notifier": "6.0.8",
109
- "@typescript-eslint/eslint-plugin": "7.4.0",
110
- "@typescript-eslint/parser": "7.4.0",
109
+ "@typescript-eslint/eslint-plugin": "7.9.0",
110
+ "@typescript-eslint/parser": "7.9.0",
111
111
  eslint: "8.57.0",
112
112
  "eslint-config-prettier": "9.1.0",
113
113
  prettier: "3.2.5",
114
- typescript: "5.4.3",
114
+ typescript: "5.4.5",
115
115
  unbuild: "2.0.0"
116
116
  };
117
117
  const pnpm = {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import versionBump, { ProgressEvent } from 'bumpp';
1
+ import { ProgressEvent, versionBump } from 'bumpp';
2
2
  import chalk from 'chalk';
3
3
  import consola, { createConsola } from 'consola';
4
4
  import { isCI, isWindows, isMacOS, isLinux } from 'std-env';
@@ -329,7 +329,7 @@ class Build extends Base {
329
329
  ...this.name && { name: this.name },
330
330
  ...this.version && { version: this.version },
331
331
  applications: {
332
- //@ts-expect-error 此处不包含版本限制
332
+ //@ts-ignore 此处不包含版本限制
333
333
  zotero: {
334
334
  id: this.id,
335
335
  update_url: this.updateURL
@@ -780,7 +780,7 @@ ${path2} changed`);
780
780
  this.profilePath
781
781
  ]);
782
782
  zoteroProcess.stdout?.on("data", (data) => {
783
- if (!isZoteroReady && data.toString().includes(`Calling bootstrap method 'startup' for plugin ${this.id}`)) {
783
+ if (!isZoteroReady && data.toString().includes(`Plugin ${this.id} startup`)) {
784
784
  this.logger.log(data.toString());
785
785
  isZoteroReady = true;
786
786
  setTimeout(() => {
@@ -834,7 +834,7 @@ ${path2} changed`);
834
834
  );
835
835
  const buildPath = path.resolve("build/addon");
836
836
  if (!fs.existsSync(addonProxyFilePath) || fs.readFileSync(addonProxyFilePath, "utf-8") !== buildPath) {
837
- fs.writeFileSync(addonProxyFilePath, buildPath);
837
+ fs.outputFileSync(addonProxyFilePath, buildPath);
838
838
  this.logger.debug(
839
839
  `Addon proxy file has been updated.
840
840
  File path: ${addonProxyFilePath}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin-scaffold",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "A scaffold for Zotero plugin development.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -46,22 +46,21 @@
46
46
  "engines": {
47
47
  "node": ">=18"
48
48
  },
49
- "packageManager": "pnpm@8.15.5",
50
49
  "dependencies": {
51
- "@inquirer/prompts": "4.3.1",
52
- "bumpp": "9.4.0",
50
+ "@inquirer/prompts": "5.0.3",
51
+ "bumpp": "9.4.1",
53
52
  "c12": "1.10.0",
54
53
  "chalk": "5.3.0",
55
54
  "chokidar": "3.6.0",
56
55
  "commander": "12.0.0",
57
56
  "consola": "3.2.3",
58
- "conventional-changelog": "5.1.0",
59
- "esbuild": "0.20.2",
57
+ "conventional-changelog": "6.0.0",
58
+ "esbuild": "0.21.2",
60
59
  "fast-glob": "3.3.2",
61
60
  "fs-extra": "11.2.0",
62
61
  "hookable": "5.5.3",
63
- "mime": "4.0.1",
64
- "octokit": "3.1.2",
62
+ "mime": "4.0.3",
63
+ "octokit": "4.0.2",
65
64
  "radash": "12.1.0",
66
65
  "replace-in-file": "7.1.0",
67
66
  "std-env": "3.7.0",
@@ -72,14 +71,14 @@
72
71
  "@trivago/prettier-plugin-sort-imports": "4.3.0",
73
72
  "@types/conventional-changelog": "3.1.5",
74
73
  "@types/fs-extra": "11.0.4",
75
- "@types/node": "20.12.2",
74
+ "@types/node": "20.12.12",
76
75
  "@types/update-notifier": "6.0.8",
77
- "@typescript-eslint/eslint-plugin": "7.4.0",
78
- "@typescript-eslint/parser": "7.4.0",
76
+ "@typescript-eslint/eslint-plugin": "7.9.0",
77
+ "@typescript-eslint/parser": "7.9.0",
79
78
  "eslint": "8.57.0",
80
79
  "eslint-config-prettier": "9.1.0",
81
80
  "prettier": "3.2.5",
82
- "typescript": "5.4.3",
81
+ "typescript": "5.4.5",
83
82
  "unbuild": "2.0.0"
84
83
  },
85
84
  "scripts": {