forked from Shopify/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
74 lines (74 loc) · 2.54 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
{
"private": true,
"sideEffects": false,
"scripts": {
"build": "turbo build --parallel",
"build:pkg": "npm run build -- --filter=./packages/*",
"dev": "npm run dev:pkg -- --filter=./templates/demo-store",
"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:hydrogen && npm run version:cli && npm run version:create-hydrogen",
"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:create-hydrogen": "cd packages/create-hydrogen && npm run build",
"changeset": "changeset",
"clean-all": "rimraf node_modules/.bin && rimraf node_modules/.cache && rimraf packages/remix-oxygen/dist && rimraf packages/hydrogen/dist && rimraf packages/cli/dist && rimraf templates/demo-store/.cache"
},
"workspaces": [
"templates/hello-world",
"templates/demo-store",
"templates/skeleton",
"packages/remix-oxygen",
"packages/hydrogen",
"packages/create-hydrogen",
"packages/cli"
],
"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": "^6.5.0",
"turbo": "^1.6.3",
"typescript": "^4.9.5",
"yorkie": "^2.0.0"
},
"engines": {
"node": ">=16.13"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx}": [
"prettier --write"
],
"*.{ts,tsx}": [
"eslint",
"prettier --parser=typescript --write"
],
"*.html": [
"prettier --write"
],
"*.md": [
"prettier --write"
],
"*.css": [
"prettier --write"
]
},
"dependencies": {
"fast-array-diff": "^1.0.1"
}
}