|
25 | 25 | "node": ">=16" |
26 | 26 | }, |
27 | 27 | "main": "dist/cjs/index.js", |
28 | | - "types": "types/index.d.ts", |
| 28 | + "types": "dist/types/index.d.ts", |
29 | 29 | "exports": { |
30 | 30 | ".": { |
31 | 31 | "require": "./dist/cjs/index.js", |
32 | 32 | "import": "./dist/esm/index.js", |
33 | | - "types": "./types/index.d.ts" |
| 33 | + "types": "./dist/types/index.d.ts" |
34 | 34 | }, |
35 | 35 | "./react": { |
36 | 36 | "require": "./dist/cjs/react/index.js", |
37 | 37 | "import": "./dist/esm/react/index.js", |
38 | | - "types": "./types/react/index.d.ts" |
| 38 | + "types": "./dist/types/react/index.d.ts" |
39 | 39 | }, |
40 | 40 | "./react/bootstrap34": { |
41 | 41 | "require": "./dist/cjs/react/bootstrap34/index.js", |
42 | 42 | "import": "./dist/esm/react/bootstrap34/index.js", |
43 | | - "types": "./types/react/bootstrap34/index.d.ts" |
| 43 | + "types": "./dist/types/react/bootstrap34/index.d.ts" |
44 | 44 | }, |
45 | 45 | "./react/bootstrap53": { |
46 | 46 | "require": "./dist/cjs/react/bootstrap53/index.js", |
47 | 47 | "import": "./dist/esm/react/bootstrap53/index.js", |
48 | | - "types": "./types/react/bootstrap53/index.d.ts" |
| 48 | + "types": "./dist/types/react/bootstrap53/index.d.ts" |
49 | 49 | }, |
50 | 50 | "./openai": { |
51 | 51 | "require": "./dist/cjs/openai/index.js", |
52 | 52 | "import": "./dist/esm/openai/index.js", |
53 | | - "types": "./types/openai/index.d.ts" |
| 53 | + "types": "./dist/types/openai/index.d.ts" |
54 | 54 | } |
55 | 55 | }, |
56 | 56 | "files": [ |
|
74 | 74 | } |
75 | 75 | }, |
76 | 76 | "scripts": { |
77 | | - "cleanup": "rm -rf ./dist ./types ./coverage", |
| 77 | + "cleanup": "rm -rf ./dist ./coverage", |
78 | 78 | "playground": "vite", |
79 | 79 | "build:playground": "vite build", |
80 | 80 | "test": "jest", |
81 | 81 | "test:coverage": "jest --collect-coverage", |
82 | 82 | "changelog": "conventional-changelog -n ./scripts/changelog/index.cjs -r 0 > CHANGELOG.md", |
| 83 | + "rebuild": "npm run cleanup && npm run build", |
83 | 84 | "build": "npm run build:esm && npm run build:cjs && npm run build:schemas", |
84 | 85 | "build:cjs": "tsc -p ./tsconfig.cjs.json && cp ./scripts/etc/cjs-package.json ./dist/cjs/package.json", |
85 | 86 | "build:esm": "tsc -p ./tsconfig.esm.json", |
86 | 87 | "build:schemas": "mkdir -p ./dist/schemas && cp ./schemas/*.json ./dist/schemas/", |
87 | | - "prepack": "npm t && npm run build", |
| 88 | + "prepack": "npm t && npm run rebuild", |
88 | 89 | "preversion": "npm audit --audit-level=low && npm t", |
89 | 90 | "version": "./scripts/cleanup_obsolete_tags.sh v$npm_package_version && npm run changelog && git add CHANGELOG.md", |
90 | 91 | "lint": "eslint" |
|
0 commit comments