Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type only packages #144

Merged
merged 8 commits into from
Oct 24, 2022
Merged

Type only packages #144

merged 8 commits into from
Oct 24, 2022

Conversation

enisdenjo
Copy link
Collaborator

@enisdenjo enisdenjo commented Oct 5, 2022

Closes #139

Auto-detect types-only packages by checking whether the ESM files are empty. Type-only packages are built and packed in accordance to DefinitelyTyped.

A minimal example of the emitted package.json:

{
  "name": "types-only",
  "main": "",
  "typings": "dist/typings/index.d.ts",
  "typescript": {
    "definition": "dist/typings/index.d.ts"
  },
  "buildOptions": {
    "input": "./src/index.ts"
  },
  "publishConfig": {
    "directory": "dist",
    "access": "public"
  }
}

TODO

  • Fix the check command to consider types-only packages

@changeset-bot
Copy link

changeset-bot bot commented Oct 5, 2022

🦋 Changeset detected

Latest commit: 95081eb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
bob-the-bundler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@enisdenjo enisdenjo marked this pull request as ready for review October 10, 2022 23:55
@n1ru4l n1ru4l merged commit 76fd23c into kamilkisiela:master Oct 24, 2022
@enisdenjo enisdenjo deleted the only-types branch October 24, 2022 12:14
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.

Only types build option (or auto-detect)
2 participants