fix(env): ensure @guildpass/env builds its dist output - #356
Merged
Lakes41 merged 1 commit intoAug 21, 2026
Conversation
packages/env was missing a `prepare` script (unlike its sibling packages webhook-utils and integration-client), so `pnpm install` never built it and dist/ didn't exist for downstream consumers like apps/dashboard, causing "Module not found" errors on imports such as ./schemas/dashboard.js and ./validate.js. Also make emitDeclarationOnly explicit in tsconfig.json alongside the existing declaration/outDir settings. Fixes Adamantine-guild#334
4 tasks
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
packages/envwas missing apreparescript (unlike sibling packageswebhook-utilsandintegration-client), sopnpm installnever built it anddist/didn't exist for downstream consumers likeapps/dashboard, causingModule not founderrors on imports such as./schemas/dashboard.jsand./validate.js.emitDeclarationOnly: falseexplicit inpackages/env/tsconfig.jsonalongside the existingdeclaration/outDirsettings, so JS emission isn't left implicit.Test plan
pnpm build -r --filter @guildpass/envproduces both.jsand.d.tsfiles inpackages/env/dist/, includingdist/schemas/dashboard.jsanddist/validate.jspnpm -r buildsucceeds, includingapps/dashboard, with no "Module not found" errorsFixes #334