|
27 | 27 | "tanstack" |
28 | 28 | ], |
29 | 29 | "scripts": { |
30 | | - "clean": "premove ./build ./coverage ./dist-ts", |
| 30 | + "clean": "premove ./dist ./coverage ./dist-ts", |
31 | 31 | "compile": "tsc --build", |
32 | 32 | "test:eslint": "eslint ./src", |
33 | 33 | "test:types": "npm-run-all --serial test:types:*", |
|
37 | 37 | "test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js --build", |
38 | 38 | "test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js --build", |
39 | 39 | "test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js --build", |
40 | | - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", |
41 | | - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", |
| 40 | + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", |
| 41 | + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", |
42 | 42 | "test:types:tscurrent": "tsc --build", |
43 | 43 | "test:lib": "vitest", |
44 | 44 | "test:lib:dev": "pnpm run test:lib --watch", |
45 | | - "test:build": "publint --strict && attw --pack", |
46 | | - "build": "pnpm build:tsup", |
47 | | - "build:tsup": "tsup --tsconfig tsconfig.prod.json" |
| 45 | + "test:build": "pnpm pack && publint ./dist/*.tgz --strict && attw ./dist/*.tgz; premove ./dist/*.tgz", |
| 46 | + "build": "vite build", |
| 47 | + "prepack": "node ./scripts/prepack.js" |
48 | 48 | }, |
49 | 49 | "type": "module", |
50 | | - "types": "build/index.d.ts", |
51 | | - "module": "build/index.mjs", |
| 50 | + "types": "dist/index.d.ts", |
| 51 | + "module": "dist/index.mjs", |
52 | 52 | "exports": { |
53 | 53 | ".": { |
54 | 54 | "@tanstack/custom-condition": "./src/index.ts", |
55 | | - "types": "./build/index.d.ts", |
56 | | - "default": "./build/index.mjs" |
| 55 | + "types": "./dist/index.d.ts", |
| 56 | + "default": "./dist/index.mjs" |
57 | 57 | }, |
58 | | - "./package.json": { |
59 | | - "default": "./package.json" |
60 | | - } |
| 58 | + "./package.json": "./package.json" |
61 | 59 | }, |
62 | 60 | "sideEffects": false, |
63 | 61 | "files": [ |
64 | | - "build", |
65 | | - "src", |
66 | | - "!src/__tests__" |
| 62 | + "**/*.d.ts", |
| 63 | + "**/*.mjs.*" |
67 | 64 | ], |
68 | 65 | "dependencies": { |
69 | 66 | "@tanstack/query-core": "workspace:*", |
|
74 | 71 | "@angular/compiler": "^20.0.0", |
75 | 72 | "@angular/core": "^20.0.0", |
76 | 73 | "@angular/platform-browser": "^20.0.0", |
77 | | - "@angular/platform-browser-dynamic": "^20.0.0", |
78 | 74 | "@tanstack/query-test-utils": "workspace:*", |
79 | 75 | "eslint-plugin-jsdoc": "^50.5.0", |
80 | | - "npm-run-all2": "^5.0.0" |
| 76 | + "npm-run-all2": "^5.0.0", |
| 77 | + "vite-plugin-dts": "4.2.3", |
| 78 | + "vite-plugin-externalize-deps": "^0.9.0", |
| 79 | + "vite-tsconfig-paths": "^5.1.4" |
81 | 80 | }, |
82 | 81 | "peerDependencies": { |
83 | 82 | "@angular/common": ">=16.0.0", |
84 | 83 | "@angular/core": ">=16.0.0" |
| 84 | + }, |
| 85 | + "publishConfig": { |
| 86 | + "directory": "dist", |
| 87 | + "linkDirectory": false |
85 | 88 | } |
86 | 89 | } |
0 commit comments