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: path imports for typescript #493

Merged
merged 1 commit into from
May 3, 2024
Merged

fix: path imports for typescript #493

merged 1 commit into from
May 3, 2024

Conversation

mrstork
Copy link
Contributor

@mrstork mrstork commented May 3, 2024

🎉 Thanks for sending this pull request! 🎉

Please make sure the title is clear and descriptive.

If you are fixing a typo or documentation, please skip these instructions.

Otherwise please fill in the sections below.

Which problem is this pull request solving?

See https://github.com/netlify/functions/actions/runs/8939586357/job/24555907790

Describe the solution you've chosen

Remove export block to support node 10 and allow internal to be imported

Describe alternatives you've considered

Linking internal.ts in main.ts, however we look to want to keep these seperate

Checklist

Please add a x inside each checkbox:

  • I have read the contribution guidelines.
  • The status checks are successful (continuous integration). Those can be seen below.
  • Passed npm run test:publish
  • Tested change with npm link @netlify/functions

@mrstork mrstork requested a review from a team as a code owner May 3, 2024 15:15
@ascorbic
Copy link
Contributor

ascorbic commented May 3, 2024

WHy do you need to remove this?

@ascorbic
Copy link
Contributor

ascorbic commented May 3, 2024

Oh, I see. What you should insteasd do is leave the imports block and add imports.d.ts at the root, with an export of the dist file

@ascorbic
Copy link
Contributor

ascorbic commented May 3, 2024

Like this: https://github.com/ascorbic/unpic-img/blob/main/packages/react/nextjs.d.ts

@mrstork mrstork force-pushed the remove-export-block branch from 772743a to aa0cfc4 Compare May 3, 2024 16:22
@mrstork mrstork changed the title fix: remove export block (unsupported in node10) fix: path imports for typescript May 3, 2024
@mrstork mrstork merged commit aa417b7 into main May 3, 2024
6 checks passed
@mrstork mrstork deleted the remove-export-block branch May 3, 2024 16:26
mrstork pushed a commit that referenced this pull request May 3, 2024
🤖 I have created a release *beep* *boop*
---


## [2.6.2](v2.6.1...v2.6.2)
(2024-05-03)


### Bug Fixes

* path imports for typescript
([#493](#493))
([aa417b7](aa417b7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
@mrstork mrstork mentioned this pull request May 3, 2024
4 tasks
mrstork added a commit that referenced this pull request May 3, 2024
**Which problem is this pull request solving?**

Release failures:

https://github.com/netlify/functions/actions/runs/8942002569/job/24563622237

https://github.com/netlify/functions/actions/runs/8939586357/job/24555907790

**List other issues or pull requests related to this problem**

See #491,
#492,
#493

**Checklist**

Please add a `x` inside each checkbox:

- [x] I have read the [contribution
guidelines](../blob/master/CONTRIBUTING.md).
- [x] The status checks are successful (continuous integration). Those
can be seen below.
- [x] Ran `npm run test` which includes `test:publish` and `test:dev`
- [x] Tested with `npm link @netlify/functions`
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.

2 participants