|
2 | 2 | "name": "@faststore/api", |
3 | 3 | "version": "3.93.0-dev.1", |
4 | 4 | "license": "MIT", |
5 | | - "main": "dist/cjs/src/index.js", |
6 | | - "typings": "dist/esm/src/index.d.ts", |
7 | | - "module": "dist/esm/src/index.js", |
| 5 | + "main": "dist/cjs/index.js", |
| 6 | + "typings": "dist/src/index.d.ts", |
| 7 | + "module": "dist/es/index.mjs", |
8 | 8 | "repository": "vtex/faststore", |
9 | 9 | "files": [ |
10 | 10 | "dist", |
11 | 11 | "src" |
12 | 12 | ], |
13 | 13 | "exports": { |
14 | 14 | ".": { |
15 | | - "import": "./dist/esm/src/index.js", |
16 | | - "require": "./dist/cjs/src/index.js", |
17 | | - "types": "./dist/esm/src/index.d.ts", |
18 | | - "default": "./dist/esm/src/index.js" |
| 15 | + "types": "./dist/src/index.d.ts", |
| 16 | + "import": "./dist/es/index.mjs", |
| 17 | + "require": "./dist/cjs/index.js", |
| 18 | + "default": "./dist/es/index.mjs" |
19 | 19 | } |
20 | 20 | }, |
21 | | - "browserslist": "node 18", |
| 21 | + "browserslist": "node 20", |
22 | 22 | "engines": { |
23 | | - "node": ">=18" |
| 23 | + "node": ">=20" |
24 | 24 | }, |
25 | 25 | "scripts": { |
26 | | - "dev": "concurrently \"pnpm run generate -w\" \"tsc --watch\" \"pnpm run dev:graphql\"", |
27 | | - "dev:graphql": "nodemon --watch src --ext graphql --exec \"copyfiles \"src/**/*.graphql\" dist/esm\"", |
28 | | - "dev:server": "tsx --no-cache ./local/server.ts", |
29 | | - "build": "graphql-codegen --config codegen.yml && (pnpm build:cjs && pnpm build:esm)", |
30 | | - "build:cjs": "tsc --module commonjs --moduleResolution node10 --outDir dist/cjs && copyfiles \"src/**/*.graphql\" dist/cjs", |
31 | | - "build:esm": "tsc && copyfiles \"src/**/*.graphql\" dist/esm", |
32 | | - "test:int": "jest --projects jest.int.config.js", |
33 | | - "test:intc": "jest --projects jest.int.config.js --coverage", |
34 | | - "test:unit": "jest --projects jest.unit.config.js --silent", |
35 | | - "test:unitc": "jest --projects jest.unit.config.js --silent --coverage", |
| 26 | + "dev": "concurrently \"pnpm run generate -w\" \"vite build --watch\" \"pnpm run dev:server\"", |
| 27 | + "build": "vite build", |
| 28 | + "prebuild": "pnpm generate", |
| 29 | + "test:int": "vitest run ./test/integration", |
| 30 | + "test:intc": "pnpm run test:int --coverage", |
| 31 | + "test:unit": "vitest run ./test/unit", |
| 32 | + "test:unitc": "pnpm run test:unit --coverage", |
36 | 33 | "test": "pnpm run test:unit && pnpm run test:int", |
37 | | - "generate": "graphql-codegen --config codegen.yml" |
| 34 | + "generate": "graphql-codegen --config codegen.yml", |
| 35 | + "dev:server": "pnpm build && node ./local/server.mjs" |
38 | 36 | }, |
39 | 37 | "dependencies": { |
40 | 38 | "@graphql-tools/load-files": "^7.0.0", |
41 | | - "@graphql-tools/schema": "^9.0.0", |
42 | | - "@graphql-tools/utils": "^10.2.0", |
43 | | - "@rollup/plugin-graphql": "^1.0.0", |
44 | | - "cookie": "^0.7.0", |
| 39 | + "@graphql-tools/merge": "catalog:", |
| 40 | + "@graphql-tools/schema": "catalog:", |
| 41 | + "@graphql-tools/utils": "catalog:", |
| 42 | + "cookie": "catalog:", |
45 | 43 | "dataloader": "^2.1.0", |
46 | | - "fast-deep-equal": "^3.1.3", |
| 44 | + "fast-deep-equal": "catalog:", |
47 | 45 | "isomorphic-unfetch": "^3.1.0", |
48 | 46 | "p-limit": "^3.1.0", |
49 | 47 | "sanitize-html": "^2.11.0" |
50 | 48 | }, |
51 | 49 | "devDependencies": { |
52 | | - "@graphql-codegen/cli": "2.2.0", |
53 | | - "@graphql-codegen/typescript": "2.2.2", |
54 | | - "@parcel/watcher": "^2.4.0", |
| 50 | + "@envelop/core": "catalog:", |
| 51 | + "@envelop/graphql-jit": "catalog:", |
| 52 | + "@envelop/parser-cache": "catalog:", |
| 53 | + "@envelop/validation-cache": "catalog:", |
| 54 | + "@graphql-codegen/cli": "catalog:", |
| 55 | + "@graphql-codegen/typescript": "catalog:", |
55 | 56 | "@types/cookie": "^0.6.0", |
56 | 57 | "@types/express": "^4.17.16", |
57 | | - "@types/jest": "29.1.0", |
58 | 58 | "@types/sanitize-html": "^2.9.1", |
59 | 59 | "concurrently": "^6.2.1", |
60 | 60 | "copyfiles": "^2.4.1", |
61 | | - "express": "^4.17.3", |
62 | | - "express-graphql": "^0.12.0", |
63 | | - "graphql": "^15.6.0", |
64 | | - "jest": "^29.7.0", |
65 | | - "nodemon": "^3.0.2", |
66 | | - "ts-jest": "29.1.1", |
67 | | - "tslib": "^2.3.1", |
68 | | - "tsx": "^4.6.2" |
| 61 | + "graphql": "catalog:", |
| 62 | + "graphql-yoga": "^5.16.1", |
| 63 | + "tslib": "catalog:", |
| 64 | + "vite": "catalog:", |
| 65 | + "vite-plugin-dts": "catalog:", |
| 66 | + "vitest": "^4.0.7" |
69 | 67 | }, |
70 | 68 | "peerDependencies": { |
71 | | - "graphql": "^15.6.0" |
72 | | - }, |
73 | | - "volta": { |
74 | | - "extends": "../../package.json" |
| 69 | + "graphql": "catalog:" |
75 | 70 | } |
76 | 71 | } |
0 commit comments