-
Notifications
You must be signed in to change notification settings - Fork 328
/
package.json
78 lines (78 loc) · 2.17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "@shopify/hydrogen-ui",
"version": "2022.07.0",
"description": "Components for modern custom Shopify storefronts",
"homepage": "https://github.com/Shopify/hydrogen#readme",
"license": "MIT",
"private": true,
"engines": {
"node": ">=14"
},
"files": [
"dist",
"storefront.schema.json"
],
"type": "module",
"exports": {
"./server": "./dist/index.server.js",
"./client": "./dist/index.client.js",
"./shared": "./dist/index.shared.js",
"./storefront-api-types": "./dist/storefront-api-types.d.ts",
"./storefront.schema.json": "./storefront.schema.json"
},
"typesVersions": {
"<=4.6": {
"client": [
"./dist/index.client.d.ts"
],
"server": [
"./dist/index.server.d.ts"
],
"shared": [
"./dist/index.shared.d.ts"
],
"storefront-api-types": [
"./dist/storefront-api-types.d.ts"
]
}
},
"sideEffects": false,
"scripts": {
"dev": "run-p dev:vite dev:ts copy-storefront-types",
"dev:vite": "vite build --watch --emptyOutDir false --clearScreen false",
"dev:ts": "tsc --watch",
"build": "yarn build:vite && yarn build:ts",
"build:vite": "vite build",
"build:ts": "run-p build:tsc copy-storefront-types",
"build:tsc": "tsc --emitDeclarationOnly",
"copy-storefront-types": "cpy ./src/storefront-api-types.d.ts ./dist/ --flat",
"format": "prettier --write \"src/**/*\"",
"graphql-types": "graphql-codegen --config codegen.yml && yarn format",
"preview": "vite dev",
"test": "vitest",
"test:ci": "vitest run --coverage",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@faker-js/faker": "^6.1.2",
"@graphql-codegen/cli": "^2.6.2",
"@graphql-codegen/typescript": "^2.4.8",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@vitejs/plugin-react": "^1.3.0",
"c8": "^7.11.0",
"cpy-cli": "^4.1.0",
"graphql": "^16.3.0",
"happy-dom": "^2.55.0",
"prettier": "^2.6.2",
"vite": "^2.9.0",
"vitest": "^0.9.4"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"dependencies": {
"type-fest": "^2.12.2"
}
}