@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.
- package/engine/.cache/apps/ng-doc/docs/guides/demo/ng-doc.page.mjs +2 -1
- package/engine/.cache/apps/ng-doc/docs/guides/demo-pane/ng-doc.page.mjs +2 -1
- package/helpers/emit-built-output.d.ts +2 -1
- package/helpers/emit-built-output.js +7 -3
- package/helpers/emit-built-output.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
10
|
+
* @param outputs - The outputs to emit.
|
|
10
11
|
*/
|
|
11
12
|
function emitBuiltOutput(outputs) {
|
|
12
13
|
outputs.forEach((output) => {
|
|
13
|
-
fs.
|
|
14
|
-
|
|
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
|
|
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.
|
|
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.
|
|
9
|
-
"@ng-doc/utils": "16.
|
|
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",
|