Skip to content

fix(env): ensure @guildpass/env builds its dist output - #355

Merged
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
JuliobaCR:fix/env-tsconfig-emit-334
Aug 21, 2026
Merged

fix(env): ensure @guildpass/env builds its dist output#355
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
JuliobaCR:fix/env-tsconfig-emit-334

Conversation

@JuliobaCR

Copy link
Copy Markdown
Contributor

Summary

  • packages/env/package.json was missing a prepare script (unlike its siblings webhook-utils and integration-client), so pnpm install never built it — dist/ didn't exist at all for downstream consumers like apps/dashboard, causing Module not found errors on imports such as ./schemas/dashboard.js and ./validate.js.
  • Added "prepare": "npm run build" to packages/env/package.json to match the sibling packages' convention.
  • Made emitDeclarationOnly: false explicit in packages/env/tsconfig.json alongside the existing declaration/outDir settings, per the issue's acceptance criteria.

Fixes #334

Test plan

  • packages/env/tsconfig.json explicitly sets outDir, declaration, and emitDeclarationOnly
  • pnpm --filter @guildpass/env buildpackages/env/dist/ contains .js files (not only .d.ts)
  • packages/env/dist/schemas/dashboard.js and packages/env/dist/validate.js exist
  • Full workspace build (pnpm -r build) succeeds with no "Module not found" errors in apps/dashboard

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
@Lakes41
Lakes41 merged commit 8269a3a into Adamantine-guild:main Aug 21, 2026
1 check 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.

Add explicit declaration and emitDeclarationOnly settings to packages/env tsconfig.json

2 participants