|
@@ -17,21 +17,21 @@
|
|
"type": "module",
|
|
"type": "module",
|
|
"scripts": {
|
|
"scripts": {
|
|
"lint": "eslint . && tsc --noEmit",
|
|
"lint": "eslint . && tsc --noEmit",
|
|
- "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
|
|
|
|
+ "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist && pnpm node-ts -- ./tools/fix-dts.mts",
|
|
"build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
|
|
"build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
|
|
- "build-all": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"npm run build-types && npm run post-build-global && echo Finished building.\"",
|
|
|
|
- "build": "npm run build-common -- && npm run build-types",
|
|
|
|
- "post-build-global": "npm run node-ts -- ./tools/post-build-global.mts",
|
|
|
|
- "dev": "npm run build-common -- --sourcemap --watch --onSuccess \"npm run build-types && echo Finished building.\"",
|
|
|
|
- "dev-all": "npm run build-all -- --watch",
|
|
|
|
- "update-jsr-version": "npm run node-ts -- ./tools/update-jsr-version.mts",
|
|
|
|
|
|
+ "build-all": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"pnpm build-types && pnpm post-build-global && echo Finished building.\"",
|
|
|
|
+ "build": "pnpm build-common -- && pnpm build-types",
|
|
|
|
+ "post-build-global": "pnpm node-ts -- ./tools/post-build-global.mts",
|
|
|
|
+ "dev": "pnpm build-common -- --sourcemap --watch --onSuccess \"pnpm build-types && echo Finished building.\"",
|
|
|
|
+ "dev-all": "pnpm build-all -- --watch",
|
|
|
|
+ "update-jsr-version": "pnpm node-ts -- ./tools/update-jsr-version.mts",
|
|
"publish-package": "changeset publish",
|
|
"publish-package": "changeset publish",
|
|
- "publish-package-jsr": "npm run update-jsr-version && npx jsr publish --allow-dirty",
|
|
|
|
|
|
+ "publish-package-jsr": "pnpm update-jsr-version && npx jsr publish --allow-dirty",
|
|
"change": "changeset",
|
|
"change": "changeset",
|
|
"node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
|
|
"node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm",
|
|
- "test-serve": "npm run node-ts -- ./test/TestPage/server.mts",
|
|
|
|
- "test-dev": "cd test/TestScript && npm run dev",
|
|
|
|
- "test": "concurrently \"npm run test-serve\" \"npm run test-dev\""
|
|
|
|
|
|
+ "test-serve": "pnpm node-ts -- ./test/TestPage/server.mts",
|
|
|
|
+ "test-dev": "cd test/TestScript && pnpm dev",
|
|
|
|
+ "test": "concurrently \"pnpm test-serve\" \"pnpm test-dev\""
|
|
},
|
|
},
|
|
"repository": {
|
|
"repository": {
|
|
"type": "git",
|
|
"type": "git",
|
|
@@ -57,7 +57,7 @@
|
|
"@changesets/cli": "^2.27.11",
|
|
"@changesets/cli": "^2.27.11",
|
|
"@types/express": "^4.17.21",
|
|
"@types/express": "^4.17.21",
|
|
"@types/greasemonkey": "^4.0.7",
|
|
"@types/greasemonkey": "^4.0.7",
|
|
- "@types/node": "^20.17.10",
|
|
|
|
|
|
+ "@types/node": "^22.10.5",
|
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
"@typescript-eslint/parser": "^6.21.0",
|
|
"@typescript-eslint/parser": "^6.21.0",
|
|
"concurrently": "^8.2.2",
|
|
"concurrently": "^8.2.2",
|
|
@@ -66,7 +66,8 @@
|
|
"ts-node": "^10.9.2",
|
|
"ts-node": "^10.9.2",
|
|
"tslib": "^2.8.1",
|
|
"tslib": "^2.8.1",
|
|
"tsup": "^8.3.5",
|
|
"tsup": "^8.3.5",
|
|
- "typescript": "^5.7.2"
|
|
|
|
|
|
+ "tsx": "^4.19.2",
|
|
|
|
+ "typescript": "^5.7.3"
|
|
},
|
|
},
|
|
"files": [
|
|
"files": [
|
|
"/dist/index.js",
|
|
"/dist/index.js",
|