Skip to content

fix(create-frontend): skip scaffold install scripts when installed as dependency#888

Merged
yusasa16 merged 2 commits intodevfrom
fix/create-frontend-skip-scaffold-postinstall
Apr 9, 2026
Merged

fix(create-frontend): skip scaffold install scripts when installed as dependency#888
yusasa16 merged 2 commits intodevfrom
fix/create-frontend-skip-scaffold-postinstall

Conversation

@yusasa16
Copy link
Copy Markdown
Collaborator

@yusasa16 yusasa16 commented Apr 9, 2026

Problem

yarn create @d-zero/frontend can fail while installing @d-zero/scaffold because Yarn runs its postinstall (husky), but husky is not available when the package is pulled in as a dependency (exit 127).

Solution

Declare dependenciesMeta with built: false for @d-zero/scaffold so install scripts are skipped when it is only used as a template source for create-frontend.

References

… dependency

Yarn runs @d-zero/scaffold postinstall (husky) when resolving the template
dependency; husky is not installed for consumers, causing exit 127. Set
dependenciesMeta built false so only template files are used.

Made-with: Cursor
Required for yarn install --immutable; lockfile must reflect package.json
dependenciesMeta for @d-zero/scaffold.

Made-with: Cursor
@yusasa16 yusasa16 merged commit 2eec2ca into dev Apr 9, 2026
1 check passed
@yusasa16 yusasa16 deleted the fix/create-frontend-skip-scaffold-postinstall branch April 9, 2026 08:39
yusasa16 added a commit that referenced this pull request Apr 9, 2026
…/scaffold

Reverts #888. dependenciesMeta in published packages is ignored by Yarn v4; the fix had no effect.
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.

3 participants