Skip to content

Conversation

jaredpalmer
Copy link
Owner

@jaredpalmer jaredpalmer commented Jan 30, 2019

This is a pretty awful PR, and I think I am going to refactor the codebase again. However, I need to think through how multiple entries will work with dev/prod builds and entry points. Anyways, this PR closes #27, #26, #23, #19, #16

  • Adds support for --format cjs,umd,es
  • Adds support for --entry src/index.ts (and I think even --entry src/**.ts will work)
  • Drops required field source in package.json, although it will still work. Instead TSDX will defaults to src/index.ts or src/index.tsx (it sniffs the file ending).
  • TSDX will now generate the correct CommonJS entry file for dev/prod builds at dist/index.js.

Todo:

TESTS!

@jaredpalmer jaredpalmer merged commit 0409976 into master Jan 31, 2019
@jaredpalmer jaredpalmer deleted the feat/entry-and-ending branch January 31, 2019 00:31
@swyxio
Copy link
Collaborator

swyxio commented Jan 31, 2019

i have just migrated to 0.3.0 and it works fine except for the one issue i filed. thanks for the dx/readme improvements too!

@jaredpalmer
Copy link
Owner Author

We’re getting there! Thanks for the help!

@agilgur5 agilgur5 added the topic: multi-entry Related to multi-entry support label Mar 10, 2020
joeflateau pushed a commit to joeflateau/tsdx that referenced this pull request Nov 12, 2021
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: multi-entry Related to multi-entry support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants