Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6377cef

Browse files
committedOct 9, 2020
fix(core): fix decorate angular-cli script to work for production installs
1 parent 297ccc5 commit 6377cef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎packages/workspace/src/schematics/utils/decorate-angular-cli.js__tmpl__

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ const fs = require('fs');
2525
const os = require('os');
2626
const cp = require('child_process');
2727
const isWindows = os.platform() === 'win32';
28-
const { output } = require('@nrwl/workspace');
28+
let output;
29+
try {
30+
output = require('@nrwl/workspace').output;
31+
} catch (e) {
32+
console.warn('Angular CLI could not be decorated to enable computation caching. Please ensure @nrwl/workspace is installed.');
33+
process.exit(0);
34+
}
2935

3036
/**
3137
* Paths to files being patched

0 commit comments

Comments
 (0)
Please sign in to comment.