fix: migrate to esm (#247)

This commit is contained in:
Northword 2025-02-23 17:38:31 +08:00 committed by GitHub
parent 74864a0692
commit f35974b602
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,6 @@
{
"name": "zotero-plugin-template",
"type": "module",
"version": "3.0.3",
"description": "Zotero Plugin Template",
"config": {

View File

@ -1,6 +1,5 @@
import { config } from "../package.json";
import { ColumnOptions } from "zotero-plugin-toolkit/dist/helpers/virtualizedTable";
import { DialogHelper } from "zotero-plugin-toolkit/dist/helpers/dialog";
import { ColumnOptions, DialogHelper } from "zotero-plugin-toolkit";
import hooks from "./hooks";
import { createZToolkit } from "./utils/ztoolkit";

View File

@ -1,12 +1,16 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"module": "commonjs",
"target": "ES2016",
"lib": ["ESNext"],
"experimentalDecorators": true,
"module": "ESNext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"skipDefaultLibCheck": true,
"strict": true
"types": ["zotero-types"],
"strict": true,
"outDir": "build/dist/",
"skipLibCheck": true
},
"include": ["src", "typings", "node_modules/zotero-types"],
"include": ["src", "typings"],
"exclude": ["build", "addon"]
}