Skip to content

Commit bc5ce39

Browse files
author
Fabian Wiles
authored
Merge pull request #16648 from Toxicable/preserve-symlink-nodejs
feat(@angular-devkit/build-angular): default to NodeJS value for pres…
1 parent 4f50aa0 commit bc5ce39

File tree

6 files changed

+8
-15
lines changed

6 files changed

+8
-15
lines changed

packages/angular/cli/lib/config/schema.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,7 @@
856856
},
857857
"preserveSymlinks": {
858858
"type": "boolean",
859-
"description": "Do not use the real path when resolving modules.",
860-
"default": false
859+
"description": "Do not use the real path when resolving modules."
861860
},
862861
"extractLicenses": {
863862
"type": "boolean",
@@ -1490,8 +1489,7 @@
14901489
},
14911490
"preserveSymlinks": {
14921491
"type": "boolean",
1493-
"description": "Do not use the real path when resolving modules.",
1494-
"default": false
1492+
"description": "Do not use the real path when resolving modules."
14951493
},
14961494
"browsers": {
14971495
"type": "string",
@@ -1876,8 +1874,7 @@
18761874
},
18771875
"preserveSymlinks": {
18781876
"type": "boolean",
1879-
"description": "Do not use the real path when resolving modules.",
1880-
"default": false
1877+
"description": "Do not use the real path when resolving modules."
18811878
},
18821879
"extractLicenses": {
18831880
"type": "boolean",

packages/angular_devkit/build_angular/src/browser/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@
248248
},
249249
"preserveSymlinks": {
250250
"type": "boolean",
251-
"description": "Do not use the real path when resolving modules.",
252-
"default": false
251+
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
253252
},
254253
"extractLicenses": {
255254
"type": "boolean",

packages/angular_devkit/build_angular/src/karma/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@
126126
},
127127
"preserveSymlinks": {
128128
"type": "boolean",
129-
"description": "Do not use the real path when resolving modules.",
130-
"default": false
129+
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
131130
},
132131
"browsers": {
133132
"type": "string",

packages/angular_devkit/build_angular/src/server/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@
198198
},
199199
"preserveSymlinks": {
200200
"type": "boolean",
201-
"description": "Do not use the real path when resolving modules.",
202-
"default": false
201+
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
203202
},
204203
"extractLicenses": {
205204
"type": "boolean",

packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function normalizeBrowserSchema(
5353
fileReplacements: normalizeFileReplacements(options.fileReplacements || [], syncHost, root),
5454
optimization: normalizeOptimization(options.optimization),
5555
sourceMap: normalizedSourceMapOptions,
56-
56+
preserveSymlinks: options.preserveSymlinks === undefined ? process.execArgv.includes('--preserve-symlinks') : options.preserveSymlinks,
5757
statsJson: options.statsJson || false,
5858
forkTypeChecker: options.forkTypeChecker || false,
5959
budgets: options.budgets || [],

tests/angular_devkit/core/json/schema/serializers/schema_benchmark.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@
480480
},
481481
"preserveSymlinks": {
482482
"description": "Do not use the real path when resolving modules.",
483-
"type": "boolean",
484-
"default": false
483+
"type": "boolean"
485484
},
486485
"showCircularDependencies": {
487486
"description": "Show circular dependency warnings on builds.",

0 commit comments

Comments
 (0)