Skip to content

Commit

Permalink
build: upgrade pnpm to v8
Browse files Browse the repository at this point in the history
* build: upgrade pnpm to v8
  • Loading branch information
gmeligio authored Jan 2, 2024
1 parent 88a02e7 commit 03bae26
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 44 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml

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

4 changes: 2 additions & 2 deletions .github/workflows/release.yml

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

1 change: 1 addition & 0 deletions .npmrc

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

23 changes: 17 additions & 6 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { RenovatebotOptions } from 'projen';
import { JsiiProjectOptions } from 'projen/lib/cdk';
import { JestReporter, NodePackageManager, TrailingComma, Transform, UpdateSnapshot } from 'projen/lib/javascript';
import {
JestReporter,
NodePackageManager,
NpmAccess,
TrailingComma,
Transform,
UpdateSnapshot,
} from 'projen/lib/javascript';
import { TypeScriptProjectOptions } from 'projen/lib/typescript';
import { JsiiProjectPatch, JsiiProjectPatchOptions } from './src/patch';

Expand Down Expand Up @@ -39,6 +46,7 @@ const buildOptions: Pick<
| 'jsiiVersion'
| 'package'
| 'packageManager'
| 'pnpmVersion'
| 'projenrcTs'
| 'projenrcTsOptions'
> = {
Expand All @@ -56,10 +64,11 @@ const buildOptions: Pick<
// https://github.com/cdklabs/publib/issues/969
// Currently, the bundledDependencies add hard links including .pnpm folder and other folders, making the publishing the fail with error 415
// https://github.com/gmeligio/project-gen/actions/runs/7351465607/job/20015330761
// {
// name: 'node-linker',
// value: 'hoisted',
// },
// TODO: https://github.com/winglang/wing/pull/3187
{
name: 'node-linker',
value: 'hoisted',
},
// {
// name: 'symlink',
// value: 'false',
Expand All @@ -71,6 +80,7 @@ const buildOptions: Pick<
],
package: true,
packageManager: NodePackageManager.PNPM,
pnpmVersion: '8',
projenrcTs: true,
// projenrcTsOptions: {
// swc: true,
Expand Down Expand Up @@ -115,9 +125,10 @@ const dependencyOptions: Pick<TypeScriptProjectOptions, 'bundledDeps' | 'devDeps

const releaseOptions: Pick<
TypeScriptProjectOptions,
'defaultReleaseBranch' | 'publishTasks' | 'release' | 'releaseToNpm'
'defaultReleaseBranch' | 'npmAccess' | 'publishTasks' | 'release' | 'releaseToNpm'
> = {
defaultReleaseBranch: 'main',
npmAccess: NpmAccess.PUBLIC,
publishTasks: true,
release: true,
releaseToNpm: true,
Expand Down
3 changes: 3 additions & 0 deletions package.json

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

38 changes: 5 additions & 33 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/patch/JsiiProjectPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class JsiiProjectPatch extends JsiiProject {

// const releaseWorkflowPath = '.github/workflows/release.yml';
// const releaseWorkflow = this.tryFindObjectFile(releaseWorkflowPath);
// releaseWorkflow?.addOverride('jobs.release_npm.steps.7.env.NPM_DIST_TAG', 'asdas');
// releaseWorkflow?.addOverride('jobs.release_npm.steps.8.env.run', 'asdas');
// releaseWorkflow?.addOverride('jobs.release_npm.steps.0.name', 'asdas');
}

Expand Down

0 comments on commit 03bae26

Please sign in to comment.