/
package.json
153 lines (153 loc) · 6.43 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"private": true,
"isSanityMonorepo": true,
"name": "sanity-root",
"workspaces": [
"dev/*",
"examples/*",
"packages/@sanity/*",
"packages/create-sanity",
"packages/groq",
"packages/sanity"
],
"scripts": {
"__wip_smoke-test:cli": "yarn build && yarn publish:tarball && node -r esbuild-register test/smoke-test/cli.ts",
"bootstrap": "yarn install && yarn build:dts && yarn build:cli",
"build": "lerna run --scope '{@sanity/*,groq,sanity}' build",
"build:cli": "run-s build",
"build:dts": "tsc --build tsconfig.lib.json",
"check:format": "yarn prettier --check",
"check:packages": "lerna run check:package",
"clean": "lerna run clean",
"clean:deps": "rimraf packages/@sanity/*/node_modules packages/*/node_modules node_modules",
"check:deps-updates": "npx npm-check-updates --workspaces --root -m",
"check:versions": "node scripts/normalizeDependencyVersions.js",
"cypress:open": "cypress open --config-file cypress/cypress.json",
"cypress:run": "cypress run --config-file cypress/cypress.json",
"depcheck": "lerna exec \\$LERNA_ROOT_PATH/scripts/depcheck.js --no-bail --parallel",
"deploy:movies": "yarn build && cd examples/movies-studio && sanity deploy",
"deploy:test": "yarn build && cd dev/test-studio && sanity deploy",
"dev": "yarn start",
"dev:design-studio": "yarn --cwd dev/design-studio dev",
"dev:perf-studio": "yarn --cwd dev/perf-studio start",
"dev:starter-studio": "yarn --cwd dev/starter-studio dev",
"dev:strict-studio": "yarn --cwd dev/strict-studio dev",
"dev:test-studio": "yarn --cwd dev/test-studio dev",
"eslint": "eslint --ext=.cjs,.js,.jsx,.mjs,.ts,.tsx --quiet",
"example:blog-studio": "yarn --cwd examples/blog-studio start",
"example:clean-studio": "yarn --cwd examples/clean-studio start",
"example:ecommerce-studio": "yarn --cwd examples/ecommerce-studio start",
"example:example-studio": "yarn --cwd dev/example-studio start",
"example:movies-studio": "yarn --cwd examples/movies-studio start",
"etl": "cd scripts/etl && node -r dotenv-flow/config -r esbuild-register main",
"init": "lerna clean --yes && run-s bootstrap build",
"lerna:clean": "lerna clean",
"lint": "eslint .",
"lint-next": "eslint `git diff --name-only next --diff-filter ACMRTUXB`",
"lint:fix": "eslint . --quiet --fix",
"lint:exhaustive-deps": "eslint . --cache --quiet --rule 'react-hooks/exhaustive-deps: [error, {additionalHooks: \"(useAsync|useMemoObservable|useObservableCallback)\"}]'",
"normalize-pkgfields": "node scripts/normalizePackageFields.js",
"postinstall": "husky install",
"prettier": "prettier '**/*.{ts,js,tsx,jsx}'",
"prettify": "lerna run clean && prettier --write",
"prettify:dts": "prettier --loglevel warn --write packages/@sanity/*/lib/dts && prettier --loglevel warn --write packages/*/lib/dts",
"publish": "yarn build && lerna publish --exact --force-publish",
"publish-canary": "RELEASE_TAG=canary yarn publish-tag",
"publish-current-branch": "RELEASE_TAG=`git rev-parse --abbrev-ref HEAD | sed 's/\\//\\_/g'` yarn publish-tag",
"publish-rc": "yarn build && lerna publish --force-publish --dist-tag=dev-preview --preid=rc --exact",
"publish-tag": "RELEASE_TAG=\"${RELEASE_TAG:-canary}\"; yarn build && lerna publish --canary --force-publish --no-git-tag-version --dist-tag=$RELEASE_TAG --preid=$RELEASE_TAG --exact",
"publish:tarball": "node -r esbuild-register scripts/publish/tarball",
"release-notes": "node scripts/printReleaseNotesTemplate.js",
"start": "yarn dev:test-studio",
"test": "jest",
"test-e2e": "start-server-and-test build-and-serve http://localhost:3333 'yarn cypress:run'",
"test-perf": "start-server-and-test perf-studio http://localhost:3344 'ts-node -r dotenv/config perf/suite'",
"type-check": "tsc --build",
"updated": "lerna updated",
"vercel-build": "yarn build:cli && (cd dev/test-studio && yarn build)",
"watch": "lerna run --parallel --scope '{@sanity/*,sanity}' watch"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.19.1",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@rexxars/babel-plugin-inline-json-import": "^0.3.4",
"@sanity/client": "^3.4.1",
"@sanity/pkg-utils": "^1.17.3",
"@sanity/tsdoc-to-portable-text": "^0.4.1",
"@sanity/uuid": "^3.0.1",
"@types/jest": "^27.0.3",
"@types/mkdirp": "^1.0.2",
"@types/node": "^14.18.9",
"@types/react": "^18.0.25",
"@types/styled-components": "^5.1.16",
"@types/tmp": "^0.2.3",
"@types/yargs": "^17.0.7",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"@vercel/node": "^1.12.1",
"babel-jest": "^27.4.2",
"boxen": "^4.1.0",
"cac": "^6.7.12",
"chalk": "^4.1.2",
"cypress": "^9.1.1",
"cypress-dotenv": "^2.0.0",
"date-fns": "^2.26.1",
"deepmerge": "^4.2.2",
"del": "^6.0.0",
"depcheck": "^1.4.3",
"dotenv": "^10.0.0",
"dotenv-flow": "^3.2.0",
"esbuild": "^0.14.43",
"esbuild-register": "^3.3.2",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-sanity": "^6.0.0",
"eslint-import-resolver-typescript": "^3.5.1",
"eslint-plugin-boundaries": "^3.0.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-tsdoc": "^0.2.14",
"execa": "^2.0.0",
"git-repo-info": "^2.1.1",
"glob": "^7.2.0",
"globby": "^10.0.0",
"hard-rejection": "^2.1.0",
"hashids": "^2.2.10",
"history-server": "^1.3.1",
"husky": "^7.0.4",
"jest": "^27.4.3",
"lerna": "^4.0.0",
"lint-staged": "^12.1.2",
"lodash": "^4.17.21",
"merge-stream": "^2.0.0",
"minimist": "^1.2.5",
"mkdirp": "^1.0.4",
"nanoid": "^3.1.30",
"npm-run-all": "^4.1.5",
"pre-commit": "^1.2.2",
"prettier": "^2.5.1",
"puppeteer": "^19.3.0",
"rimraf": "^3.0.2",
"rxjs": "^6.5.3",
"semver": "^7.3.5",
"start-server-and-test": "^1.14.0",
"tmp": "^0.2.1",
"typescript": "^4.8.3",
"yargs": "^17.3.0"
},
"optionalDependencies": {
"node-notifier": "^10.0.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --quiet"
},
"resolutions": {
"@types/react": "^18.0.25",
"**/@types/react": "^18.0.25"
}
}