forked from Shopify/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
80 lines (80 loc) · 2.66 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
{
"private": true,
"sideEffects": false,
"scripts": {
"build": "turbo build --parallel",
"build:pkg": "npm run build -- --filter=./packages/*",
"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/*",
"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": [
"templates/hello-world",
"templates/demo-store",
"templates/skeleton",
"examples/express",
"packages/remix-oxygen",
"packages/hydrogen",
"packages/create-hydrogen",
"packages/cli",
"packages/hydrogen-react",
"packages/hydrogen-codegen"
],
"prettier": "@shopify/prettier-config",
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"@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.10.12",
"typescript": "^5.2.2",
"yorkie": "^2.0.0"
},
"engines": {
"node": ">=16.13"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx}": [
"prettier --write"
],
"*.{ts,tsx}": [
"npm run lint --",
"prettier --parser=typescript --write"
],
"*.html": [
"prettier --write"
],
"*.md": [
"prettier --write"
],
"*.css": [
"prettier --write"
]
},
"dependencies": {
"fast-array-diff": "^1.0.1"
}
}