Skip to content

Commit

Permalink
fix(core): fix decorate angular-cli script to work for production ins…
Browse files Browse the repository at this point in the history
…talls
  • Loading branch information
FrozenPandaz authored and vsavkin committed Sep 24, 2020
1 parent adc34f8 commit 5e8c57a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ const fs = require('fs');
const os = require('os');
const cp = require('child_process');
const isWindows = os.platform() === 'win32';
const { output } = require('@nrwl/workspace');
let output;
try {
output = require('@nrwl/workspace').output;
} catch (e) {
console.warn('Angular CLI could not be decorated to enable computation caching. Please ensure @nrwl/workspace is installed.');
process.exit(0);
}

/**
* Paths to files being patched
Expand Down

0 comments on commit 5e8c57a

Please sign in to comment.