@tmdjr/ngx-editor-js2 20.0.9 → 20.0.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmdjr/ngx-editor-js2",
3
- "version": "20.0.9",
3
+ "version": "20.0.10",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^20.0.4",
@@ -92,6 +92,7 @@ function ngAdd(options) {
92
92
  addCodeMirrorSetup(tree, blocks, context, sourceRoot);
93
93
  if (options.demo) {
94
94
  rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files/demo'), [
95
+ (0, schematics_1.filter)(path => !tree.exists('src/app/' + path.split('/').pop())),
95
96
  (0, schematics_1.applyTemplates)({}), // Pass in vars if you want
96
97
  (0, schematics_1.move)('src/app'),
97
98
  ])));
@@ -8,6 +8,7 @@ import {
8
8
  SchematicContext,
9
9
  Tree,
10
10
  url,
11
+ filter,
11
12
  } from '@angular-devkit/schematics';
12
13
  import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks';
13
14
  import {
@@ -109,6 +110,7 @@ export function ngAdd(options: any): Rule {
109
110
  rules.push(
110
111
  mergeWith(
111
112
  apply(url('./files/demo'), [
113
+ filter(path => !tree.exists('src/app/' + path.split('/').pop())),
112
114
  applyTemplates({}), // Pass in vars if you want
113
115
  move('src/app'),
114
116
  ])