@ng-doc/builder 16.15.1 → 16.16.0

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.
@@ -12,7 +12,8 @@ var DemoPage = {
12
12
  mdFile: "./index.md",
13
13
  category: ng_doc_category_default,
14
14
  order: 2,
15
- keyword: "GuidesDemo"
15
+ keyword: "GuidesDemo",
16
+ route: {}
16
17
  };
17
18
  var ng_doc_page_default = DemoPage;
18
19
  export {
@@ -12,7 +12,8 @@ var DemoPanePage = {
12
12
  mdFile: "./index.md",
13
13
  category: ng_doc_category_default,
14
14
  order: 3,
15
- keyword: "GuidesDemoPane"
15
+ keyword: "GuidesDemoPane",
16
+ route: {}
16
17
  };
17
18
  var ng_doc_page_default = DemoPanePage;
18
19
  export {
@@ -1,6 +1,7 @@
1
1
  import { NgDocBuilderOutput } from '../interfaces';
2
2
  /**
3
+ * Emits the built output to the file system.
3
4
  *
4
- * @param {...any} outputs
5
+ * @param outputs - The outputs to emit.
5
6
  */
6
7
  export declare function emitBuiltOutput(outputs: NgDocBuilderOutput[]): void;
@@ -5,13 +5,17 @@ const tslib_1 = require("tslib");
5
5
  const fs = tslib_1.__importStar(require("fs"));
6
6
  const path = tslib_1.__importStar(require("path"));
7
7
  /**
8
+ * Emits the built output to the file system.
8
9
  *
9
- * @param {...any} outputs
10
+ * @param outputs - The outputs to emit.
10
11
  */
11
12
  function emitBuiltOutput(outputs) {
12
13
  outputs.forEach((output) => {
13
- fs.mkdirSync(path.dirname(output.filePath), { recursive: true });
14
- fs.writeFileSync(output.filePath, output.content);
14
+ const fileContent = fs.existsSync(output.filePath) && fs.readFileSync(output.filePath, 'utf-8');
15
+ if (fileContent !== output.content) {
16
+ fs.mkdirSync(path.dirname(output.filePath), { recursive: true });
17
+ fs.writeFileSync(output.filePath, output.content);
18
+ }
15
19
  });
16
20
  }
17
21
  exports.emitBuiltOutput = emitBuiltOutput;
@@ -1 +1 @@
1
- {"version":3,"file":"emit-built-output.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/emit-built-output.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAI7B;;;GAGG;AACH,SAAgB,eAAe,CAAC,OAA6B;IAC5D,OAAO,CAAC,OAAO,CAAC,CAAC,MAA0B,EAAE,EAAE;QAC9C,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACjE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACJ,CAAC;AALD,0CAKC"}
1
+ {"version":3,"file":"emit-built-output.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/emit-built-output.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAI7B;;;;GAIG;AACH,SAAgB,eAAe,CAAC,OAA6B;IAC5D,OAAO,CAAC,OAAO,CAAC,CAAC,MAA0B,EAAE,EAAE;QAC9C,MAAM,WAAW,GAAG,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAEhG,IAAI,WAAW,KAAK,MAAM,CAAC,OAAO,EAAE;YACnC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACjE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;SAClD;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AATD,0CASC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ng-doc/builder",
3
- "version": "16.15.1",
3
+ "version": "16.16.0",
4
4
  "type": "commonjs",
5
5
  "builders": "./builders.json",
6
6
  "schematics": "./schematics/collection.json",
7
7
  "dependencies": {
8
- "@ng-doc/core": "16.15.1",
9
- "@ng-doc/utils": "16.15.1",
8
+ "@ng-doc/core": "16.16.0",
9
+ "@ng-doc/utils": "16.16.0",
10
10
  "@angular-devkit/architect": ">=0.1600.0",
11
11
  "@angular-devkit/build-angular": ">=16.0.0",
12
12
  "chokidar": "3.5.3",