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 binary from @helia/interop #384

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

achingbrain
Copy link
Member

To prevent things like transient deps breaking Kubo interop tests,
export a bin to allow installing the interop tests from npm and
running them in an easy-to-digest way.


import { spawn } from 'node:child_process'

const test = spawn('npx', ['aegir', 'test'])
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need npx here but not sure of the hassle of getting aegir binary

Copy link
Member Author

Choose a reason for hiding this comment

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

aegir is installed as a dep - we need to find the binary so we could assume the location with:

spawn('node', ['node_modules', '.bin', 'aegir', 'test'])

or use npx and let npm figure it out.

Base automatically changed from chore/add-helia-http to main January 17, 2024 07:06
To prevent things like transient deps breaking Kubo interop tests,
export a bin to allow installing the interop tests from npm and
running them in an easy-to-digest way.
@achingbrain achingbrain merged commit 3477b27 into main Jan 17, 2024
18 checks passed
@achingbrain achingbrain deleted the fix/export-interop-bin branch January 17, 2024 07:36
@achingbrain achingbrain mentioned this pull request Jan 17, 2024
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