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 a3ea3b1
Show file tree
Hide file tree
Showing 5 changed files with 536 additions and 35 deletions.
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
27 changes: 18 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,22 @@
],
"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"
}
},
"./*": "./*"
},
"main": "./dist/json-editor-vue.umd.js",
"module": "./dist/json-editor-vue.mjs",
"unpkg": "./dist/json-editor-vue.umd.js",
"jsdelivr": "./dist/json-editor-vue.umd.js",
"types": "./dist/json-editor-vue.d.ts",
"types": "./dist/json-editor-vue.d.mts",
"files": [
"dist",
"docs",
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 dts",
"dts": "npx tsup --entry.json-editor-vue ./src/index.ts --format esm,iife --clean --dts-only",
"check-exports": "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 a3ea3b1

Please sign in to comment.