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 +1 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
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();
|