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

feat: export metadata object in local stage 2 #126

Merged
merged 5 commits into from
Sep 15, 2022

Conversation

eduardoboucas
Copy link
Member

Same as #122 but for the stage 2 file used in local development.

@eduardoboucas eduardoboucas added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Sep 15, 2022
@eduardoboucas eduardoboucas requested a review from a team September 15, 2022 10:58
return
}

const { stdout, stderr } = await execa('node', [stage2Path])

Choose a reason for hiding this comment

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

my understanding would be that the code you are generating runs in deno? why are you executing node here?

Copy link
Member Author

Choose a reason for hiding this comment

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

This code runs in Node as part of local development, called by the CLI.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Hang on, I'm holding this wrong! This is called from Node but then actually runs in Deno. 🤯

Let me change this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in 4fcd2c1. Thanks!

@eduardoboucas eduardoboucas merged commit ed7503a into main Sep 15, 2022
@eduardoboucas eduardoboucas deleted the feat/metadata-local branch September 15, 2022 11:53
Skn0tt pushed a commit to netlify/build that referenced this pull request Apr 23, 2024
…#126)

* feat: add `metadata` object to local stage 2

* chore: add comment

* chore: use file URL in test

* chore: adjust test for Node <14

* chore: run stage 2 in Deno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants