-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): pin version of cssstyle to allow upgrade-main to succeed (#…
…987) Signed-off-by: team-tf-cdk <[email protected]> Co-authored-by: team-tf-cdk <[email protected]>
- Loading branch information
1 parent
6d8b2f9
commit 00f0d0e
Showing
18 changed files
with
1,433 additions
and
1,723 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,6 @@ const project = new CdktfAwsCdkProject({ | |
projenrcTs: true, | ||
}); | ||
|
||
project.package.addPackageResolutions("@types/[email protected]"); | ||
|
||
// Use pinned versions of github actions | ||
Object.entries(githubActionPinnedVersions).forEach(([name, sha]) => { | ||
project.github?.actions.set(name, `${name}@${sha}`); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,40 +47,43 @@ export class CdktfConfig { | |
project.addDevDeps("@typescript-eslint/eslint-plugin@^6"); | ||
project.addDevDeps("@typescript-eslint/parser@^6"); | ||
|
||
// This is a temporary workaround to allow upgrade-main to succeed until we upgrade to Node 20 | ||
project.package.addPackageResolutions(`[email protected]`); | ||
|
||
// for update-supported-types script | ||
project.addDevDeps("@aws-sdk/client-cloudformation@^3.36.0"); | ||
project.setScript( | ||
"fetch:types", | ||
`mkdir -p src/awscc && rm -rf ./src/awscc/* && node ./scripts/update-supported-types.js`, | ||
`mkdir -p src/awscc && rm -rf ./src/awscc/* && node ./scripts/update-supported-types.js` | ||
); | ||
project.addPackageIgnore("scripts"); | ||
|
||
project.setScript( | ||
"fetch", | ||
`mkdir -p src/aws && rm -rf ./src/aws/* && cdktf get && cp -R .gen/providers/${providerName}/* ./src/aws/` + | ||
` && mkdir -p src/time && rm -rf ./src/time/* && cp -R .gen/providers/time/* ./src/time/`, | ||
` && mkdir -p src/time && rm -rf ./src/time/* && cp -R .gen/providers/time/* ./src/time/` | ||
); | ||
project.setScript( | ||
"commit", | ||
'git add -A && git commit -am "Update provider" || echo "No changes to commit"', | ||
'git add -A && git commit -am "Update provider" || echo "No changes to commit"' | ||
); | ||
// eslint-disable-next-line quotes | ||
project.setScript( | ||
"should-release", | ||
`! git diff --exit-code v$(cat version.json | jq -r '.version') ./src ./package.json`, | ||
`! git diff --exit-code v$(cat version.json | jq -r '.version') ./src ./package.json` | ||
); | ||
project.setScript( | ||
"prebump", | ||
"yarn fetch && yarn compile && yarn run commit && yarn run should-release", | ||
"yarn fetch && yarn compile && yarn run commit && yarn run should-release" | ||
); | ||
project.setScript( | ||
"compile", | ||
'NODE_OPTIONS="--max-old-space-size=7516" jsii --silence-warnings=reserved-word', | ||
'NODE_OPTIONS="--max-old-space-size=7516" jsii --silence-warnings=reserved-word' | ||
); | ||
|
||
project.setScript( | ||
"build-provider", | ||
"yarn fetch && yarn compile && yarn docgen", | ||
"yarn fetch && yarn compile && yarn docgen" | ||
); | ||
project.setScript("test", "jest"); | ||
|
||
|
@@ -136,7 +139,7 @@ export class CdktfConfig { | |
project.annotateGenerated("/docs/*.md"); | ||
|
||
[project.compileTask, project.testTask].forEach((task) => | ||
task.env("NODE_OPTIONS", "--max-old-space-size=6144"), | ||
task.env("NODE_OPTIONS", "--max-old-space-size=6144") | ||
); | ||
project.testTask.env("DEBUG", "jest"); | ||
|
||
|
@@ -177,19 +180,19 @@ export class CdktfConfig { | |
"yarn install --check-files --ignore-engines && yarn upgrade --ignore-engines", | ||
{ | ||
cwd: "examples/typescript-manual-mapping", | ||
}, | ||
} | ||
); | ||
updateExamples.exec( | ||
"yarn install --check-files --ignore-engines && yarn upgrade --ignore-engines", | ||
{ | ||
cwd: "examples/typescript-step-functions", | ||
}, | ||
} | ||
); | ||
updateExamples.exec( | ||
"yarn install --check-files --ignore-engines && yarn upgrade --ignore-engines", | ||
{ | ||
cwd: "examples/typescript-step-functions-mixed", | ||
}, | ||
} | ||
); | ||
|
||
// Consider turning on the below if Dependabot is not working for us anymore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.