Skip to content

Commit

Permalink
Ignore node_modules directory. Fixes #4452
Browse files Browse the repository at this point in the history
Fixes #4457.
  • Loading branch information
mitar authored and glasser committed Jun 2, 2015
1 parent d8944f1 commit 2e76973
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/client/full-api/concepts.html
Expand Up @@ -141,6 +141,13 @@ <h2 id="structuringyourapp">Structuring your application</h2>
Any directory named `tests` is not loaded anywhere. Use this for any local
test code.

- **node_modules**

For compatibility with node.js tools used alongside Meteor, any directory named
`node_modules` is not loaded anywhere. node.js packages installed into
`node_modules` directories will not be available to your Meteor code. Use
`Npm.depends` in your package `package.js` file for that.

### Files outside special directories

All JavaScript files outside special directories are loaded on both the client
Expand Down
4 changes: 4 additions & 0 deletions tools/package-source.js
Expand Up @@ -1241,6 +1241,10 @@ _.extend(PackageSource.prototype, {
// suddenly start treating it as part of the main
// app program.
/^programs\/$/,
// node.js based tooling often uses dependencies which
// are installed into node_modules in the root of the
// project.
/^node_modules\/$/,
/^public\/$/, /^private\/$/,
/^cordova-build-override\/$/,
otherUnibuildRegExp].concat(sourceExclude)
Expand Down

0 comments on commit 2e76973

Please sign in to comment.