Skip to content

Commit a06cf20

Browse files
committed
internal: Explicitly include only examples needed by CI (#3329)
1 parent 96bb786 commit a06cf20

File tree

6 files changed

+27
-38
lines changed

6 files changed

+27
-38
lines changed

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ jobs:
3131
name: Add examples/* to yarn workspace
3232
command: |
3333
npm pkg delete workspaces[4]
34+
npm pkg delete workspaces[3]
35+
npm pkg delete workspaces[2]
36+
npm pkg delete workspaces[1]
3437
npm pkg set 'workspaces[]'='examples/todo-app'
3538
npm pkg set 'workspaces[]'='examples/github-app'
39+
npm pkg set 'workspaces[]'='examples/normalizr-relationships'
3640
- restore_cache:
3741
keys:
3842
- v14-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
@@ -55,7 +59,9 @@ jobs:
5559
# explicitly list so we can ignore some directories that are not needed
5660
- project/.yarn
5761
- project/__tests__
58-
- project/examples
62+
- project/examples/todo-app
63+
- project/examples/github-app
64+
- project/examples/normalizr-relationships
5965
- project/node_modules
6066
- project/packages
6167
- project/scripts

examples/normalizr-github/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
"devDependencies": {
1717
"@babel/core": "7.26.0",
1818
"@babel/node": "7.26.0",
19-
"@types/babel__core": "^7",
20-
"rollup": "2.79.2",
21-
"rollup-plugin-babel": "^4.4.0",
22-
"rollup-plugin-commonjs": "^10.1.0",
23-
"rollup-plugin-filesize": "^9.1.2",
24-
"rollup-plugin-json": "^4.0.0",
25-
"rollup-plugin-node-resolve": "^5.2.0",
26-
"rollup-plugin-replace": "^2.2.0",
27-
"rollup-plugin-terser": "^7.0.2"
19+
"@types/babel__core": "^7"
2820
}
2921
}

examples/normalizr-redux/package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,14 @@
1515
"devDependencies": {
1616
"@babel/core": "7.26.0",
1717
"@babel/node": "7.26.0",
18-
"@data-client/normalizr": "workspace:*",
1918
"@octokit/rest": "21.0.2",
2019
"@types/babel__core": "^7",
2120
"inquirer": "^12.0.0",
2221
"redux": "5.0.1",
23-
"redux-thunk": "^2.3.0",
24-
"rollup": "2.79.2",
25-
"rollup-plugin-babel": "^4.4.0",
26-
"rollup-plugin-commonjs": "^10.1.0",
27-
"rollup-plugin-filesize": "^9.1.2",
28-
"rollup-plugin-json": "^4.0.0",
29-
"rollup-plugin-node-resolve": "^5.2.0",
30-
"rollup-plugin-replace": "^2.2.0",
31-
"rollup-plugin-terser": "^7.0.2"
22+
"redux-thunk": "^2.3.0"
3223
},
3324
"dependencies": {
34-
"@data-client/endpoint": "workspace:^"
25+
"@data-client/endpoint": "workspace:*",
26+
"@data-client/normalizr": "workspace:*"
3527
}
3628
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"build:bundle": "yarn workspaces foreach -Wptiv --no-private run build:bundle",
1818
"build:clean": "yarn workspaces foreach -Wpti --no-private run build:clean",
1919
"build:types": "yarn build:copy:ambient && tsc --build && yarn workspaces foreach -Wpti --no-private run build:legacy-types",
20+
"ci:build": "yarn ci:build:types && yarn workspaces foreach -Wptiv --no-private run build:lib",
2021
"ci:build:types": "yarn build:copy:ambient && tsc --build",
2122
"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",
2223
"ci:build-test-lib": "yarn workspace @data-client/test run build:lib && yarn workspace @data-client/test run build:bundle",

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@docusaurus/theme-live-codeblock": "^3.0.1",
4646
"@docusaurus/theme-mermaid": "^3.0.1",
4747
"@js-temporal/polyfill": "^0.4.4",
48+
"@mdx-js/react": "^3.1.0",
4849
"@monaco-editor/react": "^4.4.6",
4950
"@number-flow/react": "^0.4.0",
5051
"bignumber.js": "9.1.2",

yarn.lock

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5125,6 +5125,18 @@ __metadata:
51255125
languageName: node
51265126
linkType: hard
51275127

5128+
"@mdx-js/react@npm:^3.1.0":
5129+
version: 3.1.0
5130+
resolution: "@mdx-js/react@npm:3.1.0"
5131+
dependencies:
5132+
"@types/mdx": "npm:^2.0.0"
5133+
peerDependencies:
5134+
"@types/react": ">=16"
5135+
react: ">=16"
5136+
checksum: 10c0/381ed1211ba2b8491bf0ad9ef0d8d1badcdd114e1931d55d44019d4b827cc2752586708f9c7d2f9c3244150ed81f1f671a6ca95fae0edd5797fb47a22e06ceca
5137+
languageName: node
5138+
linkType: hard
5139+
51285140
"@mermaid-js/parser@npm:^0.3.0":
51295141
version: 0.3.0
51305142
resolution: "@mermaid-js/parser@npm:0.3.0"
@@ -21984,14 +21996,6 @@ __metadata:
2198421996
"@data-client/endpoint": "workspace:^"
2198521997
"@data-client/normalizr": "workspace:^"
2198621998
"@types/babel__core": "npm:^7"
21987-
rollup: "npm:2.79.2"
21988-
rollup-plugin-babel: "npm:^4.4.0"
21989-
rollup-plugin-commonjs: "npm:^10.1.0"
21990-
rollup-plugin-filesize: "npm:^9.1.2"
21991-
rollup-plugin-json: "npm:^4.0.0"
21992-
rollup-plugin-node-resolve: "npm:^5.2.0"
21993-
rollup-plugin-replace: "npm:^2.2.0"
21994-
rollup-plugin-terser: "npm:^7.0.2"
2199521999
languageName: unknown
2199622000
linkType: soft
2199722001

@@ -22001,21 +22005,13 @@ __metadata:
2200122005
dependencies:
2200222006
"@babel/core": "npm:7.26.0"
2200322007
"@babel/node": "npm:7.26.0"
22004-
"@data-client/endpoint": "workspace:^"
22008+
"@data-client/endpoint": "workspace:*"
2200522009
"@data-client/normalizr": "workspace:*"
2200622010
"@octokit/rest": "npm:21.0.2"
2200722011
"@types/babel__core": "npm:^7"
2200822012
inquirer: "npm:^12.0.0"
2200922013
redux: "npm:5.0.1"
2201022014
redux-thunk: "npm:^2.3.0"
22011-
rollup: "npm:2.79.2"
22012-
rollup-plugin-babel: "npm:^4.4.0"
22013-
rollup-plugin-commonjs: "npm:^10.1.0"
22014-
rollup-plugin-filesize: "npm:^9.1.2"
22015-
rollup-plugin-json: "npm:^4.0.0"
22016-
rollup-plugin-node-resolve: "npm:^5.2.0"
22017-
rollup-plugin-replace: "npm:^2.2.0"
22018-
rollup-plugin-terser: "npm:^7.0.2"
2201922015
languageName: unknown
2202022016
linkType: soft
2202122017

@@ -25452,6 +25448,7 @@ __metadata:
2545225448
"@docusaurus/theme-live-codeblock": "npm:^3.0.1"
2545325449
"@docusaurus/theme-mermaid": "npm:^3.0.1"
2545425450
"@js-temporal/polyfill": "npm:^0.4.4"
25451+
"@mdx-js/react": "npm:^3.1.0"
2545525452
"@monaco-editor/react": "npm:^4.4.6"
2545625453
"@number-flow/react": "npm:^0.4.0"
2545725454
"@tsconfig/docusaurus": "npm:^2.0.0"

0 commit comments

Comments
 (0)