Skip to content

fix(create-rslib): add pnpm config to Svelte templates - #1856

Merged
Timeless0911 merged 2 commits into
mainfrom
david/fix-svelte-pnpm-config
Aug 19, 2026
Merged

fix(create-rslib): add pnpm config to Svelte templates#1856
Timeless0911 merged 2 commits into
mainfrom
david/fix-svelte-pnpm-config

Conversation

@Timeless0911

Copy link
Copy Markdown
Contributor

Summary

Generated Svelte library projects need an explicit build-script policy for svelte-preprocess when using pnpm. This PR adds pnpm-only workspace configuration to both JavaScript and TypeScript Svelte templates and verifies the generated policy; npm and other package managers remain unaffected.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@Timeless0911
Timeless0911 marked this pull request as ready for review August 19, 2026 07:28
Copilot AI lite review requested due to automatic review settings August 19, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a pnpm workspace policy file to the Svelte create-rslib templates so pnpm has an explicit build-script policy for svelte-preprocess, and updates the create-rslib template test helper to validate that the generated project includes the expected policy file.

Changes:

  • Add pnpm-workspace.yaml to the Svelte TS and JS templates with an allowBuilds entry for svelte-preprocess.
  • Update the template generation validation helper to assert the pnpm-workspace.yaml content for Svelte templates.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/create-rslib/test/helper.ts Verifies generated Svelte projects include the expected pnpm-workspace.yaml policy content.
packages/create-rslib/template-svelte-ts/pnpm-workspace.yaml Introduces pnpm allowBuilds policy for svelte-preprocess in the TS Svelte template.
packages/create-rslib/template-svelte-js/pnpm-workspace.yaml Introduces pnpm allowBuilds policy for svelte-preprocess in the JS Svelte template.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7370cb9a96

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/create-rslib/template-svelte-js/pnpm-workspace.yaml
@Timeless0911
Timeless0911 merged commit c4b1e4a into main Aug 19, 2026
11 checks passed
@Timeless0911
Timeless0911 deleted the david/fix-svelte-pnpm-config branch August 19, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants