Thanks to visit codestin.com
Credit goes to github.com

Skip to content

return meta files from createAssets() #748

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

Merged
merged 4 commits into from
Feb 20, 2025

Conversation

james-elicx
Copy link
Contributor

@james-elicx james-elicx commented Feb 19, 2025

I want to re-use the value instead of importing the generated file.

I also had to add back the typesVersions that was removed in #747 as it broke builds and imports for the cloudflare adapter.

image image

Copy link

changeset-bot bot commented Feb 19, 2025

⚠️ No Changeset found

Latest commit: 596aa36

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

pkg-pr-new bot commented Feb 19, 2025

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/aws@748

commit: 596aa36

@@ -22,6 +22,13 @@
"types": "./dist/*.d.ts"
}
},
"typesVersions": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would "types": "dist/*" work here?

Could the problem be that we import path.js instead of path (would be awesome to be able to drop the .js but it might be a breaking change)

Anyway do not spend too much time on this if you have a working config.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could the problem be that we import path.js instead of path (would be awesome to be able to drop the .js but it might be a breaking change)

I don't think so, i've tested this on a test repo that i had and it worked. I was even able to drop the .js.

If we need typesVersions to not break compatibility i'm fine with it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unfortunately same problem

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

LGTM with a few nits

Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

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

Same comment as vic, but other than that LGTM

@@ -22,6 +22,13 @@
"types": "./dist/*.d.ts"
}
},
"typesVersions": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could the problem be that we import path.js instead of path (would be awesome to be able to drop the .js but it might be a breaking change)

I don't think so, i've tested this on a test repo that i had and it worked. I was even able to drop the .js.

If we need typesVersions to not break compatibility i'm fine with it

@james-elicx james-elicx force-pushed the james/expose-meta-files branch from 2a6c1ac to 596aa36 Compare February 20, 2025 08:42
@vicb vicb merged commit 9f3720f into opennextjs:main Feb 20, 2025
3 checks passed
@james-elicx james-elicx deleted the james/expose-meta-files branch February 20, 2025 08:55
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