Skip to content

Commit

Permalink
Merge branch 'main' into fix/pkg_mgr_support
Browse files Browse the repository at this point in the history
  • Loading branch information
agdimech authored Dec 5, 2023
2 parents a7f0ced + dea1f5f commit caffe49
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 15 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/blueprints/blueprint-builder/package.json

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

2 changes: 1 addition & 1 deletion packages/blueprints/blueprint/package.json

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

13 changes: 13 additions & 0 deletions packages/blueprints/blueprint/src/blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,19 @@ export class Blueprint extends Project {
}
maxIdlength = Math.max(maxIdlength, FALLBACK_STRATEGY_ID.length);

/**
* copy all non-src file from proposedBundle into the resolved bundle
* only src is merge constructed.
*/
const supersetNonSourcePaths: string[] = filepathSet([proposedBundle], ['**/*', '!src/**']);
for (const filepath of supersetNonSourcePaths) {
const outputPath = path.join(this.outdir, filepath);
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
const filecontent = fs.readFileSync(path.join(proposedBundle, filepath));
fs.writeFileSync(outputPath, filecontent);
}


//2. construct the superset of files between [ancestorBundle, existingBundle, proposedBundle]/src
// only consider files under the source code 'src'
const supersetSourcePaths: string[] = filepathSet([ancestorBundle, existingBundle, proposedBundle], ['src/**']);
Expand Down
2 changes: 1 addition & 1 deletion packages/blueprints/sam-serverless-app/package.json

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

2 changes: 1 addition & 1 deletion packages/blueprints/test-blueprint/package.json

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

2 changes: 1 addition & 1 deletion packages/components/dev-environments/package.json

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

2 changes: 1 addition & 1 deletion packages/components/environments/package.json

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

2 changes: 1 addition & 1 deletion packages/components/source-repositories/package.json

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

2 changes: 1 addition & 1 deletion packages/components/workflows/package.json

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

2 changes: 1 addition & 1 deletion packages/top-level/codecatalyst-blueprints/package.json

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

2 changes: 1 addition & 1 deletion packages/utils/blueprint-cli/package.json

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

2 changes: 1 addition & 1 deletion packages/utils/projen-blueprint-component/package.json

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

2 changes: 1 addition & 1 deletion packages/utils/projen-blueprint/package.json

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

6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13682,9 +13682,9 @@ __metadata:
linkType: hard

"word-wrap@npm:~1.2.3":
version: 1.2.3
resolution: "word-wrap@npm:1.2.3"
checksum: 30b48f91fcf12106ed3186ae4fa86a6a1842416df425be7b60485de14bec665a54a68e4b5156647dec3a70f25e84d270ca8bc8cd23182ed095f5c7206a938c1f
version: 1.2.5
resolution: "word-wrap@npm:1.2.5"
checksum: f93ba3586fc181f94afdaff3a6fef27920b4b6d9eaefed0f428f8e07adea2a7f54a5f2830ce59406c8416f033f86902b91eb824072354645eea687dff3691ccb
languageName: node
linkType: hard

Expand Down

0 comments on commit caffe49

Please sign in to comment.