Skip to content

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