Skip to content

Commit

Permalink
types: fix exports error
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Oct 11, 2024
1 parent 1c03030 commit a99fa4c
Show file tree
Hide file tree
Showing 6 changed files with 539 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ stats.html
*.local
*.log
*.zip
*.tgz
2 changes: 1 addition & 1 deletion dependency-licenses.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
├─ MIT: 85
├─ MIT: 87
├─ Apache-2.0: 7
├─ BSD-2-Clause: 3
├─ BSD-3-Clause: 2
Expand Down
25 changes: 17 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@
],
"exports": {
".": {
"types": "./dist/json-editor-vue.d.ts",
"import": "./dist/json-editor-vue.mjs",
"require": "./dist/json-editor-vue.umd.js"
"import": {
"types": "./dist/json-editor-vue.d.mts",
"default": "./dist/json-editor-vue.mjs"
},
"require": {
"types": "./dist/json-editor-vue.d.ts",
"default": "./dist/json-editor-vue.umd.js"
}
},
"./*": "./*"
},
Expand All @@ -57,7 +62,9 @@
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"doc": "vitepress dev --open /README",
"build": "vite build",
"build": "vite build && pnpm typegen",
"typegen": "npx tsup --entry.json-editor-vue src/index.ts --format esm,cjs --cjsInterop --clean --dts-only",
"check-exports": "pnpm build && npx attw $(npm pack)",
"release": "esno ./scripts/release.mts",
"license-scan": "license-checker --summary --out ./dependency-licenses.txt",
"lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html",
Expand All @@ -80,17 +87,18 @@
},
"devDependencies": {
"@antfu/eslint-config": "^3.7.3",
"@arethetypeswrong/cli": "^0.16.4",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@types/cross-spawn": "^6.0.6",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.7.5",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.5.8",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue": "latest",
"@vitest/ui": "^2.1.2",
"@vue/compiler-sfc": "^3.5.11",
"@vue/test-utils": "^2.4.6",
"@vue/compiler-sfc": "latest",
"@vue/test-utils": "latest",
"axios": "^1.7.7",
"case-police": "^0.7.0",
"cross-spawn": "^7.0.3",
Expand All @@ -112,14 +120,15 @@
"rollup-plugin-visualizer": "^5.12.0",
"semver": "^7.6.3",
"simple-git-hooks": "^2.11.1",
"tsup": "^8.3.0",
"typescript": "^5.6.2",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.8",
"vite-plugin-dts": "4.2.3",
"vitepress": "^1.4.0",
"vitest": "^2.1.2",
"vue": "^3.5.11",
"vue": "latest",
"vue-global-config": "^0.6.2",
"zhlint": "^0.8.2"
},
Expand Down
Loading

0 comments on commit a99fa4c

Please sign in to comment.