@angular-devkit/core 18.1.0-next.3 → 18.1.0-rc.1
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/host.js +0 -2
- package/package.json +2 -2
- package/src/json/schema/registry.js +1 -0
- package/src/workspace/index.d.ts +1 -1
package/node/host.js
CHANGED
|
@@ -161,11 +161,9 @@ class NodeJsSyncHost {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
isDirectory(path) {
|
|
164
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
165
164
|
return this.stat(path).pipe((0, rxjs_1.map)((stat) => stat.isDirectory()));
|
|
166
165
|
}
|
|
167
166
|
isFile(path) {
|
|
168
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
169
167
|
return this.stat(path).pipe((0, rxjs_1.map)((stat) => stat.isFile()));
|
|
170
168
|
}
|
|
171
169
|
// Some hosts may not support stat.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/core",
|
|
3
|
-
"version": "18.1.0-
|
|
3
|
+
"version": "18.1.0-rc.1",
|
|
4
4
|
"description": "Angular DevKit - Core Utility Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"ajv": "8.16.0",
|
|
34
34
|
"ajv-formats": "3.0.1",
|
|
35
|
-
"jsonc-parser": "3.
|
|
35
|
+
"jsonc-parser": "3.3.1",
|
|
36
36
|
"picomatch": "4.0.2",
|
|
37
37
|
"rxjs": "7.8.1",
|
|
38
38
|
"source-map": "0.7.4"
|
|
@@ -291,6 +291,7 @@ class CoreSchemaRegistry {
|
|
|
291
291
|
}
|
|
292
292
|
// Validate using ajv
|
|
293
293
|
try {
|
|
294
|
+
// eslint-disable-next-line @typescript-eslint/await-thenable
|
|
294
295
|
const success = await validator.call(validationContext, data);
|
|
295
296
|
if (!success) {
|
|
296
297
|
return { data, success, errors: validator.errors ?? [] };
|
package/src/workspace/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export * from './definitions';
|
|
9
|
-
export { WorkspaceHost, createWorkspaceHost } from './host';
|
|
9
|
+
export { type WorkspaceHost, createWorkspaceHost } from './host';
|
|
10
10
|
export { WorkspaceFormat, readWorkspace, writeWorkspace } from './core';
|