Skip to content

Conversation

@keyvankhademi
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2024 8:44pm
pyth-staking-v2-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2024 8:44pm
staking-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2024 8:44pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2024 8:44pm


const packageJson = JSON.parse(fs.readFileSync(distPackageJsonPath, "utf8"));

packageJson.exports = {
Copy link
Contributor

Choose a reason for hiding this comment

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

there must be a better way to deal with this 😃

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's see what @cprussin says

Copy link
Collaborator

Choose a reason for hiding this comment

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

I actually have a package for doing this: https://www.npmjs.com/package/@cprussin/transform-package-json

You essentially have to do some transformation like this to the package.json to dual export packages or to use nextjs's transpileModules on a package that gets published, so I think it's fine however you want to do this, and what you have here is perfectly ok

@keyvankhademi keyvankhademi merged commit 75781f8 into main Sep 19, 2024
7 checks passed
@keyvankhademi keyvankhademi deleted the public branch September 19, 2024 00:32
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