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(shared): proper ts rootDir #1887

Merged
merged 2 commits into from Mar 21, 2024
Merged

fix(shared): proper ts rootDir #1887

merged 2 commits into from Mar 21, 2024

Conversation

bodinsamuel
Copy link
Contributor

@bodinsamuel bodinsamuel commented Mar 20, 2024

Describe your changes

Fixes NAN-617

  • rootDir was not pointing to lib
    It currently output everything to dist/lib which is inconvenient but also makes the paths unreliable since it changes from ts to js

  • Fix package.json loading (and cache it)
    This package.json is loaded on every call to /meta.
    And it was spamming errors in tests

@bodinsamuel bodinsamuel self-assigned this Mar 20, 2024
Copy link

linear bot commented Mar 20, 2024

@bodinsamuel bodinsamuel marked this pull request as ready for review March 20, 2024 18:46
Copy link
Member

@khaliqgant khaliqgant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for digging on this. Would just want to test this on staging including a full cli deploy etc just to make sure nothing unexpected happens.

Copy link
Collaborator

@TBonnin TBonnin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much. I have been wanted to fix this for a very long time

@bodinsamuel
Copy link
Contributor Author

Looks good on staging ✅

@bodinsamuel bodinsamuel merged commit bf74650 into master Mar 21, 2024
22 checks passed
@bodinsamuel bodinsamuel deleted the fix/path-shared branch March 21, 2024 08:30
bodinsamuel added a commit that referenced this pull request Mar 21, 2024
## Describe your changes

Follow up of #1887 

Obviously it wasn't going to be easy. For some reason changing the path
also lead to npm not publishing the dist folder

[0.39.5](https://www.npmjs.com/package/@nangohq/shared/v/0.39.5?activeTab=code)
vs
[0.39.6](https://www.npmjs.com/package/@nangohq/shared/v/0.39.6?activeTab=code)


- Explicitly list published files
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

3 participants