@angular-devkit/core 18.1.0-next.0 → 18.1.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/cli-logger.d.ts +1 -2
- package/node/cli-logger.js +2 -3
- package/node/host.d.ts +1 -2
- package/node/host.js +1 -1
- package/node/index.d.ts +1 -1
- package/node/index.js +1 -1
- package/node/testing/index.d.ts +1 -2
- package/node/testing/index.js +1 -1
- package/package.json +12 -3
- package/src/exception.d.ts +1 -1
- package/src/exception.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/json/index.d.ts +1 -1
- package/src/json/index.js +1 -1
- package/src/json/schema/index.d.ts +1 -1
- package/src/json/schema/index.js +1 -1
- package/src/json/schema/interface.d.ts +1 -1
- package/src/json/schema/interface.js +1 -1
- package/src/json/schema/pointer.d.ts +1 -1
- package/src/json/schema/pointer.js +4 -5
- package/src/json/schema/registry.d.ts +1 -1
- package/src/json/schema/registry.js +1 -1
- package/src/json/schema/schema.d.ts +1 -1
- package/src/json/schema/schema.js +3 -4
- package/src/json/schema/transforms.d.ts +1 -1
- package/src/json/schema/transforms.js +2 -3
- package/src/json/schema/utility.d.ts +1 -1
- package/src/json/schema/utility.js +2 -3
- package/src/json/schema/visitor.d.ts +1 -1
- package/src/json/schema/visitor.js +3 -4
- package/src/json/utils.d.ts +1 -1
- package/src/json/utils.js +3 -4
- package/src/logger/indent.d.ts +1 -1
- package/src/logger/indent.js +1 -1
- package/src/logger/index.d.ts +1 -1
- package/src/logger/index.js +1 -1
- package/src/logger/level.d.ts +1 -1
- package/src/logger/level.js +1 -1
- package/src/logger/logger.d.ts +1 -1
- package/src/logger/logger.js +1 -1
- package/src/logger/null-logger.d.ts +1 -1
- package/src/logger/null-logger.js +1 -1
- package/src/logger/transform-logger.d.ts +1 -1
- package/src/logger/transform-logger.js +1 -1
- package/src/utils/index.d.ts +1 -1
- package/src/utils/index.js +1 -1
- package/src/utils/lang.d.ts +1 -1
- package/src/utils/lang.js +2 -3
- package/src/utils/literals.d.ts +1 -1
- package/src/utils/literals.js +6 -7
- package/src/utils/object.d.ts +1 -1
- package/src/utils/object.js +2 -3
- package/src/utils/partially-ordered-set.d.ts +1 -1
- package/src/utils/partially-ordered-set.js +1 -1
- package/src/utils/priority-queue.d.ts +1 -1
- package/src/utils/priority-queue.js +1 -1
- package/src/utils/strings.d.ts +1 -1
- package/src/utils/strings.js +8 -9
- package/src/utils/template.d.ts +1 -1
- package/src/utils/template.js +3 -4
- package/src/virtual-fs/host/alias.d.ts +1 -1
- package/src/virtual-fs/host/alias.js +1 -1
- package/src/virtual-fs/host/buffer.d.ts +1 -1
- package/src/virtual-fs/host/buffer.js +4 -4
- package/src/virtual-fs/host/create.d.ts +1 -1
- package/src/virtual-fs/host/create.js +2 -3
- package/src/virtual-fs/host/empty.d.ts +1 -1
- package/src/virtual-fs/host/empty.js +1 -1
- package/src/virtual-fs/host/index.d.ts +1 -1
- package/src/virtual-fs/host/index.js +1 -1
- package/src/virtual-fs/host/interface.d.ts +1 -1
- package/src/virtual-fs/host/interface.js +1 -1
- package/src/virtual-fs/host/memory.d.ts +1 -1
- package/src/virtual-fs/host/memory.js +1 -1
- package/src/virtual-fs/host/pattern.d.ts +1 -1
- package/src/virtual-fs/host/pattern.js +1 -1
- package/src/virtual-fs/host/record.d.ts +1 -1
- package/src/virtual-fs/host/record.js +1 -1
- package/src/virtual-fs/host/resolver.d.ts +1 -1
- package/src/virtual-fs/host/resolver.js +1 -1
- package/src/virtual-fs/host/safe.d.ts +1 -1
- package/src/virtual-fs/host/safe.js +1 -1
- package/src/virtual-fs/host/scoped.d.ts +1 -1
- package/src/virtual-fs/host/scoped.js +1 -1
- package/src/virtual-fs/host/sync.d.ts +1 -1
- package/src/virtual-fs/host/sync.js +1 -1
- package/src/virtual-fs/host/test.d.ts +1 -1
- package/src/virtual-fs/host/test.js +1 -1
- package/src/virtual-fs/index.d.ts +1 -1
- package/src/virtual-fs/index.js +1 -1
- package/src/virtual-fs/path.d.ts +1 -1
- package/src/virtual-fs/path.js +17 -17
- package/src/workspace/core.d.ts +1 -1
- package/src/workspace/core.js +6 -6
- package/src/workspace/definitions.d.ts +1 -1
- package/src/workspace/definitions.js +1 -1
- package/src/workspace/host.d.ts +1 -1
- package/src/workspace/host.js +2 -3
- package/src/workspace/index.d.ts +1 -1
- package/src/workspace/index.js +1 -1
- package/src/workspace/json/metadata.d.ts +1 -1
- package/src/workspace/json/metadata.js +1 -1
- package/src/workspace/json/reader.d.ts +1 -1
- package/src/workspace/json/reader.js +2 -3
- package/src/workspace/json/utilities.d.ts +1 -1
- package/src/workspace/json/utilities.js +2 -3
- package/src/workspace/json/writer.d.ts +1 -1
- package/src/workspace/json/writer.js +2 -3
package/src/virtual-fs/path.js
CHANGED
|
@@ -4,10 +4,25 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.path = exports.NormalizedRoot = exports.NormalizedSep = exports.PathCannotBeFragmentException = exports.PathMustBeAbsoluteException = exports.InvalidPathException = void 0;
|
|
11
|
+
exports.split = split;
|
|
12
|
+
exports.extname = extname;
|
|
13
|
+
exports.basename = basename;
|
|
14
|
+
exports.dirname = dirname;
|
|
15
|
+
exports.join = join;
|
|
16
|
+
exports.isAbsolute = isAbsolute;
|
|
17
|
+
exports.relative = relative;
|
|
18
|
+
exports.resolve = resolve;
|
|
19
|
+
exports.fragment = fragment;
|
|
20
|
+
exports.resetNormalizeCache = resetNormalizeCache;
|
|
21
|
+
exports.normalize = normalize;
|
|
22
|
+
exports.noCacheNormalize = noCacheNormalize;
|
|
23
|
+
exports.asWindowsPath = asWindowsPath;
|
|
24
|
+
exports.asPosixPath = asPosixPath;
|
|
25
|
+
exports.getSystemPath = getSystemPath;
|
|
11
26
|
const exception_1 = require("../exception");
|
|
12
27
|
class InvalidPathException extends exception_1.BaseException {
|
|
13
28
|
constructor(path) {
|
|
@@ -50,7 +65,6 @@ function split(path) {
|
|
|
50
65
|
}
|
|
51
66
|
return fragments;
|
|
52
67
|
}
|
|
53
|
-
exports.split = split;
|
|
54
68
|
/**
|
|
55
69
|
*
|
|
56
70
|
*/
|
|
@@ -64,7 +78,6 @@ function extname(path) {
|
|
|
64
78
|
return base.slice(i);
|
|
65
79
|
}
|
|
66
80
|
}
|
|
67
|
-
exports.extname = extname;
|
|
68
81
|
/**
|
|
69
82
|
* Return the basename of the path, as a Path. See path.basename
|
|
70
83
|
*/
|
|
@@ -77,7 +90,6 @@ function basename(path) {
|
|
|
77
90
|
return fragment(path.slice(path.lastIndexOf(exports.NormalizedSep) + 1));
|
|
78
91
|
}
|
|
79
92
|
}
|
|
80
|
-
exports.basename = basename;
|
|
81
93
|
/**
|
|
82
94
|
* Return the dirname of the path, as a Path. See path.dirname
|
|
83
95
|
*/
|
|
@@ -89,7 +101,6 @@ function dirname(path) {
|
|
|
89
101
|
const endIndex = index === 0 ? 1 : index; // case of file under root: '/file'
|
|
90
102
|
return normalize(path.slice(0, endIndex));
|
|
91
103
|
}
|
|
92
|
-
exports.dirname = dirname;
|
|
93
104
|
/**
|
|
94
105
|
* Join multiple paths together, and normalize the result. Accepts strings that will be
|
|
95
106
|
* normalized as well (but the original must be a path).
|
|
@@ -102,14 +113,12 @@ function join(p1, ...others) {
|
|
|
102
113
|
return p1;
|
|
103
114
|
}
|
|
104
115
|
}
|
|
105
|
-
exports.join = join;
|
|
106
116
|
/**
|
|
107
117
|
* Returns true if a path is absolute.
|
|
108
118
|
*/
|
|
109
119
|
function isAbsolute(p) {
|
|
110
120
|
return p.startsWith(exports.NormalizedSep);
|
|
111
121
|
}
|
|
112
|
-
exports.isAbsolute = isAbsolute;
|
|
113
122
|
/**
|
|
114
123
|
* Returns a path such that `join(from, relative(from, to)) == to`.
|
|
115
124
|
* Both paths must be absolute, otherwise it does not make much sense.
|
|
@@ -144,7 +153,6 @@ function relative(from, to) {
|
|
|
144
153
|
}
|
|
145
154
|
return normalize(p);
|
|
146
155
|
}
|
|
147
|
-
exports.relative = relative;
|
|
148
156
|
/**
|
|
149
157
|
* Returns a Path that is the resolution of p2, from p1. If p2 is absolute, it will return p2,
|
|
150
158
|
* otherwise will join both p1 and p2.
|
|
@@ -157,14 +165,12 @@ function resolve(p1, p2) {
|
|
|
157
165
|
return join(p1, p2);
|
|
158
166
|
}
|
|
159
167
|
}
|
|
160
|
-
exports.resolve = resolve;
|
|
161
168
|
function fragment(path) {
|
|
162
169
|
if (path.indexOf(exports.NormalizedSep) != -1) {
|
|
163
170
|
throw new PathCannotBeFragmentException(path);
|
|
164
171
|
}
|
|
165
172
|
return path;
|
|
166
173
|
}
|
|
167
|
-
exports.fragment = fragment;
|
|
168
174
|
/**
|
|
169
175
|
* normalize() cache to reduce computation. For now this grows and we never flush it, but in the
|
|
170
176
|
* future we might want to add a few cache flush to prevent this from growing too large.
|
|
@@ -177,7 +183,6 @@ let normalizedCache = new Map();
|
|
|
177
183
|
function resetNormalizeCache() {
|
|
178
184
|
normalizedCache = new Map();
|
|
179
185
|
}
|
|
180
|
-
exports.resetNormalizeCache = resetNormalizeCache;
|
|
181
186
|
/**
|
|
182
187
|
* Normalize a string into a Path. This is the only mean to get a Path type from a string that
|
|
183
188
|
* represents a system path. This method cache the results as real world paths tend to be
|
|
@@ -200,7 +205,6 @@ function normalize(path) {
|
|
|
200
205
|
}
|
|
201
206
|
return maybePath;
|
|
202
207
|
}
|
|
203
|
-
exports.normalize = normalize;
|
|
204
208
|
/**
|
|
205
209
|
* The no cache version of the normalize() function. Used for benchmarking and testing.
|
|
206
210
|
*/
|
|
@@ -258,7 +262,6 @@ function noCacheNormalize(path) {
|
|
|
258
262
|
return p.join(exports.NormalizedSep);
|
|
259
263
|
}
|
|
260
264
|
}
|
|
261
|
-
exports.noCacheNormalize = noCacheNormalize;
|
|
262
265
|
const path = (strings, ...values) => {
|
|
263
266
|
return normalize(String.raw(strings, ...values));
|
|
264
267
|
};
|
|
@@ -271,11 +274,9 @@ function asWindowsPath(path) {
|
|
|
271
274
|
}
|
|
272
275
|
return path.replace(/\//g, '\\');
|
|
273
276
|
}
|
|
274
|
-
exports.asWindowsPath = asWindowsPath;
|
|
275
277
|
function asPosixPath(path) {
|
|
276
278
|
return path;
|
|
277
279
|
}
|
|
278
|
-
exports.asPosixPath = asPosixPath;
|
|
279
280
|
function getSystemPath(path) {
|
|
280
281
|
if (process.platform.startsWith('win32')) {
|
|
281
282
|
return asWindowsPath(path);
|
|
@@ -284,4 +285,3 @@ function getSystemPath(path) {
|
|
|
284
285
|
return asPosixPath(path);
|
|
285
286
|
}
|
|
286
287
|
}
|
|
287
|
-
exports.getSystemPath = getSystemPath;
|
package/src/workspace/core.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { WorkspaceDefinition } from './definitions';
|
|
9
9
|
import { WorkspaceHost } from './host';
|
package/src/workspace/core.js
CHANGED
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.WorkspaceFormat = void 0;
|
|
11
|
+
exports._test_addWorkspaceFile = _test_addWorkspaceFile;
|
|
12
|
+
exports._test_removeWorkspaceFile = _test_removeWorkspaceFile;
|
|
13
|
+
exports.readWorkspace = readWorkspace;
|
|
14
|
+
exports.writeWorkspace = writeWorkspace;
|
|
11
15
|
const virtual_fs_1 = require("../virtual-fs");
|
|
12
16
|
const reader_1 = require("./json/reader");
|
|
13
17
|
const writer_1 = require("./json/writer");
|
|
@@ -25,14 +29,12 @@ var WorkspaceFormat;
|
|
|
25
29
|
function _test_addWorkspaceFile(name, format) {
|
|
26
30
|
workspaceFiles[name] = format;
|
|
27
31
|
}
|
|
28
|
-
exports._test_addWorkspaceFile = _test_addWorkspaceFile;
|
|
29
32
|
/**
|
|
30
33
|
* @private
|
|
31
34
|
*/
|
|
32
35
|
function _test_removeWorkspaceFile(name) {
|
|
33
36
|
delete workspaceFiles[name];
|
|
34
37
|
}
|
|
35
|
-
exports._test_removeWorkspaceFile = _test_removeWorkspaceFile;
|
|
36
38
|
// NOTE: future additions could also perform content analysis to determine format/version
|
|
37
39
|
const workspaceFiles = {
|
|
38
40
|
'angular.json': WorkspaceFormat.JSON,
|
|
@@ -96,7 +98,6 @@ async function readWorkspace(path, host, format) {
|
|
|
96
98
|
formatLookup.set(workspace, WorkspaceFormat.JSON);
|
|
97
99
|
return { workspace };
|
|
98
100
|
}
|
|
99
|
-
exports.readWorkspace = readWorkspace;
|
|
100
101
|
/**
|
|
101
102
|
* Writes a `WorkspaceDefinition` to the underlying storage via the provided `WorkspaceHost`.
|
|
102
103
|
* If the `WorkspaceDefinition` was created via the `readWorkspace` function, metadata will be
|
|
@@ -129,4 +130,3 @@ async function writeWorkspace(workspace, host, path, format) {
|
|
|
129
130
|
throw new Error('Unsupported workspace format.');
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
exports.writeWorkspace = writeWorkspace;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonValue } from '../json';
|
|
9
9
|
export interface WorkspaceDefinition {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.TargetDefinitionCollection = exports.ProjectDefinitionCollection = void 0;
|
package/src/workspace/host.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { virtualFs } from '../virtual-fs';
|
|
9
9
|
export interface WorkspaceHost {
|
package/src/workspace/host.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.createWorkspaceHost =
|
|
10
|
+
exports.createWorkspaceHost = createWorkspaceHost;
|
|
11
11
|
const rxjs_1 = require("rxjs");
|
|
12
12
|
const virtual_fs_1 = require("../virtual-fs");
|
|
13
13
|
function createWorkspaceHost(host) {
|
|
@@ -40,4 +40,3 @@ function createWorkspaceHost(host) {
|
|
|
40
40
|
};
|
|
41
41
|
return workspaceHost;
|
|
42
42
|
}
|
|
43
|
-
exports.createWorkspaceHost = createWorkspaceHost;
|
package/src/workspace/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export * from './definitions';
|
|
9
9
|
export { WorkspaceHost, createWorkspaceHost } from './host';
|
package/src/workspace/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JSONPath, Node } from 'jsonc-parser';
|
|
9
9
|
import { JsonValue } from '../../json';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.JsonWorkspaceMetadata = exports.JsonWorkspaceSymbol = void 0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { WorkspaceDefinition } from '../definitions';
|
|
9
9
|
import { WorkspaceHost } from '../host';
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.readJsonWorkspace =
|
|
10
|
+
exports.readJsonWorkspace = readJsonWorkspace;
|
|
11
11
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
12
12
|
const utils_1 = require("../../json/utils");
|
|
13
13
|
const definitions_1 = require("../definitions");
|
|
@@ -58,7 +58,6 @@ async function readJsonWorkspace(path, host, options = {}) {
|
|
|
58
58
|
const workspace = parseWorkspace(ast, context);
|
|
59
59
|
return workspace;
|
|
60
60
|
}
|
|
61
|
-
exports.readJsonWorkspace = readJsonWorkspace;
|
|
62
61
|
function parseWorkspace(workspaceNode, context) {
|
|
63
62
|
const jsonMetadata = context.metadata;
|
|
64
63
|
let projects;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { JsonArray, JsonObject, JsonValue } from '../../json';
|
|
9
9
|
export type ChangeListener = (path: string[], newValue: JsonValue | undefined) => void;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.createVirtualAstObject =
|
|
10
|
+
exports.createVirtualAstObject = createVirtualAstObject;
|
|
11
11
|
const json_1 = require("../../json");
|
|
12
12
|
function createVirtualAstObject(root, options = {}) {
|
|
13
13
|
const reporter = (path, target, oldValue, newValue) => {
|
|
@@ -29,7 +29,6 @@ function createVirtualAstObject(root, options = {}) {
|
|
|
29
29
|
};
|
|
30
30
|
return create(Array.isArray(root) ? [...root] : { ...root }, [], reporter, new Set(options.exclude), options.include?.length ? new Set(options.include) : undefined);
|
|
31
31
|
}
|
|
32
|
-
exports.createVirtualAstObject = createVirtualAstObject;
|
|
33
32
|
function create(obj, path, reporter, excluded = new Set(), included) {
|
|
34
33
|
return new Proxy(obj, {
|
|
35
34
|
getOwnPropertyDescriptor(target, p) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { WorkspaceDefinition } from '../definitions';
|
|
9
9
|
import { WorkspaceHost } from '../host';
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.writeJsonWorkspace =
|
|
10
|
+
exports.writeJsonWorkspace = writeJsonWorkspace;
|
|
11
11
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
12
12
|
const node_os_1 = require("node:os");
|
|
13
13
|
const metadata_1 = require("./metadata");
|
|
@@ -31,7 +31,6 @@ async function writeJsonWorkspace(workspace, host, path, options = {}) {
|
|
|
31
31
|
return host.writeFile(path, data);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
exports.writeJsonWorkspace = writeJsonWorkspace;
|
|
35
34
|
function convertJsonWorkspace(workspace, schema) {
|
|
36
35
|
const obj = {
|
|
37
36
|
$schema: schema || './node_modules/@angular/cli/lib/config/schema.json',
|