Skip to content

Commit

Permalink
fix: change packing to use npm pack to included nested node_modules (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
agdimech authored May 23, 2024
1 parent c9be133 commit 58497d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/pdk/.projen/tasks.json

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

12 changes: 7 additions & 5 deletions projenrc/projects/pdk-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import {

const PACK_COMMAND = [
"rm -rf build",
"pnpm --config.shamefully-hoist=true --config.hoist=true --config.symlinks=false --config.shared-workspace-lockfile=false --filter=@aws/pdk deploy build",
"pnpm --config.shamefully-hoist=true --config.node-linker=hoisted --config.hoist=true --config.symlinks=false --config.shared-workspace-lockfile=false --filter=@aws/pdk -P deploy build",
"cd build",
"pnpm pack",
"npm pack",
"mv *.tgz ..",
"cd ..",
"rm -rf build",
Expand Down Expand Up @@ -349,7 +349,9 @@ class PDKRelease extends Release {
private updateJavaPackageTask = (project: Project): void => {
project.tasks
.tryFind("package:java")
?.reset(`jsii-pacmak -v --target java --pack-command='${PACK_COMMAND}'`);
?.reset(
`jsii-pacmak -vvvv --target java --pack-command='${PACK_COMMAND}'`
);
};

/**
Expand All @@ -360,7 +362,7 @@ class PDKRelease extends Release {
private updateJsPackageTask = (project: Project): void => {
project.tasks
.tryFind("package:js")
?.reset(`jsii-pacmak -v --target js --pack-command='${PACK_COMMAND}'`);
?.reset(`jsii-pacmak -vvvv --target js --pack-command='${PACK_COMMAND}'`);
};

/**
Expand All @@ -372,7 +374,7 @@ class PDKRelease extends Release {
project.tasks
.tryFind("package:python")
?.reset(
`jsii-pacmak -v --target python --pack-command='${PACK_COMMAND}'`
`jsii-pacmak -vvvv --target python --pack-command='${PACK_COMMAND}'`
);
};
}

0 comments on commit 58497d9

Please sign in to comment.