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

Fix source maps when using ts config files, improve performance loading ts config files #721

Merged

Conversation

andrzej-woof
Copy link
Contributor

@andrzej-woof andrzej-woof commented Mar 3, 2023

This PR addresses #530 and #613

The problem was that newly registered ts-node took over transpilation of all files.
Using ignore option we can exclude transpiling again anything that is not a typescript file.

First regex (?:^|/)node_modules/ is just the default that is used by ts-node to exclude node_modules if ignore option is unspecified.

@andrzej-woof andrzej-woof changed the title Fix source maps when using ts config files Fix source maps when using ts config files, improve performance loading ts config files Mar 3, 2023
@markstos
Copy link
Collaborator

markstos commented May 1, 2023

@flodaniel does this TypeScript file look right to you?

@markstos
Copy link
Collaborator

markstos commented Aug 4, 2023

I'm willing to get to try this. If we get more bug reports after the next release, we'll have to revert.

@markstos markstos merged commit 8c52ea2 into node-config:master Aug 4, 2023
renovate bot added a commit to tomacheese/cmcutter that referenced this pull request Jan 9, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [config](http://github.com/node-config/node-config.git)
([source](https://togithub.com/node-config/node-config)) | [`3.3.9` ->
`3.3.10`](https://renovatebot.com/diffs/npm/config/3.3.9/3.3.10) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/config/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/config/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/config/3.3.9/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/config/3.3.9/3.3.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>node-config/node-config (config)</summary>

###
[`v3.3.10`](https://togithub.com/node-config/node-config/releases/tag/v3.3.10)

[Compare
Source](https://togithub.com/node-config/node-config/compare/v3.3.9...v3.3.10)

##### What's Changed

- replace var to let and const by
[@&#8203;jamashita](https://togithub.com/jamashita) in
[node-config/node-config#720
- refactor: 💡 xxx === undefined => typeof xxx === 'undefined' by
[@&#8203;jamashita](https://togithub.com/jamashita) in
[node-config/node-config#729
- Fix source maps when using ts config files, improve performance
loading ts config files by
[@&#8203;andrzej-woof](https://togithub.com/andrzej-woof) in
[node-config/node-config#721
- fix: lack of comments removal, invalid regexp by
[@&#8203;DeutscherDude](https://togithub.com/DeutscherDude) in
[node-config/node-config#745

##### New Contributors

- [@&#8203;jamashita](https://togithub.com/jamashita) made their first
contribution in
[node-config/node-config#720
- [@&#8203;andrzej-woof](https://togithub.com/andrzej-woof) made their
first contribution in
[node-config/node-config#721
- [@&#8203;DeutscherDude](https://togithub.com/DeutscherDude) made their
first contribution in
[node-config/node-config#745

**Full Changelog**:
node-config/node-config@v3.3.9...v3.3.10

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tomacheese/cmcutter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

2 participants