|
9 | 9 | "files": [ |
10 | 10 | "dist" |
11 | 11 | ], |
12 | | - "types": "dist/repl.d.ts", |
| 12 | + "types": "dist/vue-repl.d.ts", |
13 | 13 | "exports": { |
14 | 14 | ".": { |
15 | | - "types": "./dist/repl.d.ts", |
| 15 | + "types": "./dist/vue-repl.d.ts", |
16 | 16 | "import": "./dist/vue-repl.js", |
17 | 17 | "require": "./dist/ssr-stub.js" |
18 | 18 | }, |
19 | 19 | "./monaco-editor": { |
20 | | - "types": "./dist/editor-types.d.ts", |
| 20 | + "types": "./dist/monaco-editor.d.ts", |
21 | 21 | "import": "./dist/monaco-editor.js", |
22 | 22 | "require": null |
23 | 23 | }, |
24 | 24 | "./codemirror-editor": { |
25 | | - "types": "./dist/editor-types.d.ts", |
| 25 | + "types": "./dist/codemirror-editor.d.ts", |
26 | 26 | "import": "./dist/codemirror-editor.js", |
27 | 27 | "require": null |
28 | 28 | }, |
29 | 29 | "./style.css": "./dist/style.css", |
30 | 30 | "./dist/style.css": "./dist/style.css" |
31 | 31 | }, |
| 32 | + "typesVersions": { |
| 33 | + "*": { |
| 34 | + "*": [ |
| 35 | + "./dist/*", |
| 36 | + "./*" |
| 37 | + ] |
| 38 | + } |
| 39 | + }, |
32 | 40 | "scripts": { |
33 | 41 | "dev": "vite", |
34 | 42 | "build": "vite build", |
35 | | - "build-types": "vue-tsc -p tsconfig.build.json && api-extractor run -c api-extractor.json && node scripts/cleanup.js", |
36 | 43 | "build-preview": "vite build -c vite.preview.config.ts", |
37 | 44 | "format": "prettier --write .", |
38 | 45 | "release": "bumpp -r", |
39 | | - "prepublishOnly": "npm run build && npm run build-types" |
| 46 | + "prepublishOnly": "npm run build" |
40 | 47 | }, |
41 | 48 | "simple-git-hooks": { |
42 | 49 | "pre-commit": "pnpm exec lint-staged --concurrent false" |
|
58 | 65 | "homepage": "https://github.com/vuejs/repl#readme", |
59 | 66 | "devDependencies": { |
60 | 67 | "@babel/types": "^7.23.3", |
61 | | - "@microsoft/api-extractor": "^7.38.3", |
62 | 68 | "@rollup/plugin-replace": "^5.0.5", |
63 | 69 | "@types/codemirror": "^5.60.13", |
64 | 70 | "@types/node": "^20.9.0", |
|
82 | 88 | "sucrase": "^3.34.0", |
83 | 89 | "typescript": "^5.2.2", |
84 | 90 | "vite": "^4.5.0", |
| 91 | + "vite-plugin-dts": "^3.6.3", |
85 | 92 | "vue": "^3.3.8", |
86 | 93 | "vue-tsc": "1.9.0-alpha.3" |
87 | 94 | } |
|
0 commit comments