Skip to content

Emit package declaration files#9

Open
BowenMilner wants to merge 1 commit into
devforth:mainfrom
BowenMilner:emit-package-declarations
Open

Emit package declaration files#9
BowenMilner wants to merge 1 commit into
devforth:mainfrom
BowenMilner:emit-package-declarations

Conversation

@BowenMilner

Copy link
Copy Markdown

Enables TypeScript declaration output so the published package includes the declaration file referenced by package metadata.

@adminforth/markdown@1.12.8 publishes types: "dist/index.d.ts", but the tarball currently contains dist/index.js and dist/types.js without dist/index.d.ts. Turning on declaration in tsconfig.json makes tsc emit the referenced declaration file during the existing build.

Verification:

  • Clean install of @adminforth/markdown@1.12.8 confirms dist/index.js exists and dist/index.d.ts is missing.
  • npm pack @adminforth/markdown@1.12.8 --json --ignore-scripts confirms the published tarball lacks package/dist/index.d.ts.

@ivictbor

Copy link
Copy Markdown
Contributor

hey @BowenMilner thanks a lot, we will check it out

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