Skip to content

Commit

Permalink
🐛 Prevent watching of project root
Browse files Browse the repository at this point in the history
  • Loading branch information
BenV authored and stopdropandrew committed Aug 16, 2017
1 parent 76ddb4c commit 27096e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils/assemble-tree.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
const { existsSync } = require('fs');
const Logger = require('./logger');
const { UnwatchedDir } = require('broccoli-source');

function hasEmberWelcomePage(pkg) {
return pkg && pkg.devDependencies && pkg.devDependencies['ember-welcome-page'];
Expand Down Expand Up @@ -64,7 +65,7 @@ this addon once you removed the {{welcome-page}} template tag.
let trees = [
writeFile('package.json', JSON.stringify(packageJson, null, ' ')),

new Funnel('.', {
new Funnel(new UnwatchedDir('.'), {
include: [
'npm-shrinkwrap.json',
'yarn.lock',
Expand Down Expand Up @@ -104,7 +105,7 @@ this addon once you removed the {{welcome-page}} template tag.

if (process.env.EMBER_ENV === 'test') {
// Overwrite main.js with test main.js
trees.push(new Funnel('.', {
trees.push(new Funnel(new UnwatchedDir('.'), {
destDir: 'ember-electron',
include: [
'tests/ember-electron/main.js',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"broccoli-file-creator": "^1.1.1",
"broccoli-funnel": "^1.0.1",
"broccoli-merge-trees": "^2.0.0",
"broccoli-source": "^1.1.0",
"broccoli-string-replace": "^0.1.1",
"capture-exit": "^1.2.0",
"chalk": "^1.1.0",
Expand Down

0 comments on commit 27096e3

Please sign in to comment.