Migrate typescript boilerplate from npm to pnpm#2
Merged
Conversation
Sets up a pnpm workspace (single package for now) so future boilerplates can be added to the same monorepo without re-plumbing tooling, and so a shared dependency catalog can be introduced later without more structural change. CI updated to install/run via pnpm.
This repo hosts boilerplates for multiple languages, not a single monorepo, so a root pnpm-workspace.yaml doesn't make sense. Move the packageManager pin and lockfile into typescript/ so it stays a self-contained pnpm project; CI updated accordingly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
typescript/from npm to pnpm, as a self-contained pnpm project — no repo-wide workspace. This repo hosts boilerplates for multiple languages, not a monorepo, so a rootpnpm-workspace.yaml/package.jsondoesn't make sense here.typescript/package.jsonnow pinspackageManager: pnpm@11.10.0typescript/package-lock.jsonwithtypescript/pnpm-lock.yaml.github/workflows/typescript.ymlto install/run via pnpm (pnpm/action-setup@v6,actions/setup-nodepnpm cache,pnpm install --frozen-lockfile), scoped totypescript/Test plan
pnpm installfrom a clean state insidetypescript/pnpm run lint/pnpm run typecheck/pnpm run build(+ run compileddist/index.js)pnpm testpnpm run dev(nativenode --watch src/index.ts)