-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathpackage.json
More file actions
141 lines (141 loc) · 7.04 KB
/
Copy pathpackage.json
File metadata and controls
141 lines (141 loc) · 7.04 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
{
"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",
"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:types": "yarn build:copy:ambient && tsc --build --builders 1",
"ci:build:legacy-types": "yarn workspaces foreach -WptivR -j 10 --from @data-client/react --from @data-client/rest --from @data-client/graphql 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: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": "./scripts/copywebsitetypes.sh",
"test": "NODE_ENV=test run jest",
"test:ci": "ANANSI_JEST_TYPECHECK=false yarn test --ci",
"test:coverage": "ANANSI_JEST_TYPECHECK=false yarn test --coverage",
"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:copy": "cd $INIT_CWD && copyfiles",
"g:lint": "cd $INIT_CWD && eslint"
},
"engines": {
"node": ">=14"
},
"browserslist": [
"extends @anansi/browserslist-config"
],
"devDependencies": {
"@anansi/babel-preset": "^6.2.19",
"@anansi/browserslist-config": "1.7.5",
"@anansi/eslint-plugin": "1.0.74",
"@anansi/jest-preset": "0.11.34",
"@babel/cli": "7.29.7",
"@babel/core": "7.29.7",
"@babel/node": "7.29.7",
"@babel/preset-flow": "^7.18.6",
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.26.1",
"@data-client/react": "workspace:*",
"@data-client/rest": "workspace:*",
"@data-client/test": "workspace:*",
"@react-native/jest-preset": "0.86.2",
"@react-navigation/native": "^7.0.0",
"@react-navigation/native-stack": "^7.0.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "16.3.2",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "13.3.3",
"@types/jest": "30.0.0",
"@types/node": "25.9.5",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
"@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": "9.39.5",
"globals": "^16.0.0",
"jest": "^30.0.0",
"jest-environment-jsdom": "^30.0.0",
"jscodeshift": "^17.3.0",
"mkdirp": "^3.0.0",
"nock": "13.3.1",
"npm-run-all": "^4.1.5",
"prettier": "3.9.5",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-native": "0.86.2",
"react-native-safe-area-context": "^5.0.0",
"react-native-screens": "^4.1.0",
"react-test-renderer": "19.2.3",
"rimraf": "^6.0.0",
"rollup": "4.62.2",
"temporal-polyfill": "^0.3.0",
"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.11.34",
"@isaacs/brace-expansion": ">=5.0.9",
"node-gyp": ">=11.0.0",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-test-renderer": "19.2.3",
"twig": "^2.0.0",
"webpackbar": "^7.0.0",
"jest-environment-node": "30.4.1",
"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"
},
"packageManager": "yarn@4.18.0",
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid",
"experimentalTernaries": true
}
}