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: update build to support NodeNext #455

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ryanleecode
Copy link
Contributor

No description provided.

@ryanleecode ryanleecode changed the title [DNM] chore: update node next chore: update node next Oct 23, 2024
@ryanleecode ryanleecode changed the title chore: update node next chore: update build to support NodeNext Oct 23, 2024
@ryanleecode
Copy link
Contributor Author

@TarikGul @marshacb i have the build working here but all the other scripts are busted

/* eslint-disable @typescript-eslint/ban-ts-comment */
// https://github.com/isaacs/tshy?tab=readme-ov-file#commonjs-dialect-polyfills
// @ts-ignore suppress "Import assertions are not allowed on statements that compile to CommonJS 'require' calls."
import registry from '@substrate/asset-transfer-api-registry/docs/registry.json' assert { type: 'json' };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

needs another release on https://github.com/paritytech/asset-transfer-api-registry to see if the change to esm style exports will fix this

@ryanleecode
Copy link
Contributor Author

I'm not sure what changed but it looks like Yarn isn't installing the transitive dependencies of @substrate/dev

@TarikGul
Copy link
Member

I'm not sure what changed but it looks like Yarn isn't installing the transitive dependencies of @substrate/dev

I think this has always been an issue. It's why the scripts access the node_modules directly.

Similar issue I filed awhile ago: yarnpkg/berry#2784

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