-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: decouple `workflowNodeVersion` from `minNodeVersion` `workflowNodeVersion` is copied from `minNodeVersion` if not set. This incentivizes undesirable behavior: `minNodeVersion` should almost never need to be set, while `workflowNodeVersion` might need to be set. As a result, users might set `minNodeVersion` while looking for the other version. Fix that in the types that wrap projen types here, in preparation of an upstream projen fix. * chore: self mutation Signed-off-by: github-actions <[email protected]> * Update documentation for copied interfaces * Also do the same for the builtin `CdkConstructLibrary` class * Fix build * chore: self mutation Signed-off-by: github-actions <[email protected]> --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: github-actions <[email protected]>
- Loading branch information
Showing
17 changed files
with
8,147 additions
and
4,337 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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { PrimitiveType } from '@jsii/spec'; | ||
import { typescript } from 'projen'; | ||
import { JsiiInterface } from './jsii-extend-interface'; | ||
|
||
export function generateCdkConstructLibraryOptions(project: typescript.TypeScriptProject) { | ||
new JsiiInterface(project, { | ||
name: 'ModifiedProjenCdkConstructLibraryOptions', | ||
fqn: 'cdklabs-projen-project-types.ModifiedProjenCdkConstructLibraryOptions', | ||
filePath: 'src/cdk-options.ts', | ||
extends: 'projen.awscdk.AwsCdkConstructLibraryOptions', | ||
properties: [ | ||
{ | ||
name: 'minNodeVersion', | ||
optional: true, | ||
type: { primitive: PrimitiveType.String }, | ||
docs: { | ||
summary: 'Minimum Node.js version to require via package.json `engines` (inclusive).', | ||
remarks: [ | ||
'', | ||
'Only set this if your package will not work properly on specific (older?)', | ||
'Node versions.', | ||
'', | ||
].join('\n'), | ||
default: '- no "engines" specified', | ||
}, | ||
}, | ||
{ | ||
name: 'workflowNodeVersion', | ||
optional: true, | ||
type: { primitive: PrimitiveType.String }, | ||
docs: { | ||
summary: 'The node version to use in GitHub workflows.', | ||
default: '\'lts/*\'', | ||
}, | ||
}, | ||
], | ||
}); | ||
} | ||
|
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.