Skip to content

Commit

Permalink
update: ztoolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Sep 24, 2024
1 parent 224bb0d commit b91b907
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 35 deletions.
63 changes: 33 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"update-deps": "npm update --save"
},
"dependencies": {
"zotero-plugin-toolkit": "^3.0.4"
"zotero-plugin-toolkit": "^4.0.1"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BasicTool } from "zotero-plugin-toolkit/dist/basic";
import { BasicTool } from "zotero-plugin-toolkit";
import Addon from "./addon";
import { config } from "../package.json";

Expand Down
6 changes: 3 additions & 3 deletions src/utils/ztoolkit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ZoteroToolkit from "zotero-plugin-toolkit";
import { ZoteroToolkit } from "zotero-plugin-toolkit";
import { config } from "../../package.json";

export { createZToolkit };
Expand Down Expand Up @@ -29,8 +29,8 @@ function initZToolkit(_ztoolkit: ReturnType<typeof createZToolkit>) {
);
}

import { BasicTool, unregister } from "zotero-plugin-toolkit/dist/basic";
import { UITool } from "zotero-plugin-toolkit/dist/tools/ui";
import { BasicTool, unregister } from "zotero-plugin-toolkit";
import { UITool } from "zotero-plugin-toolkit";

class MyToolkit extends BasicTool {
UI: UITool;
Expand Down

0 comments on commit b91b907

Please sign in to comment.