-
Notifications
You must be signed in to change notification settings - Fork 328
/
package.json
135 lines (135 loc) · 4.39 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
{
"name": "@shopify/hydrogen",
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
},
"engines": {
"node": ">=14"
},
"version": "0.24.0",
"description": "Modern custom Shopify storefronts",
"license": "MIT",
"main": "dist/esnext/index.js",
"exports": {
".": "./dist/esnext/index.js",
"./plugin": {
"import": "./dist/esnext/framework/plugin.js",
"require": "./dist/node/framework/plugin.js"
},
"./plugin.cjs": "./plugin.cjs",
"./middleware": {
"import": "./dist/esnext/framework/middleware.js",
"require": "./dist/node/framework/middleware.js"
},
"./web-polyfills": {
"import": "./dist/esnext/utilities/web-api-polyfill",
"require": "./dist/node/utilities/web-api-polyfill"
},
"./vendor/*": "./vendor/*",
"./package.json": "./package.json",
"./*": "./dist/esnext/*.js"
},
"types": "dist/esnext/index.d.ts",
"files": [
"dist",
"vendor"
],
"scripts": {
"dev": "run-p hoist-files \"dev-esnext {@}/esnext\" \"dev-node {@}/node\" -- --outDir ../../node_modules/@shopify/hydrogen/dist",
"dev-esnext": "tsc -w --incremental --p tsconfig.esm.json",
"dev-node": "tsc -w --incremental --p tsconfig.cjs.json",
"dev-graphql": "graphql-codegen --config codegen.yml --watch",
"hoist-files": "cpy --parents *.cjs *.json vendor ../../node_modules/@shopify/hydrogen",
"hoist-dist": "cpy --parents dist ../../node_modules/@shopify/hydrogen",
"prebuild": "rimraf dist ../../node_modules/@shopify/hydrogen && mkdirp ../../node_modules/@shopify/hydrogen",
"build": "run-p build-esnext build-node && yarn hoist-files && yarn hoist-dist",
"build-esnext": "tsc --p tsconfig.esm.json",
"build-node": "tsc --p tsconfig.cjs.json",
"lint": "eslint --ext .ts src/** --no-error-on-unmatched-pattern",
"format": "prettier --write --parser typescript \"src/**/*.ts\"",
"graphql-types": "graphql-codegen --config codegen.yml && yarn format",
"prepack": "yarn build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Shopify/hydrogen.git",
"directory": "packages/hydrogen"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@graphql-codegen/add": "^3.1.1",
"@graphql-codegen/cli": "2.6.2",
"@graphql-codegen/graphql-modules-preset": "^2.3.5",
"@graphql-codegen/import-types-preset": "^2.1.12",
"@graphql-codegen/introspection": "2.1.1",
"@graphql-codegen/near-operation-file-preset": "^2.2.6",
"@graphql-codegen/typed-document-node": "^2.2.5",
"@graphql-codegen/typescript": "2.4.5",
"@graphql-codegen/typescript-graphql-files-modules": "2.1.1",
"@graphql-codegen/typescript-operations": "2.3.2",
"@graphql-typed-document-node/core": "^3.1.0",
"@rollup/plugin-graphql": "^1.0.0",
"@types/body-parser": "^1.19.2",
"@types/connect": "^3.4.34",
"@types/graphql": "^14.5.0",
"@types/node": "^16.11.7",
"@types/node-fetch": "^2.5.9",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.5",
"@types/set-cookie-parser": "^2.4.2",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.2.0",
"babel-loader": "^8.2.2",
"cpy-cli": "^3.1.0",
"mkdirp": "^1.0.4",
"npm-run-all": "^4.1.5",
"postcss": "^8",
"raw-loader": "^4.0.2",
"rimraf": "^3.0.2"
},
"peerDependencies": {
"body-parser": "^1.20.0",
"compression": "^1.7.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"serve-static": "^1.14.1",
"vite": "^2.9.0"
},
"peerDependenciesMeta": {
"body-parser": {
"optional": true
},
"compression": {
"optional": true
},
"serve-static": {
"optional": true
}
},
"dependencies": {
"@shopify/network": "^2.0.8",
"@shopify/react-performance": "^2.1.14",
"@vitejs/plugin-react": "^1.3.0",
"abort-controller": "^3.0.0",
"body-parser": "^1.20.0",
"connect": "^3.7.0",
"es-module-lexer": "^0.10.0",
"fast-glob": "^3.2.11",
"graphql": "^16.3.0",
"graphql-tag": "^2.12.6",
"history": "^5.3.0",
"kolorist": "^1.5.1",
"magic-string": "^0.26.1",
"node-fetch": "^2.6.7",
"path-to-regexp": "^6.2.0",
"react-error-boundary": "^3.1.3",
"react-helmet-async": "^1.2.3",
"set-cookie-parser": "^2.5.0",
"uuid": "^8.3.2",
"vite-plugin-inspect": "^0.3.6",
"web-streams-polyfill": "^3.2.0",
"worktop": "^0.7.3",
"undici": "^5.5.1"
}
}