Skip to content

feat: add ${baseDir}/.node/bin to PATH if exists - #14

Merged
atian25 merged 3 commits into
masterfrom
support-node-dir
Nov 30, 2017
Merged

feat: add ${baseDir}/.node/bin to PATH if exists#14
atian25 merged 3 commits into
masterfrom
support-node-dir

Conversation

@fengmk2

Copy link
Copy Markdown
Member
Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

Comment threadlib/cmd/start.js
// for nodeinstall
let newPATH = `${path.join(baseDir, 'node_modules/.bin')}${path.delimiter}`;
// support `${baseDir}/.node/bin`
const customNodeBinDir = path.join(baseDir, '.node/bin');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

这个目录规范是哪里定义的?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

看到了,避免 npm@5 install 将 node_modules 所有文件清空

@atian25

Copy link
Copy Markdown
Member

Conflicting 了,要修下

@atian25
atian25 merged commit 8eda3d1 into masterNov 30, 2017
@atian25
atian25 deleted the support-node-dir branch November 30, 2017 08:44
@atian25

Copy link
Copy Markdown
Member

2.4.0

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@fengmk2@atian25@popomore