forked from Shopify/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
95 lines (95 loc) · 3.38 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
{
"name": "hydrogen",
"private": true,
"sideEffects": false,
"scripts": {
"build": "npm run build:pkg",
"build:pkg": "turbo build --parallel --filter=./packages/*",
"build:examples": "turbo build --parallel --filter=./examples/*",
"build:templates": "turbo build --parallel --filter=./templates/*",
"build:all": "npm run build:pkg && npm run build:templates && npm run build:examples",
"ci:checks": "turbo run lint test format:check typecheck",
"dev": "npm run dev:pkg",
"dev:pkg": "cross-env LOCAL_DEV=true turbo dev --parallel --filter=./packages/*",
"dev:app": "cd templates/skeleton && cross-env LOCAL_DEV=true npm run dev --",
"docs:build": "turbo run build-docs",
"docs:preview": "turbo run preview-docs",
"preview": "turbo build --filter=./packages/* && npm run preview -w demo-store",
"lint": "eslint --no-error-on-unmatched-pattern --ext .js,.ts,.jsx,.tsx ./packages & npm run lint -w demo-store",
"format": "prettier --write --ignore-unknown ./packages && npm run format -w demo-store",
"format:check": "prettier --check --ignore-unknown ./packages && npm run format:check -w demo-store",
"typecheck": "turbo typecheck --parallel",
"test": "turbo run test --parallel",
"test:watch": "turbo run test:watch",
"version": "changeset version && npm run version:post",
"version:post": "npm run version:hydrogen && npm run version:cli",
"version:hydrogen": "node -p \"'export const LIB_VERSION = \\'' + require('./packages/hydrogen/package.json').version + '\\';'\" > packages/hydrogen/src/version.ts",
"version:cli": "cd packages/cli && npm run generate:manifest",
"version:next": "node scripts/changeset-version-next.mjs",
"changeset": "changeset",
"clean-all": "rimraf node_modules/.bin && rimraf node_modules/.cache && rimraf packages/*/dist && rimraf templates/*/.cache",
"check": "npm run build && npm run lint && npm run typecheck && npm run test"
},
"workspaces": [
"docs/preview",
"examples/custom-cart-method",
"examples/express",
"examples/legacy-customer-account-flow",
"examples/metaobjects",
"examples/multipass",
"examples/optimistic-cart-ui",
"examples/partytown",
"examples/subscriptions",
"examples/third-party-queries-caching",
"packages/cli",
"packages/create-hydrogen",
"packages/hydrogen",
"packages/hydrogen-codegen",
"packages/hydrogen-react",
"packages/mini-oxygen",
"packages/remix-oxygen",
"templates/demo-store",
"templates/hello-world",
"templates/skeleton"
],
"prettier": "@shopify/prettier-config",
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"@playwright/test": "^1.40.1",
"@types/eslint": "^8.4.10",
"cross-env": "^7.0.3",
"eslint": "^8.20.0",
"lint-staged": "^10.5.4",
"prettier": "^2.8.4",
"rimraf": "^3.0.2",
"tsup": "7.2.0",
"turbo": "1.12.0",
"typescript": "^5.2.2",
"yorkie": "^2.0.0"
},
"engines": {
"node": ">=18.0.0"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx}": [
"prettier --write"
],
"*.{ts,tsx}": [
"npm run lint --",
"prettier --parser=typescript --write"
],
"*.html": [
"prettier --write"
],
"*.css": [
"prettier --write"
]
},
"dependencies": {
"fast-array-diff": "^1.0.1"
}
}