Skip to content

Commit

Permalink
build: set jsii-pacmak to use pnpm pack instead of npm's
Browse files Browse the repository at this point in the history
* build: set jsii-pacmak to use pnpm pack instead of npm's
  • Loading branch information
gmeligio authored Jan 8, 2024
1 parent 930232a commit d95de2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .projen/tasks.json

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

5 changes: 5 additions & 0 deletions src/patch/JsiiProjectPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ export class JsiiProjectPatch extends JsiiProject {
// Dependency overrides
this.package.addPackageResolutions('jsii-rosetta@~5.3.0');

// JSII tasks
// TODO: Contribute to upstream projen packCommand to be able to override it when calling jsii-packmak
const packageJsTask = this.tasks.tryFind('package:js');
packageJsTask?.reset("jsii-pacmak -v --pack-command 'pnpm pack' --target js");

const versionFilePath = 'version.json';

const renovateGithubActionsManager = 'github-actions';
Expand Down

0 comments on commit d95de2c

Please sign in to comment.