Skip to content

Commit

Permalink
feat: exclude node_modules from being copied to working dir (#60)
Browse files Browse the repository at this point in the history
Closes #51 

As mentioned in #51 by @ChrisProlls in his [commit](#51 (comment)), we're unable to specify a source folder apart from the package.json file. So we have to exclude the node_modules folder and the typings from the template glob.
  • Loading branch information
davidenke authored and dherges committed Jul 4, 2017
1 parent 8829872 commit 6bfe713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/steps/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const processAssets = (src: string, dest: string): Promise<any> => {
return new Promise((resolve, reject) => {
debug(`processAssets ${src} to ${dest}`);

vfs.src(`${src}/**/*.ts`)
vfs.src([`${src}/**/*.ts`, '!node_modules/**/*'])
.pipe(inlineNg2Template({
base: `${src}`,
useRelativePaths: true,
Expand Down

0 comments on commit 6bfe713

Please sign in to comment.