-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
refactor(deploy): vercel serve and constants #877
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
This reverts commit ebee7bf.
packages/waku/package.json
Outdated
@@ -34,6 +34,10 @@ | |||
"types": "./dist/internals.d.ts", | |||
"default": "./dist/internals.js" | |||
}, | |||
"./hono": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious here, but why do /hono
and /internals
need to be in the published package json exports if they are for internal use only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it at first (locally without commits), but it feels like mixed. /internals
are "more internal" than /hono
, so to speak. 😄
In any case, I might be reconsidering it in the future, before finalizing v1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I noticed we need to re-export Hono
to avoid adding in peer dependencies. So, /internals
are weird for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I misunderstood your question probably.
/internals
are for someone who might want to experiment something (hypothetical use case)./hono
is for deploy plugins (actual use case), and I wish this could be avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this makes more sense! Thanks for the explanation
package.json
Outdated
@@ -51,7 +51,7 @@ | |||
"examples:prd:24_nesting": "NAME=24_nesting pnpm run examples:prd", | |||
"website:dev": "(cd packages/website && pnpm run dev)", | |||
"website:build": "cd packages/website && pnpm run build", | |||
"website:vercel": "pnpm run compile && pnpm run website:build --with-vercel-static && mv packages/website/.vercel/output .vercel/", | |||
"website:vercel": "pnpm run compile && pnpm run website:build && mv packages/website/.vercel/output .vercel/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to test the hono server serving the website from vercel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! thanks 👍
following #866