Skip to content

Commit f35974b

Browse files
authored
fix: migrate to esm (#247)
1 parent 74864a0 commit f35974b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "zotero-plugin-template",
3+
"type": "module",
34
"version": "3.0.3",
45
"description": "Zotero Plugin Template",
56
"config": {

Diff for: src/addon.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { config } from "../package.json";
2-
import { ColumnOptions } from "zotero-plugin-toolkit/dist/helpers/virtualizedTable";
3-
import { DialogHelper } from "zotero-plugin-toolkit/dist/helpers/dialog";
2+
import { ColumnOptions, DialogHelper } from "zotero-plugin-toolkit";
43
import hooks from "./hooks";
54
import { createZToolkit } from "./utils/ztoolkit";
65

Diff for: tsconfig.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
"compilerOptions": {
3-
"experimentalDecorators": true,
4-
"module": "commonjs",
53
"target": "ES2016",
4+
"lib": ["ESNext"],
5+
"experimentalDecorators": true,
6+
"module": "ESNext",
7+
"moduleResolution": "bundler",
68
"resolveJsonModule": true,
7-
"skipDefaultLibCheck": true,
8-
"strict": true
9+
"types": ["zotero-types"],
10+
"strict": true,
11+
"outDir": "build/dist/",
12+
"skipLibCheck": true
913
},
10-
"include": ["src", "typings", "node_modules/zotero-types"],
14+
"include": ["src", "typings"],
1115
"exclude": ["build", "addon"]
1216
}

0 commit comments

Comments
 (0)