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

Custom tsconfig path for the build command, default to tsconfig.build.json and fallback to tsconfig.json #202

Merged
merged 11 commits into from
Mar 1, 2023

Conversation

enisdenjo
Copy link
Collaborator

@enisdenjo enisdenjo commented Feb 15, 2023

Re-opening #190

However, sometimes you might have multiple config files and use one for build. One common reason is one tsconfig checks the types of all files (including other configs and tests) and another tsconfig specifies what is to be built.

This PR allows for a --tsconfig option to directly specify the tsconfig to use.

TODO

  • Tests
  • Default is tsconfig.build.json and then fallback to tsconfig.json (decide should it be? - it should)

@changeset-bot
Copy link

changeset-bot bot commented Feb 15, 2023

🦋 Changeset detected

Latest commit: af5928e

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 Major

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 requested review from ardatan, n1ru4l and kamilkisiela and removed request for ardatan February 15, 2023 08:16
@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2023

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
bob-the-bundler 6.0.0-alpha-20230301121354-af5928e npm ↗︎ unpkg ↗︎

@enisdenjo enisdenjo changed the title Custom tsconfig path for the build command Custom tsconfig path for the build command, default to tsconfig.build.json and fallback to tsconfig.json Mar 1, 2023
@n1ru4l n1ru4l merged commit 2236863 into master Mar 1, 2023
@n1ru4l n1ru4l deleted the tsconfig-path branch March 1, 2023 12:52
@github-actions github-actions bot mentioned this pull request Mar 1, 2023
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.

3 participants