Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
162 lines (162 loc) · 8.3 KB
/
Copy pathpackage.json
File metadata and controls
162 lines (162 loc) · 8.3 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"private": true,
"workspaces": [
"packages/*",
"examples/benchmark",
"examples/benchmark-react",
"examples/test-bundlesize",
"examples/normalizr-*",
"examples/coin-app",
"website",
"scripts/rollup-plugins"
],
"scripts": {
"changeset:version": "run changeset version && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install",
"changeset:publish": "run build && yarn workspaces foreach -A --no-private --topological npm publish --tolerate-republish --access public",
"changeset:version:beta": "run changeset version --snapshot beta && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install",
"changeset:publish:beta": "run build && yarn workspaces foreach -A --no-private --topological npm publish --tolerate-republish --access public --tag beta",
"lint": "eslint",
"check:typeperf": "node scripts/typeperf/check.mjs",
"format": "eslint --fix \"packages/*/src/**/*.{js,ts,tsx,cts}\"",
"clean:types": "rimraf packages/*/*.tsbuildinfo",
"build": "yarn build:types && yarn workspaces foreach -Wptiv --no-private run build",
"build:bundle": "yarn workspaces foreach -Wptiv --no-private run build:bundle",
"build:clean": "yarn workspaces foreach -Wpti --no-private run build:clean",
"build:types": "yarn build:copy:ambient && tsc --build --builders 1 && yarn workspaces foreach -Wpti --no-private run build:legacy-types",
"ci:build": "yarn ci:build:types && yarn workspaces foreach -Wptiv --no-private run build:lib",
"ci:build:setup": "run-p ci:build:types ci:build-test-lib",
"ci:build:setup:esmodule": "run-p ci:build:types-and-legacy ci:build-test-lib",
"ci:build:types-and-legacy": "yarn ci:build:types && yarn ci:build:legacy-types",
"ci:build:types": "yarn build:copy:ambient && tsc --build --builders 1",
"ci:build:legacy-types": "yarn workspaces foreach -Wpiv --include @data-client/endpoint --include @data-client/normalizr --include @data-client/rest run build:legacy-types",
"ci:build-test-lib": "yarn workspace @data-client/core run build:lib && yarn workspace @data-client/test run build:lib && yarn workspace @data-client/test run build:bundle",
"ci:build:website": "run-p ci:build:types ci:build:website-lib",
"ci:build:website-lib": "yarn workspaces foreach -WptivR --from rdc-website --no-private run build:lib",
"ci:build:esmodule": "yarn workspaces foreach -WptivR --from @data-client/react --from @data-client/rest --from @data-client/graphql run build:lib && yarn workspace @data-client/normalizr run build:js:node && yarn workspace @data-client/endpoint run build:js:node",
"ci:build:bundlesize": "yarn workspaces foreach -Wptiv --no-private run build:lib && yarn workspace test-bundlesize run build:sizecompare",
"build:benchmark": "yarn workspaces foreach -WptivR --from @data-client/core --from @data-client/endpoint --from @data-client/normalizr run build:lib && yarn workspace example-benchmark run build",
"build:benchmark-react": "yarn workspaces foreach -WptivR --from @data-client/core --from @data-client/endpoint --from @data-client/react --from @data-client/rest run build:lib && yarn workspace example-benchmark-react run build",
"build:copy:ambient": "mkdirp ./packages/endpoint/lib && copyfiles --flat ./packages/endpoint/src/schema.d.ts ./packages/endpoint/lib/ && copyfiles --flat ./packages/endpoint/src/endpoint.d.ts ./packages/endpoint/lib/ && mkdirp ./packages/rest/lib && copyfiles --flat ./packages/rest/src/RestEndpoint.d.ts ./packages/rest/lib && copyfiles --flat ./packages/rest/src/next/RestEndpoint.d.ts ./packages/rest/lib/next && mkdirp ./packages/react/lib && copyfiles --flat ./packages/react/src/server/redux/redux.d.ts ./packages/react/lib/server/redux",
"copy:websitetypes": "yarn ci:build:types && ./scripts/copywebsitetypes.sh",
"build:skills": "yarn workspace rdc-website build:skills",
"check:doc-examples": "yarn workspace rdc-website check:doc-examples",
"check:browser-snippets": "yarn workspace rdc-website check:browser-snippets",
"build:agent-rules": "node scripts/agent-rules.mjs",
"blog:publish": "node website/scripts/blog-publish.mjs",
"test": "NODE_ENV=test run jest",
"test:ci": "ANANSI_JEST_TYPECHECK=false yarn test --ci",
"test:coverage": "ANANSI_JEST_TYPECHECK=false yarn test --coverage --selectProjects ReactDOM Node --coverageThreshold='{\"global\":{\"statements\":98,\"branches\":96,\"functions\":90,\"lines\":98}}'",
"prepare": "yarn build:copy:ambient && tsc --build --builders 1",
"prepack": "yarn prepare",
"prepublishOnly": "yarn workspaces foreach -Wpti --no-private run build:legacy-types",
"g:babel": "cd $INIT_CWD && babel --root-mode upward src --source-maps inline --extensions '.ts,.tsx,.cts,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"g:babel-lite": "cd $INIT_CWD && babel --root-mode upward src --source-maps inline --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"g:rollup": "cd $INIT_CWD && rollup -c",
"g:clean": "cd $INIT_CWD && rimraf lib ts3.4 legacy dist *.tsbuildinfo",
"g:downtypes": "cd $INIT_CWD && downlevel-dts",
"g:tsc": "cd $INIT_CWD && tsc",
"g:legacy-types": "cd $INIT_CWD && ../../scripts/build-legacy-types.sh",
"g:runs": "cd $INIT_CWD && run-s",
"g:runp": "cd $INIT_CWD && run-p",
"g:copy": "cd $INIT_CWD && copyfiles",
"g:lint": "cd $INIT_CWD && eslint"
},
"engines": {
"node": "^22.18.0 || >=24.11.0"
},
"browserslist": [
"extends @anansi/browserslist-config"
],
"devDependencies": {
"@anansi/babel-preset": "^7.0.0",
"@anansi/browserslist-config": "1.7.7",
"@anansi/eslint-plugin": "2.0.0",
"@anansi/jest-preset": "0.12.0",
"@babel/cli": "8.0.6",
"@babel/core": "8.0.7",
"@babel/node": "8.0.6",
"@babel/preset-flow": "^8.0.0",
"@changesets/changelog-github": "^1.0.1",
"@changesets/cli": "^3.0.3",
"@data-client/react": "workspace:*",
"@data-client/rest": "workspace:*",
"@data-client/test": "workspace:*",
"@docusaurus/eslint-plugin": "3.10.2",
"@react-native/jest-preset": "0.88.0",
"@react-navigation/native": "^7.0.0",
"@react-navigation/native-stack": "^7.0.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^7.0.0",
"@testing-library/react": "16.3.3",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "14.1.0",
"@types/jest": "30.0.0",
"@types/node": "26.6.5",
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"@typescript/native": "npm:typescript@7.0.2",
"babel-plugin-module-resolver": "5.0.3",
"babel-plugin-syntax-hermes-parser": "^0.37.0",
"benchmark": "^2.1.4",
"copyfiles": "^2.4.1",
"core-js": "^3.40.0",
"downlevel-dts": "^0.10.0",
"eslint": "10.12.0",
"globals": "^16.0.0",
"jest": "^30.0.0",
"jest-environment-jsdom": "^30.0.0",
"mkdirp": "^3.0.0",
"nock": "13.3.1",
"npm-run-all": "^4.1.5",
"prettier": "3.9.10",
"react": "19.3.1",
"react-dom": "19.3.1",
"react-live": "^5.0.0",
"react-native": "0.88.0",
"react-native-safe-area-context": "^5.0.0",
"react-native-screens": "^4.1.0",
"react-test-renderer": "19.3.1",
"rimraf": "^6.0.0",
"rollup": "4.64.8",
"temporal-polyfill": "^1.0.0",
"test-renderer": "1.3.1",
"typescript": "npm:@typescript/typescript6@6.0.2",
"whatwg-fetch": "3.0.0"
},
"resolutions": {
"whatwg-fetch": "3.0.0",
"downlevel-dts/typescript": "4.9.0-dev.20220903",
"@anansi/jest-preset": "0.12.0",
"@isaacs/brace-expansion": ">=5.0.9",
"node-gyp": ">=11.0.0",
"react": "19.3.1",
"react-dom": "19.3.1",
"react-test-renderer": "19.3.1",
"twig": "^2.0.0",
"webpackbar": "^7.0.0",
"jest-environment-node": "30.5.2",
"tar": ">=7.5.22",
"serialize-javascript": ">=7.0.5",
"dompurify": ">=3.4.13",
"editorconfig/minimatch": "9.0.9",
"socks": ">=2.8.9",
"uuid": ">=11.1.1",
"sigstore": ">=4.1.1",
"qs": ">=6.16.0",
"rollup-plugin-filesize/pacote": "^21.5.1",
"@types/react@npm:*": "19.3.0",
"serve/compression": "1.8.2",
"simple-git": ">=4.0.2",
"tinypool": ">=2.1.2",
"postcss-selector-parser": "^7.1.6",
"happy-dom": "^21.0.4"
},
"packageManager": "yarn@4.18.1",
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid",
"experimentalTernaries": true
}
}