Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ corepack enable
pnpm install

# Development Mode
# This command creates a typescript runtime using jiti,
# and the modified code does not need to be built again.
pnpm run dev

# link local scaffold to your plugin
Expand Down
2 changes: 1 addition & 1 deletion bin/zotero-plugin.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node

import cli from "../dist/cli.mjs";
import cli from "../dist/cli.js";

cli();
17 changes: 0 additions & 17 deletions build.config.ts

This file was deleted.

23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@
],
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./cli": {
"import": "./dist/cli.mjs"
"import": "./dist/cli.js"
},
"./vendor": {
"types": "./dist/vendor/index.d.mts",
"import": "./dist/vendor/index.mjs"
"types": "./dist/vendor.d.ts",
"import": "./dist/vendor.js"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"zotero-plugin": "./bin/zotero-plugin.mjs"
},
Expand All @@ -48,8 +48,10 @@
"node": ">=22.8.0"
},
"scripts": {
"dev": "unbuild --stub",
"build": "tsc --noEmit && unbuild",
"dev": "tsdown --watch",
"build": "pnpm build:tsdown && pnpm build:tsc",
"build:tsdown": "tsdown",
"build:tsc": "tsc --noEmit",
"lint:check": "eslint .",
"lint:fix": "eslint . --fix",
"docs:dev": "pnpm -C docs run dev",
Expand Down Expand Up @@ -96,6 +98,7 @@
"eslint-plugin-format": "^1.3.1",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"tsdown": "^0.16.6",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
Expand Down
Loading
Loading