Skip to content

Commit

Permalink
fix: update project.json if ejected
Browse files Browse the repository at this point in the history
  • Loading branch information
agdimech committed Jun 28, 2024
1 parent ea5310a commit fdb6b8a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ from aws_pdk.pdk_nag import PDKNag, AwsPrototypingChecks
from {{{moduleName}}}.stacks.application_stack import ApplicationStack

app = PDKNag.app(nag_packs=[AwsPrototypingChecks()])
ApplicationStack(app, "{{{stackName}}}-sandbox", Environment(
ApplicationStack(app, "{{{stackName}}}-sandbox", env=Environment(
account=os.environ["CDK_DEFAULT_ACCOUNT"],
region=os.environ["CDK_DEFAULT_REGION"]
))
{{#stages}}
ApplicationStack(app, "{{{stackName}}}-{{{stageName}}}", Environment(
ApplicationStack(app, "{{{stackName}}}-{{{stageName}}}", env=Environment(
account="{{{account}}}",
region="{{{region}}}"
))
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/monorepo/src/components/nx-project/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ export class NxProject extends Component {
})
.forEach((task) => {
// Non-NodeProject don't have package.json so exec bubbles to the root.
const command = isNodeProject
const command = this.project.ejected
? `scripts/run-task ${task.name}`
: isNodeProject
? NodePackageUtils.command.projen(packageManager, task.name)
: NodePackageUtils.command.downloadExec(
packageManager,
Expand Down

0 comments on commit fdb6b8a

Please sign in to comment.