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

Add support for local npm prefix #1

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Add support for local npm prefix #1

merged 1 commit into from
Nov 17, 2022

Conversation

dnicolson
Copy link

This pull request adds support for the npm_config_local_prefix environment variable as well as the npm_config_prefix one documented here.

This enables submodules to work with a Go binary:

const path = require('path');
const { spawn } = require('child_process');

spawn(`${path.dirname(require.main.filename)}/node_modules/.bin/binary`);

@andreynering
Copy link
Member

Thanks @dnicolson!

@andreynering andreynering merged commit 5b119e6 into go-task:master Nov 17, 2022
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