Skip to content

Commit

Permalink
build: set provenance in publishConfig
Browse files Browse the repository at this point in the history
* build: set provenance in publishConfig
  • Loading branch information
gmeligio authored Jan 20, 2024
1 parent 54b40ae commit b803a7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion .npmrc

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

6 changes: 5 additions & 1 deletion package.json

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

5 changes: 4 additions & 1 deletion src/patch/JsiiProjectPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ export class JsiiProjectPatch extends JsiiProject {
// https://github.com/TypeStrong/ts-node/issues/2077
this.addDevDeps('ts-node@github:TypeStrong/ts-node#semver:v11.0.0-beta.1');

// NPM metadata
this.addKeywords('projen');

// .npmrc
// TODO: Submit to upstream projen with some sort of logic like `npmProvenance`
this.npmrc.addConfig('provenance', 'true');
this.tryFindObjectFile('package.json')?.patch(JsonPatch.add('/publishConfig/provenance', true));

const versionFilePath = 'version.json';

Expand Down

0 comments on commit b803a7f

Please sign in to comment.