Skip to content

fix: correct allowBuilds YAML syntax in pnpm-workspace.yaml generation#4733

Merged
mcollina merged 2 commits into
platformatic:mainfrom
GiladShoham:fix/allowBuilds-yaml-syntax
Apr 15, 2026
Merged

fix: correct allowBuilds YAML syntax in pnpm-workspace.yaml generation#4733
mcollina merged 2 commits into
platformatic:mainfrom
GiladShoham:fix/allowBuilds-yaml-syntax

Conversation

@GiladShoham
Copy link
Copy Markdown
Contributor

The allowBuilds field in the generated pnpm-workspace.yaml used list syntax (- better-sqlite3) instead of the correct map key syntax ( better-sqlite3), producing invalid YAML.

Fixed in both the generator (lib/index.js) and the corresponding test assertion.

Fixes #4679

The `allowBuilds` field was generated with `- better-sqlite3` (list syntax)
instead of `  better-sqlite3` (map key syntax), producing invalid YAML.

Fixes platformatic#4679

Signed-off-by: Gilad Shoham <shoham.gilad@gmail.com>
`better-sqlite3: true` is the correct pnpm allowBuilds syntax.

Signed-off-by: Gilad Shoham <shoham.gilad@gmail.com>
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 66f3426 into platformatic:main Apr 15, 2026
155 checks passed
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.

Watt scaffold should include better-sqlite3 in onlyBuiltDependencies for pnpm

2 participants