zotero-plugin-scaffold 0.0.30 → 0.0.31

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.30";
27
+ const version = "0.0.31";
28
28
  const description = "A scaffold for Zotero plugin development.";
29
29
  const scripts = {
30
30
  dev: "unbuild --stub",
package/dist/index.mjs CHANGED
@@ -337,6 +337,7 @@ class Build extends Base {
337
337
  ...userData,
338
338
  ...this.name && { name: this.name },
339
339
  ...this.version && { version: this.version },
340
+ manifest_version: 2,
340
341
  applications: {
341
342
  //@ts-ignore 此处不包含版本限制
342
343
  zotero: {
@@ -764,7 +765,7 @@ class Serve extends Base {
764
765
  const onChange = debounce({ delay: 500 }, async (path2) => {
765
766
  try {
766
767
  await this.ctx.hooks.callHook("serve:onChanged", this.ctx, path2);
767
- if (path2.endsWith(".ts")) {
768
+ if (path2.endsWith(".ts") || path2.endsWith(".tsx")) {
768
769
  await this.builder.esbuild();
769
770
  } else {
770
771
  await this.builder.run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin-scaffold",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "A scaffold for Zotero plugin development.",
5
5
  "type": "module",
6
6
  "exports": {