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

chore: change bundler to tsdown #7

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

iamchanii
Copy link
Contributor

@iamchanii iamchanii commented Dec 5, 2024

Graplix is does not work correctly in a project that has set "moduleResolution": "Node16" or "moduleResolution": "NodeNext" in its tsconfig.json. causes, compiled js/d.ts files are not including extensions.

So I changed the bundler to tsdown from nanobundle for add extensions into compiled files with minimal changes. if you're not ready or don't want to adopt tsdown or whatever one, feel free close this pull request!

Copy link

changeset-bot bot commented Dec 5, 2024

🦋 Changeset detected

Latest commit: 561ecba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
graplix Patch

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

@@ -1,4 +1,4 @@
export function isEqual<T>(identify: (t: T) => string, a: T, b: T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To resolve TS9007: Function must have an explicit return type annotation with --isolatedDeclarations, add return type explicity.

"files": [
"dist",
"src",
"README.md"
],
"scripts": {
"build": "nanobundle build",
"clean": "nanobundle clean",
"build": "tsdown",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For what I understood, clean script is not used in repository. I think it's an equivalence of the add clean option.

@iamchanii iamchanii marked this pull request as ready for review December 5, 2024 05:56
@tonyfromundefined tonyfromundefined self-requested a review December 9, 2024 02:27
@tonyfromundefined tonyfromundefined merged commit e566043 into daangn:main Dec 9, 2024
1 check passed
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