@diplodoc/cli 4.34.1 → 4.34.2
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/build/index.js +5 -4
- package/build/index.js.map +3 -3
- package/package.json +1 -1
- package/src/services/metadata/enrich.ts +5 -3
package/build/index.js
CHANGED
|
@@ -253747,6 +253747,7 @@ var enrichWithFrontMatter = (_0) => __async(void 0, [_0], function* ({
|
|
|
253747
253747
|
metadataOptions,
|
|
253748
253748
|
resolvedFrontMatterVars
|
|
253749
253749
|
}) {
|
|
253750
|
+
var _a3;
|
|
253750
253751
|
const { systemVars, metadataVars } = resolvedFrontMatterVars;
|
|
253751
253752
|
const { resources, addSystemMeta, shouldAlwaysAddVCSPath, pathData } = metadataOptions;
|
|
253752
253753
|
const { metadata, metadataStrippedContent } = parseExistingMetadata(fileContent);
|
|
@@ -253757,7 +253758,7 @@ var enrichWithFrontMatter = (_0) => __async(void 0, [_0], function* ({
|
|
|
253757
253758
|
metadataVars,
|
|
253758
253759
|
systemVars: addSystemMeta ? systemVars : void 0,
|
|
253759
253760
|
additionalMetadata: __spreadValues({
|
|
253760
|
-
vcsPath: shouldAlwaysAddVCSPath ? resolveVCSPath(metadata, pathData.pathToFile) : void 0
|
|
253761
|
+
vcsPath: (_a3 = metadata.vcsPath) != null ? _a3 : shouldAlwaysAddVCSPath ? resolveVCSPath(metadata, pathData.pathToFile) : void 0
|
|
253761
253762
|
}, vcsFrontMatter)
|
|
253762
253763
|
});
|
|
253763
253764
|
return emplaceMetadata(metadataStrippedContent, mergedMetadata);
|
|
@@ -261326,7 +261327,7 @@ function handler(args2) {
|
|
|
261326
261327
|
const tmpInputFolder = (0, import_path31.resolve)(args2.output, TMP_INPUT_FOLDER);
|
|
261327
261328
|
const tmpOutputFolder = (0, import_path31.resolve)(args2.output, TMP_OUTPUT_FOLDER);
|
|
261328
261329
|
if (true) {
|
|
261329
|
-
console.log(`Using v${"4.34.
|
|
261330
|
+
console.log(`Using v${"4.34.2"} version`);
|
|
261330
261331
|
}
|
|
261331
261332
|
try {
|
|
261332
261333
|
argv_default2.init(__spreadProps(__spreadValues({}, args2), {
|
|
@@ -261437,7 +261438,7 @@ var parser3 = import_yargs.default.command(build).option("config", {
|
|
|
261437
261438
|
default: false,
|
|
261438
261439
|
describe: "Run in quiet mode. Don't write logs to stdout",
|
|
261439
261440
|
type: "boolean"
|
|
261440
|
-
}).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.34.
|
|
261441
|
+
}).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.34.2" : "").help();
|
|
261441
261442
|
var Build = class extends BaseProgram(command, {
|
|
261442
261443
|
config: {
|
|
261443
261444
|
// scope: 'build',
|
|
@@ -265984,7 +265985,7 @@ var Program = class extends BaseProgram("Program", {
|
|
|
265984
265985
|
constructor() {
|
|
265985
265986
|
super(...arguments);
|
|
265986
265987
|
this.command = new Command2(NAME).helpOption(true).allowUnknownOption(false).version(
|
|
265987
|
-
true ? "4.34.
|
|
265988
|
+
true ? "4.34.2" : "",
|
|
265988
265989
|
"--version",
|
|
265989
265990
|
"Output the version number"
|
|
265990
265991
|
).usage(USAGE);
|