Skip to content

Commit

Permalink
feat(@angular-devkit/build-angular): default to NodeJS value for pres…
Browse files Browse the repository at this point in the history
…erveSymlinks
  • Loading branch information
Fabian Wiles committed Jan 17, 2020
1 parent 30df147 commit 6105bf4
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/documentation/build.md
Expand Up @@ -304,7 +304,7 @@ See https://github.com/angular/angular-cli/issues/7797 for details.
<code>--preserve-symlinks</code>
</p>
<p>
Do not use the real path when resolving modules.
Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set.
</p>
</details>
<details>
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/test.md
Expand Up @@ -123,7 +123,7 @@ You can run tests with coverage via `--code-coverage`. The coverage report will
<code>--preserve-symlinks</code>
</p>
<p>
Do not use the real path when resolving modules.
Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set.
</p>
</details>
<details>
Expand Down
9 changes: 3 additions & 6 deletions packages/angular/cli/lib/config/schema.json
Expand Up @@ -844,8 +844,7 @@
},
"preserveSymlinks": {
"type": "boolean",
"description": "Do not use the real path when resolving modules.",
"default": false
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
},
"extractLicenses": {
"type": "boolean",
Expand Down Expand Up @@ -1478,8 +1477,7 @@
},
"preserveSymlinks": {
"type": "boolean",
"description": "Do not use the real path when resolving modules.",
"default": false
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
},
"browsers": {
"type": "string",
Expand Down Expand Up @@ -1855,8 +1853,7 @@
},
"preserveSymlinks": {
"type": "boolean",
"description": "Do not use the real path when resolving modules.",
"default": false
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
},
"extractLicenses": {
"type": "boolean",
Expand Down
Expand Up @@ -248,8 +248,7 @@
},
"preserveSymlinks": {
"type": "boolean",
"description": "Do not use the real path when resolving modules.",
"default": false
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
},
"extractLicenses": {
"type": "boolean",
Expand Down
3 changes: 1 addition & 2 deletions packages/angular_devkit/build_angular/src/karma/schema.json
Expand Up @@ -126,8 +126,7 @@
},
"preserveSymlinks": {
"type": "boolean",
"description": "Do not use the real path when resolving modules.",
"default": false
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
},
"browsers": {
"type": "string",
Expand Down
3 changes: 1 addition & 2 deletions packages/angular_devkit/build_angular/src/server/schema.json
Expand Up @@ -198,8 +198,7 @@
},
"preserveSymlinks": {
"type": "boolean",
"description": "Do not use the real path when resolving modules.",
"default": false
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
},
"extractLicenses": {
"type": "boolean",
Expand Down
Expand Up @@ -53,7 +53,7 @@ export function normalizeBrowserSchema(
fileReplacements: normalizeFileReplacements(options.fileReplacements || [], syncHost, root),
optimization: normalizeOptimization(options.optimization),
sourceMap: normalizedSourceMapOptions,

preserveSymlinks: options.preserveSymlinks === undefined ? process.execArgv.includes('--preserve-symlinks') : options.preserveSymlinks,
statsJson: options.statsJson || false,
forkTypeChecker: options.forkTypeChecker || false,
budgets: options.budgets || [],
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/utility/config.ts
Expand Up @@ -388,7 +388,8 @@ export interface CliConfig {
*/
deleteOutputPath?: boolean;
/**
* Do not use the real path when resolving modules.
* Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is
* set.
*/
preserveSymlinks?: boolean;
/**
Expand Down
Expand Up @@ -479,9 +479,8 @@
"default": true
},
"preserveSymlinks": {
"description": "Do not use the real path when resolving modules.",
"type": "boolean",
"default": false
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set.",
"type": "boolean"
},
"showCircularDependencies": {
"description": "Show circular dependency warnings on builds.",
Expand Down

0 comments on commit 6105bf4

Please sign in to comment.