|
34 | 34 | ], |
35 | 35 | "exports": { |
36 | 36 | ".": { |
37 | | - "types": "./dist/json-editor-vue.d.ts", |
38 | | - "import": "./dist/json-editor-vue.mjs", |
39 | | - "require": "./dist/json-editor-vue.umd.js" |
| 37 | + "import": { |
| 38 | + "types": "./dist/json-editor-vue.d.mts", |
| 39 | + "default": "./dist/json-editor-vue.mjs" |
| 40 | + }, |
| 41 | + "require": { |
| 42 | + "types": "./dist/json-editor-vue.d.ts", |
| 43 | + "default": "./dist/json-editor-vue.umd.js" |
| 44 | + } |
40 | 45 | }, |
41 | 46 | "./*": "./*" |
42 | 47 | }, |
|
57 | 62 | "test:coverage": "vitest run --coverage", |
58 | 63 | "test:ui": "vitest --ui", |
59 | 64 | "doc": "vitepress dev --open /README", |
60 | | - "build": "vite build", |
| 65 | + "build": "vite build && pnpm typegen", |
| 66 | + "typegen": "npx tsup --entry.json-editor-vue src/index.ts --format esm,cjs --cjsInterop --clean --dts-only", |
| 67 | + "check-exports": "pnpm build && npx attw $(npm pack)", |
61 | 68 | "release": "esno ./scripts/release.mts", |
62 | 69 | "license-scan": "license-checker --summary --out ./dependency-licenses.txt", |
63 | 70 | "lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html", |
|
80 | 87 | }, |
81 | 88 | "devDependencies": { |
82 | 89 | "@antfu/eslint-config": "^3.7.3", |
| 90 | + "@arethetypeswrong/cli": "^0.16.4", |
83 | 91 | "@commitlint/cli": "^19.5.0", |
84 | 92 | "@commitlint/config-conventional": "^19.5.0", |
85 | 93 | "@types/cross-spawn": "^6.0.6", |
86 | 94 | "@types/lodash-es": "^4.17.12", |
87 | 95 | "@types/node": "^22.7.5", |
88 | 96 | "@types/prompts": "^2.4.9", |
89 | 97 | "@types/semver": "^7.5.8", |
90 | | - "@vitejs/plugin-vue": "^5.1.4", |
| 98 | + "@vitejs/plugin-vue": "latest", |
91 | 99 | "@vitest/ui": "^2.1.2", |
92 | | - "@vue/compiler-sfc": "^3.5.11", |
93 | | - "@vue/test-utils": "^2.4.6", |
| 100 | + "@vue/compiler-sfc": "latest", |
| 101 | + "@vue/test-utils": "latest", |
94 | 102 | "axios": "^1.7.7", |
95 | 103 | "case-police": "^0.7.0", |
96 | 104 | "cross-spawn": "^7.0.3", |
|
112 | 120 | "rollup-plugin-visualizer": "^5.12.0", |
113 | 121 | "semver": "^7.6.3", |
114 | 122 | "simple-git-hooks": "^2.11.1", |
| 123 | + "tsup": "^8.3.0", |
115 | 124 | "typescript": "^5.6.2", |
116 | 125 | "unplugin-auto-import": "^0.18.3", |
117 | 126 | "unplugin-vue-components": "^0.27.4", |
118 | 127 | "vite": "^5.4.8", |
119 | 128 | "vite-plugin-dts": "4.2.3", |
120 | 129 | "vitepress": "^1.4.0", |
121 | 130 | "vitest": "^2.1.2", |
122 | | - "vue": "^3.5.11", |
| 131 | + "vue": "latest", |
123 | 132 | "vue-global-config": "^0.6.2", |
124 | 133 | "zhlint": "^0.8.2" |
125 | 134 | }, |
|
0 commit comments