forked from Shopify/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
153 lines (153 loc) · 5.41 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "@shopify/hydrogen-react",
"version": "2023.1.7",
"description": "React components, hooks, and utilities for creating custom Shopify storefronts",
"homepage": "https://github.com/Shopify/hydrogen/tree/main/packages/hydrogen-react",
"license": "MIT",
"engines": {
"node": ">=14"
},
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
},
"files": [
"dist",
"storefront.schema.json"
],
"type": "commonjs",
"exports": {
".": {
"node": {
"require": {
"types": "./dist/types/index.d.cts",
"development": "./dist/node-dev/index.js",
"default": "./dist/node-prod/index.js"
},
"import": {
"types": "./dist/types/index.d.ts",
"development": "./dist/node-dev/index.mjs",
"default": "./dist/node-prod/index.mjs"
},
"default": "./dist/node-prod/index.js"
},
"module": {
"types": "./dist/types/index.d.ts",
"development": "./dist/browser-dev/index.mjs",
"default": "./dist/browser-prod/index.mjs"
},
"import": {
"types": "./dist/types/index.d.ts",
"development": "./dist/browser-dev/index.mjs",
"default": "./dist/browser-prod/index.mjs"
},
"require": {
"types": "./dist/types/index.d.cts",
"development": "./dist/node-dev/index.js",
"default": "./dist/node-prod/index.js"
},
"default": "./dist/browser-prod/index.mjs"
},
"./storefront-api-types": "./dist/types/storefront-api-types.d.ts",
"./storefront.schema.json": "./storefront.schema.json",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"storefront-api-types": [
"./dist/types/storefront-api-types.d.ts"
]
}
},
"main": "./dist/node-prod/index.js",
"module": "./dist/node-prod/index.mjs",
"browser": "./dist/browser-prod/index.mjs",
"types": "./dist/types/index.d.ts",
"unpkg": "./dist/umd/hydrogen-react.prod.js",
"jsdelivr": "./dist/umd/hydrogen-react.prod.js",
"sideEffects": [
"dist/*/node_modules/use-sync-external-store/shim/with-selector.*js"
],
"scripts": {
"build-docs": "sh ./docs/build-docs.sh && npm run format",
"clean-dist": "rimraf ./dist",
"dev": "run-s dev:demo",
"dev:story": "ladle serve",
"dev:demo": "run-p dev:demo:* copy-storefront-types",
"dev:demo:browser-prod": "vite build --watch --emptyOutDir false --clearScreen false",
"dev:demo:node-prod": "vite build --watch --emptyOutDir false --clearScreen false --ssr",
"dev:demo:ts": "tsc --watch --emitDeclarationOnly",
"build": "npm-run-all --sequential clean-dist --parallel build:vite:* build:tsc:es --parallel build:tsc:cjs copy-storefront-types",
"build:vite:browser-dev": "vite build --mode devbuild",
"build:vite:browser-prod": "vite build",
"build:vite:node-dev": "vite build --mode devbuild --ssr",
"build:vite:node-prod": "vite build --ssr",
"build:vite:umddev": "vite build --mode umdbuilddev",
"build:vite:umdprod": "vite build --mode umdbuild",
"build:tsc:cjs": "cpy ./dist/types/index.d.ts ./dist/types/ --rename='index.d.cts' --flat",
"build:tsc:es": "tsc --emitDeclarationOnly --project tsconfig.typeoutput.json",
"copy-storefront-types": "cpy ./src/storefront-api-types.d.ts ./dist/types/ --flat",
"format": "prettier --write \"{src,docs}/**/*\" --ignore-unknown",
"graphql-types": "graphql-codegen --config codegen.ts && npm run format",
"lint": "eslint --no-error-on-unmatched-pattern --ext .js,.ts,.jsx,.tsx src",
"test": "vitest run --coverage",
"test:watch": "vitest",
"typecheck": "run-p typecheck:*",
"typecheck:code": "tsc --noEmit",
"typecheck:examples": "tsc --noEmit --project tsconfig.examples.json"
},
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"@graphql-codegen/add": "^4.0.1",
"@graphql-codegen/cli": "^3.2.1",
"@graphql-codegen/introspection": "3.0.1",
"@graphql-codegen/typescript": "^3.0.1",
"@ladle/react": "^2.9.0",
"@shopify/generate-docs": "^0.8.10",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.4.0",
"@vitejs/plugin-react": "^3.1.0",
"@vitest/coverage-c8": "^0.28.5",
"c8": "^7.13.0",
"cpy-cli": "^4.2.0",
"eslint": "^8.34.0",
"eslint-plugin-hydrogen": "^0.12.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-tsdoc": "^0.2.14",
"happy-dom": "8.7.2",
"npm-run-all": "^4.1.5",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "^4.1.2",
"ts-expect": "^1.3.0",
"typescript": "^4.9.5",
"vite": "^4.1.4",
"vitest": "^0.28.5"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"dependencies": {
"@google/model-viewer": "^1.12.1",
"@xstate/fsm": "^2.0.0",
"@xstate/react": "^3.2.1",
"graphql": "^16.6.0",
"type-fest": "^3.6.0",
"worktop": "^0.7.3"
},
"repository": {
"type": "git",
"url": "https://github.com/shopify/hydrogen.git",
"directory": "packages/hydrogen-react"
},
"bugs": "https://github.com/shopify/hydrogen/issues"
}