Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
147 lines (147 loc) · 8.59 KB
/
Copy pathpackage.json
File metadata and controls
147 lines (147 loc) · 8.59 KB
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
{
"name": "root",
"version": "0.0.0",
"license": "MIT",
"private": true,
"scripts": {
"start": "pnpm build:packages && pnpm start:website",
"start:website": "pnpm --filter website start",
"start:website:profile": "DOCUSAURUS_BUNDLER_CPU_PROFILE=true DOCUSAURUS_RSPACK_TRACE=true pnpm --filter website start",
"start:website:baseUrl": "pnpm --filter website start:baseUrl",
"start:website:blogOnly": "pnpm --filter website start:blogOnly",
"start:website:deployPreview": "cross-env NETLIFY=true CONTEXT='deploy-preview' pnpm --filter website start",
"examples:generate": "node admin/scripts/generateExamples.js",
"build": "pnpm build:packages && pnpm build:website",
"build:packages": "lerna run build --no-private",
"build:website": "pnpm --filter website build",
"build:website:profile": "DOCUSAURUS_BUNDLER_CPU_PROFILE=true DOCUSAURUS_RSPACK_TRACE=true pnpm --filter website build",
"build:website:baseUrl": "pnpm --filter website build:baseUrl",
"build:website:blogOnly": "pnpm --filter website build:blogOnly",
"build:website:deployPreview:testWrap": "pnpm --filter website test:swizzle:wrap:ts",
"build:website:deployPreview:build": "cross-env NETLIFY=true CONTEXT='deploy-preview' pnpm --filter website build",
"build:website:deployPreview": "pnpm build:website:deployPreview:testWrap && pnpm build:website:deployPreview:build",
"build:website:fast": "pnpm --filter website build:fast",
"build:website:fast:rsdoctor": "pnpm --filter website build:fast:rsdoctor",
"build:website:en": "pnpm --filter website build --locale en",
"profile:bundle:cpu": "pnpm --filter website profile:bundle:cpu:profile",
"profile:bundle:samply": "pnpm --filter website profile:bundle:samply",
"clear:website": "pnpm --filter website clear",
"serve:website": "pnpm --filter website serve",
"serve:website:baseUrl": "serve website",
"serve:website:ssl": "pnpm serve:website:ssl:gencert && pnpm serve:website:ssl:message && pnpm serve:website:ssl:serve",
"serve:website:ssl:gencert": "openssl req -x509 -nodes -days 365 -newkey rsa:4096 -subj \"/C=US/ST=Docusaurus/L=Anywhere/O=Dis/CN=localhost\" -keyout ./website/.docusaurus/selfsigned.key -out ./website/.docusaurus/selfsigned.crt",
"serve:website:ssl:message": "echo '\n\n\nServing Docusaurus with HTTPS on localhost requires to disable the Chrome security: chrome://flags/#allow-insecure-localhost\n\n\n'",
"serve:website:ssl:serve": "serve website/build --ssl-cert ./website/.docusaurus/selfsigned.crt --ssl-key ./website/.docusaurus/selfsigned.key",
"crowdin:upload:website": "crowdin upload sources --config ./crowdin-v2.yaml",
"crowdin:download": "crowdin download --config ./crowdin-v2.yaml",
"crowdin:download:website": "pnpm crowdin:download --language fr --language ko --language pt-BR --language zh-CN --language ja",
"argos": "pnpm argos:build && pnpm argos:screenshot && pnpm argos:build:text-snapshots && pnpm argos:format:text-snapshots && pnpm argos:upload:text-snapshots",
"argos:build": "cross-env DOCUSAURUS_ARGOS_BUILD=true pnpm build:website:fast --dev",
"argos:screenshot": "pnpm --filter argos screenshot",
"argos:build:text-snapshots": "cross-env DOCUSAURUS_ARGOS_BUILD=true SKIP_HTML_MINIFICATION=true pnpm build:website:fast --dev --no-minify",
"argos:format:text-snapshots": "node argos/normalizeTextSnapshots.mjs && pnpm format:website:build",
"argos:upload:text-snapshots": "pnpm --filter argos upload-text-snapshots",
"canary": "pnpm canary:bumpVersion && pnpm canary:publish",
"canary:getCoreVersion": "node -p \"require('./packages/docusaurus/package.json').version.split('-')[0]\"",
"canary:version": "echo `pnpm --silent canary:getCoreVersion`-canary-`git rev-list --count HEAD`+`git rev-parse --short HEAD`",
"canary:bumpVersion": "pnpm lerna version `pnpm --silent canary:version` --exact --no-push --yes --loglevel verbose",
"canary:publish": "pnpm --recursive publish --tag canary --no-git-checks",
"changelog": "lerna-changelog",
"postinstall": "pnpm build:packages",
"prepare": "husky",
"format": "oxfmt .",
"format:website:build": "format-gitignored-files --config=.oxfmtrc.website.build.json \"website/build/**/*.{html,css,json}\"",
"format:diff": "oxfmt --list-different .",
"lint": "pnpm lint:js && pnpm lint:style && pnpm lint:spelling && pnpm lint:syncpack && pnpm lint:catalogs && pnpm lint:deps && pnpm lint:knip && pnpm lint:knip:production && pnpm format:diff",
"lint:js": "eslint --cache --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx,mjs}\"",
"lint:js:fix": "pnpm lint:js --fix",
"lint:spelling": "cspell \"**\" --no-progress --show-context --show-suggestions",
"lint:spelling:fix": "pnpm rimraf project-words.txt && echo \"# Project Words - Run pnpm lint:spelling:sort after adding words\" >> project-words.txt && pnpm --silent lint:spelling --words-only --unique --no-exit-code --no-summary \"**\" | cross-env LC_ALL=C sort --ignore-case >> project-words.txt",
"lint:spelling:sort": "cross-env LC_ALL=C sort --ignore-case -o project-words.txt project-words.txt",
"lint:style": "stylelint \"**/*.css\"",
"lint:style:fix": "pnpm lint:style --fix",
"lint:syncpack": "syncpack lint",
"lint:catalogs": "node admin/scripts/lintCatalogs.js",
"lint:syncpack:fix": "syncpack fix",
"lint:deps": "pnpm dedupe --check",
"lint:deps:fix": "pnpm dedupe",
"lint:knip": "knip",
"lint:knip:production": "knip --production --exports --dependencies --no-tag-hints --workspace './packages/*'",
"lint:knip:public-api": "knip --include-entry-exports --include exports,types --workspace './packages/*'",
"lint:knip:fix": "knip --fix",
"lerna": "lerna",
"test": "vitest run",
"typecheck:tests": "tsc -p tsconfig.tests.json",
"test:build:website": "./admin/scripts/test-release.sh",
"watch": "pnpm lerna run --parallel watch",
"clear": "(pnpm --filter website clear || echo 'Failure while running docusaurus clear') && pnpm rimraf test-website && pnpm rimraf test-website-in-workspace && pnpm lerna exec pnpm rimraf lib",
"test:baseUrl": "pnpm build:website:baseUrl && pnpm serve:website:baseUrl",
"lock:update": "pnpm install --lockfile-only",
"update-translations": "pnpm --filter @docusaurus/theme-translations run update"
},
"devDependencies": {
"@ai-sdk/react": "catalog:dev",
"@crowdin/cli": "catalog:dev",
"@docusaurus/eslint-plugin": "workspace:*",
"@docusaurus/monorepo-scripts": "workspace:*",
"@docusaurus/plugin-content-blog": "workspace:*",
"@docusaurus/plugin-content-docs": "workspace:*",
"@docusaurus/plugin-content-pages": "workspace:*",
"@docusaurus/fs": "workspace:*",
"@eslint/js": "catalog:dev",
"@testing-library/dom": "catalog:dev",
"@testing-library/jest-dom": "catalog:dev",
"@testing-library/react": "catalog:dev",
"@types/lodash": "catalog:dev",
"@types/node": "catalog:dev",
"@types/prompts": "catalog:dev",
"@types/react": "catalog:",
"@types/semver": "catalog:dev",
"@vitejs/plugin-react": "catalog:dev",
"@vitest/eslint-plugin": "catalog:dev",
"cross-env": "catalog:dev",
"cspell": "catalog:dev",
"eslint": "catalog:dev",
"eslint-config-prettier": "catalog:dev",
"eslint-plugin-eslint-plugin": "catalog:dev",
"eslint-plugin-header": "catalog:dev",
"eslint-plugin-import": "catalog:dev",
"eslint-plugin-jsx-a11y": "catalog:dev",
"eslint-plugin-react": "catalog:dev",
"eslint-plugin-react-hooks": "catalog:dev",
"eslint-plugin-react-you-might-not-need-an-effect": "catalog:dev",
"eslint-plugin-regexp": "catalog:dev",
"globals": "catalog:dev",
"husky": "catalog:dev",
"jest-serializer-ansi-escapes": "catalog:dev",
"jest-serializer-react-helmet-async": "catalog:dev",
"jiti": "catalog:",
"jsdom": "catalog:dev",
"knip": "catalog:dev",
"lerna": "catalog:dev",
"lerna-changelog": "catalog:dev",
"lint-staged": "catalog:dev",
"lodash": "catalog:",
"npm-run-all2": "catalog:dev",
"oxfmt": "catalog:",
"pkg-pr-new": "catalog:dev",
"react": "catalog:",
"react-dom": "catalog:",
"react-helmet-async": "catalog:",
"rimraf": "catalog:dev",
"stylelint": "catalog:",
"stylelint-config-standard": "catalog:dev",
"stylelint-copyright": "workspace:*",
"syncpack": "catalog:dev",
"@typescript/native": "npm:typescript@~7.0.2",
"typescript": "npm:@typescript/typescript6@~6.0.2",
"typescript-eslint": "catalog:dev",
"vite": "catalog:dev",
"vitest": "catalog:dev"
},
"packageManager": "pnpm@12.3.4",
"engines": {
"node": ">=24.21",
"pnpm": ">=12.3.4"
}
}