|
11 | 11 | "url": "https://github.com/sponsors/tannerlinsley" |
12 | 12 | }, |
13 | 13 | "type": "module", |
14 | | - "types": "build/lib/index.d.ts", |
15 | | - "main": "build/lib/index.cjs", |
16 | | - "module": "build/lib/index.js", |
| 14 | + "types": "build/types/index.d.ts", |
| 15 | + "main": "build/cjs/index.js", |
| 16 | + "module": "build/esm/index.js", |
17 | 17 | "exports": { |
18 | 18 | ".": { |
19 | | - "types": "./build/lib/index.d.ts", |
20 | | - "solid": "./build/lib/index.js", |
21 | | - "import": "./build/lib/index.js", |
22 | | - "require": "./build/lib/index.cjs", |
23 | | - "default": "./build/lib/index.cjs" |
| 19 | + "types": "./build/types/index.d.ts", |
| 20 | + "solid": "./build/source/index.jsx", |
| 21 | + "import": "./build/esm/index.js", |
| 22 | + "browser": { |
| 23 | + "import": "./build/esm/index.js", |
| 24 | + "require": "./build/cjs/index.js" |
| 25 | + }, |
| 26 | + "require": "./build/cjs/index.js", |
| 27 | + "node": "./build/cjs/index.js" |
24 | 28 | }, |
25 | 29 | "./package.json": "./package.json" |
26 | 30 | }, |
|
31 | 35 | "test:lib": "vitest run --coverage", |
32 | 36 | "test:lib:dev": "pnpm run test:lib --watch", |
33 | 37 | "test:build": "publint", |
34 | | - "build": "pnpm build:rollup && pnpm build:types", |
| 38 | + "build": "pnpm build:rollup && pnpm rename-build-dir", |
| 39 | + "rename-build-dir": "rimraf ./build && mv ./dist ./build", |
35 | 40 | "build:rollup": "rollup --config rollup.config.js", |
36 | 41 | "build:types": "tsc --emitDeclarationOnly" |
37 | 42 | }, |
|
51 | 56 | }, |
52 | 57 | "devDependencies": { |
53 | 58 | "@tanstack/query-core": "^5.0.0-alpha.43", |
| 59 | + "rollup-preset-solid": "^2.0.1", |
54 | 60 | "vite-plugin-solid": "^2.5.0" |
55 | 61 | } |
56 | 62 | } |
0 commit comments