Skip to content

Commit

Permalink
feat(node-npmrc): specify node version inside .npmrc in order for pnp…
Browse files Browse the repository at this point in the history
…m to honor it (#78)

* feat(node-npmrc): specify node version inside .npmrc in order for pnpm to honor it

* chore: self mutation

Signed-off-by: github-actions <github-actions@github.com>

---------

Signed-off-by: github-actions <github-actions@github.com>
Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
gplassard and github-actions committed Jan 29, 2024
1 parent 030050a commit 8d56c96
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc

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

1 change: 1 addition & 0 deletions src/typescript/TypescriptApplicationProject.ts
Expand Up @@ -77,6 +77,7 @@ export class TypescriptApplicationProject extends TypeScriptProject {
};
super(typescriptProjectOptions);
this.npmrc.addRegistry('https://npm.pkg.github.com', '@gplassard');
this.npmrc.addConfig('use-node-version', nodeVersion(options));
// we get it through a transitive dependency to @gplassard/projen-extensions, maybe should be a peer dependency instead
new CustomGitignore(this, options.customGitignore);

Expand Down

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

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

0 comments on commit 8d56c96

Please sign in to comment.