@ng-doc/add 15.0.0-beta.14 → 15.0.0-beta.15

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": "@ng-doc/add",
3
- "version": "15.0.0-beta.14",
3
+ "version": "15.0.0-beta.15",
4
4
  "type": "commonjs",
5
5
  "schematics": "./schematics/collection.json",
6
6
  "ng-add": {
@@ -10,8 +10,8 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
- "@angular/cdk": ">=13.3.0",
14
- "@angular-devkit/schematics": ">=13.0.0",
13
+ "@angular/cdk": ">=15.0.0",
14
+ "@angular-devkit/schematics": ">=15.0.0",
15
15
  "ng-morph": "^2.1.1"
16
16
  },
17
17
  "main": "./schematics/index.js",
@@ -4,17 +4,17 @@ exports.NG_DOC_ASSETS = void 0;
4
4
  exports.NG_DOC_ASSETS = [
5
5
  {
6
6
  glob: '**/*',
7
- input: './node_modules/@ng-doc/ui-kit/assets',
7
+ input: 'node_modules/@ng-doc/ui-kit/assets',
8
8
  output: 'assets',
9
9
  },
10
10
  {
11
11
  glob: '**/*',
12
- input: './node_modules/@ng-doc/app/assets',
12
+ input: 'node_modules/@ng-doc/app/assets',
13
13
  output: 'assets',
14
14
  },
15
15
  {
16
16
  glob: '**/*',
17
- input: './node_modules/@ng-doc/builder/generated/assets',
17
+ input: 'node_modules/@ng-doc/builder/generated/assets',
18
18
  output: 'assets',
19
19
  },
20
20
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/constants/assets.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAyD;IAClF;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,sCAAsC;QAC7C,MAAM,EAAE,QAAQ;KAChB;IACD;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,mCAAmC;QAC1C,MAAM,EAAE,QAAQ;KAChB;IACD;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,iDAAiD;QACxD,MAAM,EAAE,QAAQ;KAChB;CACD,CAAC"}
1
+ {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/constants/assets.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAyD;IAClF;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,oCAAoC;QAC3C,MAAM,EAAE,QAAQ;KAChB;IACD;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,iCAAiC;QACxC,MAAM,EAAE,QAAQ;KAChB;IACD;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,+CAA+C;QACtD,MAAM,EAAE,QAAQ;KAChB;CACD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NG_DOC_STYLES = void 0;
4
- exports.NG_DOC_STYLES = ['./node_modules/@ng-doc/app/styles/global.css'];
4
+ exports.NG_DOC_STYLES = ['node_modules/@ng-doc/app/styles/global.css'];
5
5
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/constants/styles.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAa,CAAC,8CAA8C,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/constants/styles.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAa,CAAC,4CAA4C,CAAC,CAAC"}
@@ -21,11 +21,17 @@ function addAssets(options) {
21
21
  }
22
22
  const targetOptions = (0, schematics_1.getProjectTargetOptions)(project, 'build');
23
23
  const assets = targetOptions['assets'];
24
+ const jsDependencies = targetOptions['allowedCommonJsDependencies'];
24
25
  if (!assets) {
25
26
  targetOptions['assets'] = assets_1.NG_DOC_ASSETS;
26
27
  return;
27
28
  }
29
+ if (!jsDependencies) {
30
+ targetOptions['allowedCommonJsDependencies'] = ['@ng-doc/core'];
31
+ return;
32
+ }
28
33
  targetOptions['assets'] = Array.from(new Set([...assets_1.NG_DOC_ASSETS, ...assets]));
34
+ targetOptions['allowedCommonJsDependencies'] = Array.from(new Set([...jsDependencies, '@ng-doc/core']));
29
35
  });
30
36
  };
31
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add-assets.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/steps/add-assets.ts"],"names":[],"mappings":";;;AAAA,wDAAgE;AAGhE,qEAA8G;AAE9G,gDAAkD;AAElD,sDAAgD;AAEhD;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAe;IACxC,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAE,EAAE;QACtD,OAAO,IAAA,2BAAe,EAAC,CAAC,SAA8B,EAAE,EAAE;YACzD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;YAEvD,MAAM,OAAO,GAAkC,IAAA,wBAAU,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YAE9E,IAAI,CAAC,OAAO,EAAE;gBACb,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;gBAC5D,OAAO;aACP;YAED,MAAM,aAAa,GAA8B,IAAA,oCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAE3F,MAAM,MAAM,GAA0B,aAAa,CAAC,QAAQ,CAA0B,CAAC;YAEvF,IAAI,CAAC,MAAM,EAAE;gBACZ,aAAa,CAAC,QAAQ,CAAC,GAAG,sBAAa,CAAC;gBACxC,OAAO;aACP;YAED,aAAa,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,sBAAa,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC9E,C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