@angular-devkit/schematics 20.3.6 → 20.3.7
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/package.json +2 -2
- package/src/tree/host-tree.js +1 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "20.3.
|
|
3
|
+
"version": "20.3.7",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"tooling"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "20.3.
|
|
21
|
+
"@angular-devkit/core": "20.3.7",
|
|
22
22
|
"jsonc-parser": "3.3.1",
|
|
23
23
|
"magic-string": "0.30.17",
|
|
24
24
|
"ora": "8.2.0",
|
package/src/tree/host-tree.js
CHANGED
|
@@ -315,12 +315,8 @@ class HostTree {
|
|
|
315
315
|
}
|
|
316
316
|
// Structural methods.
|
|
317
317
|
create(path, content) {
|
|
318
|
-
const p = this._normalizePath(path);
|
|
319
|
-
if (this._recordSync.exists(p)) {
|
|
320
|
-
throw new exception_1.FileAlreadyExistException(p);
|
|
321
|
-
}
|
|
322
318
|
const c = typeof content == 'string' ? Buffer.from(content) : content;
|
|
323
|
-
this._record.create(
|
|
319
|
+
this._record.create(this._normalizePath(path), c).subscribe();
|
|
324
320
|
}
|
|
325
321
|
delete(path) {
|
|
326
322
|
this._recordSync.delete(this._normalizePath(path));
|