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 opts for specify location of node_modules #7

Merged
merged 1 commit into from
Dec 7, 2017
Merged

Add opts for specify location of node_modules #7

merged 1 commit into from
Dec 7, 2017

Conversation

DrSensor
Copy link
Contributor

@DrSensor DrSensor commented Dec 7, 2017

I have a case when I need to specify the directory of node_modules because using https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/ .
I have separate client and server folder with separate package.json and I notice this package don't have an option to specifying the directory of src node_modules.

This is what I want to achieve.

copyNodeModule(path.resolve(__dirname, '../server'), config.build.assetsRoot, {
      srcDir: __dirname,
      devDependencies: false
    }, (err, results) => {

I have a case when I need to specify the directory of `node_modules` because using https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/ .
I have separate client and server folder with separate `package.json` and I notice this package don't have an option to specifying the directory of src `node_modules`. 

This is what I want to achieve.
```
copyNodeModule(path.resolve(__dirname, '../server'), config.build.assetsRoot, {
      srcDir: __dirname,
      devDependencies: false
    }, (err, results) => {
```
@arloliu arloliu merged commit bc552a3 into arloliu:master Dec 7, 2017
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