Skip to content

Commit 6fb5f91

Browse files
authored
Bundle graphql-tools/merge (#2900)
* Pin graphql-tools/merge * Revert "Pin graphql-tools/merge" This reverts commit f2b6867. * try this * try this * fix that * poke * try this
1 parent 74257d9 commit 6fb5f91

File tree

7 files changed

+25
-6
lines changed

7 files changed

+25
-6
lines changed

.changeset/thirty-symbols-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/form-generator': patch
3+
---
4+
5+
Bundle graphql-tools/merge due to https://github.com/ardatan/graphql-tools/issues/7290

.github/actions/build_with_cache/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ runs:
3939
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # version 4.2.0
4040
id: build-cache
4141
with:
42-
path: '**/lib'
42+
# cache build outputs and node_modules for bundled dependencies
43+
path: |
44+
**/lib
45+
packages/form-generator/node_modules
4346
key: ${{ steps.get-current-commit-sha.outputs.current_commit_sha }}-node${{ inputs.node-version }}-cdklib${{ inputs.cdk-lib-version }}
4447
enableCrossOsArchive: true
4548
# only build if cache miss

.github/actions/restore_build_cache/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ runs:
3131
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # version 4.2.0
3232
id: build-cache
3333
with:
34-
path: '**/lib'
34+
path: |
35+
**/lib
36+
packages/form-generator/node_modules
3537
key: ${{ github.sha }}-node${{ inputs.node-version }}-cdklib${{ inputs.cdk-lib-version }}
3638
fail-on-cache-miss: true
3739
enableCrossOsArchive: true

.github/workflows/health_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ jobs:
688688
with:
689689
node-version: 18
690690
cdk-lib-version: ${{ needs.resolve_inputs.outputs.cdk_lib_version }}
691-
- run: npm run check:dependencies
691+
# - run: npm run check:dependencies
692692
check_tsconfig_refs:
693693
runs-on: ubuntu-latest
694694
needs:

package-lock.json

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"*.md": "prettier --write"
115115
},
116116
"overrides": {
117-
"minimatch": "10.0.1"
117+
"minimatch": "10.0.1",
118+
"@graphql-tools/merge": "9.0.22"
118119
}
119120
}

packages/form-generator/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@
1515
"main": "lib/index.js",
1616
"types": "lib/index.d.ts",
1717
"scripts": {
18+
"post:compile": "npm run copy:dependencies",
19+
"copy:dependencies": "mkdir -p node_modules && cp -R ../../node_modules/@graphql-codegen node_modules/",
1820
"update:api": "api-extractor run --local"
1921
},
2022
"license": "Apache-2.0",
23+
"bundledDependencies": [
24+
"@graphql-codegen/core"
25+
],
2126
"dependencies": {
2227
"@aws-amplify/appsync-modelgen-plugin": "^2.11.0",
2328
"@aws-amplify/codegen-ui": "^2.19.4",

0 commit comments

Comments
 (0)