forked from sanity-io/sanity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
161 lines (161 loc) · 7.21 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
154
155
156
157
158
159
160
161
{
"name": "sanity-root",
"version": "0.0.0",
"private": true,
"workspaces": [
"dev/*",
"perf",
"perf/studio",
"examples/*",
"packages/@sanity/*",
"packages/create-sanity",
"packages/groq",
"packages/sanity"
],
"scripts": {
"bootstrap": "yarn install && yarn build:dts && yarn build:cli",
"build": "turbo run --filter=@sanity/* --filter=groq --filter=sanity build",
"build:cli": "run-s build",
"build:dts": "tsc --build tsconfig.lib.json",
"check:format": "pretty-quick --check --branch origin/next",
"check:packages": "lerna run check:package",
"clean": "lerna run clean && rm -f package-lock.json",
"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 -r esbuild-register scripts/normalizeDependencyVersions.ts",
"depcheck": "lerna exec \"node -r esbuild-register \\$LERNA_ROOT_PATH/scripts/depcheck.ts\" --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:i18n": "SANITY_STUDIO_DEBUG_I18N=triangles yarn start",
"dev:i18n:reverse": "SANITY_STUDIO_DEBUG_I18N=reverse yarn start",
"dev:design-studio": "yarn --cwd dev/design-studio dev",
"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",
"dev:embedded-studio": "yarn --cwd dev/embedded-studio dev",
"docs:report": "node -r dotenv-flow/config -r esbuild-register scripts/doc-report/docReport",
"docs:report:create": "node -r dotenv-flow/config -r esbuild-register scripts/doc-report/docReportCreate",
"docs:report:cleanup": "node -r dotenv-flow/config -r esbuild-register scripts/doc-report/docReportCleanup",
"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",
"e2e:dev": "yarn --cwd dev/studio-e2e-testing dev",
"e2e:build": "yarn --cwd dev/studio-e2e-testing build",
"e2e:cleanup": "node -r dotenv-flow/config -r esbuild-register scripts/e2e/cleanup",
"e2e:codegen": "node -r dotenv-flow/config ./node_modules/.bin/sanity-test codegen",
"e2e:preview": "yarn e2e:build && yarn --cwd dev/studio-e2e-testing start",
"e2e:setup": "node -r dotenv-flow/config -r esbuild-register scripts/e2e/setup",
"e2e:start": "yarn --cwd dev/studio-e2e-testing start",
"etl": "node -r dotenv-flow/config -r esbuild-register scripts/etl",
"init": "lerna clean --yes && run-s bootstrap build",
"lerna:clean": "lerna clean",
"lint": "turbo run lint --continue -- --quiet",
"lint:fix": "yarn lint --quiet --fix",
"lint:exhaustive-deps": "yarn lint --quiet --rule 'react-hooks/exhaustive-deps: [error, {additionalHooks: \"(useAsync|useMemoObservable|useObservableCallback)\"}]'",
"normalize-pkgfields": "node -r esbuild-register scripts/normalizePackageFields",
"postinstall": "husky install",
"prettier": "prettier --cache .",
"prettify": "lerna run clean && prettier --write .",
"prettify:dts": "prettier --loglevel warn --write packages/@sanity/*/lib/dts && prettier --loglevel warn --write packages/*/lib/dts",
"release": "yarn build && lerna publish --exact --force-publish",
"release-canary": "RELEASE_TAG=canary yarn release-tag",
"release-current-branch": "RELEASE_TAG=`git rev-parse --abbrev-ref HEAD | sed 's/\\//\\_/g'` yarn release-tag",
"release-rc": "yarn build && lerna publish --force-publish --dist-tag=dev-preview --preid=rc --exact",
"release-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 -r esbuild-register scripts/printReleaseNotesTemplate",
"start": "yarn dev:test-studio",
"test": "jest --forceExit",
"test:e2e": "playwright test",
"perf:test": "cd perf && yarn perf:test",
"perf:studio": "cd perf && yarn studio",
"perf:studio:dev": "cd perf && yarn studio:dev",
"perf:codegen": "cd perf && yarn perf:codegen",
"tsdoc:dev": "sanity-tsdoc dev",
"type-check": "tsc --build",
"updated": "lerna updated",
"build:test-studio": "yarn build --filter=sanity-test-studio",
"build:performance-studio": "yarn build --filter=perf-studio",
"watch": "lerna run --parallel --scope '{@sanity/*,sanity}' watch"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --quiet"
},
"resolutions": {
"**/@types/react": "^18.0.25",
"@types/react": "^18.2.37",
"wide-align/string-width": "^4.2.0"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.23.7",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@bjoerge/mutiny": "^0.0.2",
"@optimize-lodash/rollup-plugin": "^4.0.4",
"@playwright/test": "^1.39.0",
"@sanity/client": "^6.11.1",
"@sanity/eslint-config-i18n": "^1.0.0",
"@sanity/pkg-utils": "^3.3.2",
"@sanity/test": "0.0.1-alpha.1",
"@sanity/tsdoc": "1.0.0-alpha.38",
"@sanity/uuid": "^3.0.2",
"@types/jest": "^29.5.6",
"@types/mkdirp": "^1.0.2",
"@types/node": "^14.18.9",
"@types/react": "^18.2.37",
"@types/tmp": "^0.2.3",
"@types/yargs": "^17.0.7",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"babel-jest": "^29.7.0",
"cac": "^6.7.12",
"chalk": "^4.1.2",
"depcheck": "^1.4.3",
"dotenv": "^16.0.3",
"dotenv-flow": "^3.2.0",
"esbuild": "^0.19.8",
"esbuild-register": "^3.5.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-sanity": "^7.0.1",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-boundaries": "^3.4.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tsdoc": "^0.2.17",
"execa": "^2.0.0",
"glob": "^7.2.0",
"globby": "^10.0.0",
"husky": "^7.0.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-environment-node": "^29.7.0",
"lerna": "^4.0.0",
"lint-staged": "^12.1.2",
"lodash": "^4.17.21",
"minimist": "^1.2.5",
"npm-run-all": "^4.1.5",
"ora": "^6.3.1",
"prettier": "^3.1.0",
"prettier-plugin-packagejson": "^2.4.6",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"rxjs": "^7.8.1",
"semver": "^7.3.5",
"turbo": "^1.11.2",
"typescript": "^5.2.2",
"yargs": "^17.3.0"
},
"optionalDependencies": {
"node-notifier": "^10.0.0"
},
"packageManager": "[email protected]",
"isSanityMonorepo": true
}