@shopify/hydrogen 2.0.0-alpha.2 → 2.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/chunk-5MQMAYYE.js +69 -0
- package/dist/development/chunk-5MQMAYYE.js.map +1 -0
- package/dist/development/index.cjs +2322 -35
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +2168 -35
- package/dist/development/index.js.map +1 -1
- package/dist/development/log-seo-tags-7SUOHHPI.js +3 -0
- package/dist/development/log-seo-tags-7SUOHHPI.js.map +1 -0
- package/dist/production/chunk-2226DACX.js +5 -0
- package/dist/production/chunk-2226DACX.js.map +1 -0
- package/dist/production/index.cjs +148 -43
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.d.ts +206 -4
- package/dist/production/index.js +68 -34
- package/dist/production/index.js.map +1 -1
- package/dist/production/log-seo-tags-3MQL2PTY.js +3 -0
- package/dist/production/log-seo-tags-3MQL2PTY.js.map +1 -0
- package/dist/storefront-api-types.d.ts +6742 -0
- package/dist/storefront.schema.json +1 -0
- package/package.json +21 -10
package/package.json
CHANGED
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
-
"version": "2.0.0-alpha.
|
|
8
|
+
"version": "2.0.0-alpha.4",
|
|
9
9
|
"main": "dist/index.cjs",
|
|
10
10
|
"module": "dist/production/index.js",
|
|
11
11
|
"types": "dist/production/index.d.ts",
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "tsup --clean --config ../../tsup.config.ts",
|
|
14
|
+
"build": "tsup --clean --config ../../tsup.config.ts && npm run copy-hydrogen-react",
|
|
15
|
+
"copy-hydrogen-react": "cp ../../node_modules/@shopify/hydrogen-react/storefront.schema.json dist && cp ../../node_modules/@shopify/hydrogen-react/dist/types/storefront-api-types.d.ts dist",
|
|
15
16
|
"dev": "tsup --watch --config ../../tsup.config.ts",
|
|
16
|
-
"typecheck": "tsc --noEmit"
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"test": "vitest"
|
|
17
19
|
},
|
|
18
20
|
"exports": {
|
|
19
21
|
".": {
|
|
@@ -38,21 +40,30 @@
|
|
|
38
40
|
"import": "./dist/build/index.js",
|
|
39
41
|
"default": "./dist/build/index.js"
|
|
40
42
|
},
|
|
43
|
+
"./storefront-api-types": "./dist/storefront-api-types.d.ts",
|
|
44
|
+
"./storefront.schema.json": "./dist/storefront.schema.json",
|
|
41
45
|
"./package.json": "./package.json"
|
|
42
46
|
},
|
|
47
|
+
"typesVersions": {
|
|
48
|
+
"*": {
|
|
49
|
+
"storefront-api-types": [
|
|
50
|
+
"./dist/storefront-api-types.d.ts"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
43
54
|
"files": [
|
|
44
55
|
"dist"
|
|
45
56
|
],
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"@remix-run/react": "*",
|
|
48
|
-
"@remix-run/server-runtime": "0.0.0-experimental-e18af792a",
|
|
49
|
-
"@shopify/hydrogen-react": "*"
|
|
50
|
-
},
|
|
51
57
|
"dependencies": {
|
|
52
|
-
"
|
|
58
|
+
"@shopify/storefront-kit-react": "^2023.1.3"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@remix-run/react": "1.12.0",
|
|
62
|
+
"@remix-run/server-runtime": "1.12.0"
|
|
53
63
|
},
|
|
54
64
|
"devDependencies": {
|
|
55
65
|
"@shopify/hydrogen-react": "*",
|
|
56
|
-
"
|
|
66
|
+
"vitest": "^0.27.2",
|
|
67
|
+
"schema-dts": "^1.1.0"
|
|
57
68
|
}
|
|
58
69
|
}
|