Skip to content

Commit

Permalink
fix: add constructs as devDependency if cdk is a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
joelcox22 committed Apr 27, 2024
1 parent 419a0d8 commit 0c3ff9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lint/config/cdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default function configure() {
// add aws-cdk cli to the project dependencies as well if needed
packageJson.devDependencies['aws-cdk'] = packageJson.devDependencies['aws-cdk-lib'];
}
if (!('constructs' in packageJson.devDependencies)) {
packageJson.devDependencies['constructs'] = '^10.0.0';
}
if (!fs.existsSync('cdk.json')) {
const cdkJson = util.readJson('cdk.json', {
app: 'tsx cdk/index.ts',
Expand Down

0 comments on commit 0c3ff9d

Please sign in to comment.