fix: migrate to esm (#247)
This commit is contained in:
parent
74864a0692
commit
f35974b602
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "zotero-plugin-template",
|
"name": "zotero-plugin-template",
|
||||||
|
"type": "module",
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"description": "Zotero Plugin Template",
|
"description": "Zotero Plugin Template",
|
||||||
"config": {
|
"config": {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { config } from "../package.json";
|
import { config } from "../package.json";
|
||||||
import { ColumnOptions } from "zotero-plugin-toolkit/dist/helpers/virtualizedTable";
|
import { ColumnOptions, DialogHelper } from "zotero-plugin-toolkit";
|
||||||
import { DialogHelper } from "zotero-plugin-toolkit/dist/helpers/dialog";
|
|
||||||
import hooks from "./hooks";
|
import hooks from "./hooks";
|
||||||
import { createZToolkit } from "./utils/ztoolkit";
|
import { createZToolkit } from "./utils/ztoolkit";
|
||||||
|
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"experimentalDecorators": true,
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "ES2016",
|
"target": "ES2016",
|
||||||
|
"lib": ["ESNext"],
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"skipDefaultLibCheck": true,
|
"types": ["zotero-types"],
|
||||||
"strict": true
|
"strict": true,
|
||||||
|
"outDir": "build/dist/",
|
||||||
|
"skipLibCheck": true
|
||||||
},
|
},
|
||||||
"include": ["src", "typings", "node_modules/zotero-types"],
|
"include": ["src", "typings"],
|
||||||
"exclude": ["build", "addon"]
|
"exclude": ["build", "addon"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user