@apt-repositories/generator
Advanced tools
Comparing version 0.0.24-dev.3 to 0.0.24-dev.4
@@ -140,3 +140,2 @@ #!/usr/bin/env node | ||
import { mkdir } from "node:fs/promises"; | ||
import { resolve } from "node:path"; | ||
import { argv } from "node:process"; | ||
@@ -199,2 +198,11 @@ | ||
// node_modules/@oliversalzburg/js-utils/format/count.js | ||
var formatCount = (count) => { | ||
return new Intl.NumberFormat(void 0, { | ||
compactDisplay: "short", | ||
maximumFractionDigits: 3, | ||
notation: "compact" | ||
}).format(count); | ||
}; | ||
// node_modules/apt-parser/dist/index.mjs | ||
@@ -486,3 +494,3 @@ var MissingRequiredKeyError = class extends Error { | ||
console.log( | ||
` Written '${packages.length.toString()}' package metadata files for component '${config.component}' to '${outputDirectory}'.` | ||
` Written '${formatCount(packages.length)}' package metadata files for component '${config.component}' to '${outputDirectory}'.` | ||
); | ||
@@ -498,3 +506,3 @@ }; | ||
var DEBIAN_ARCHITECTURE = process.env.DEBIAN_ARCHITECTURE ?? "amd64"; | ||
var OUTPUT_DIRECTORY = resolve(process.env.OUTPUT_DIRECTORY ?? argv[2] ?? process.cwd()); | ||
var OUTPUT_DIRECTORY = process.env.OUTPUT_DIRECTORY ?? argv[2] ?? process.cwd(); | ||
var main = async () => { | ||
@@ -501,0 +509,0 @@ console.log(`Generating metadata for '${DEBIAN_RELEASE}/${DEBIAN_COMPONENT}'...`); |
#!/usr/bin/env node | ||
// node_modules/@oliversalzburg/js-utils/format/count.js | ||
var formatCount = (count) => { | ||
return new Intl.NumberFormat(void 0, { | ||
compactDisplay: "short", | ||
maximumFractionDigits: 3, | ||
notation: "compact" | ||
}).format(count); | ||
}; | ||
// node_modules/@oliversalzburg/js-utils/format/milliseconds.js | ||
@@ -147,3 +156,3 @@ var toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0; | ||
console.log( | ||
`Merging '${DEBIAN_OBSERVABLES.length.toString()}' observables into '${OUTPUT_DIRECTORY}'...` | ||
`Merging '${formatCount(DEBIAN_OBSERVABLES.length)}' observables into '${OUTPUT_DIRECTORY}'...` | ||
); | ||
@@ -158,3 +167,3 @@ const [, duration] = await measureAsync(async () => { | ||
console.log( | ||
` Component '${DEBIAN_COMPONENT}' of '${observable}' has '${debs.length.toString()}' packages.` | ||
` Component '${DEBIAN_COMPONENT}' of '${observable}' has '${formatCount(debs.length)}' packages.` | ||
); | ||
@@ -161,0 +170,0 @@ console.log(` Merging '${observedPathDebs}' into '${OUTPUT_DIRECTORY}'...`); |
#!/usr/bin/env node | ||
// node_modules/@oliversalzburg/js-utils/format/count.js | ||
var formatCount = (count) => { | ||
return new Intl.NumberFormat(void 0, { | ||
compactDisplay: "short", | ||
maximumFractionDigits: 3, | ||
notation: "compact" | ||
}).format(count); | ||
}; | ||
// node_modules/@oliversalzburg/js-utils/format/milliseconds.js | ||
@@ -173,3 +182,3 @@ var toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0; | ||
const [hasFailed, checkedCount] = await validateJsonRecursive(OUTPUT_DIRECTORY); | ||
console.log(`Checked '${checkedCount.toLocaleString()}' files in '${OUTPUT_DIRECTORY}'.`); | ||
console.log(`Checked '${formatCount(checkedCount)}' files in '${OUTPUT_DIRECTORY}'.`); | ||
if (hasFailed) { | ||
@@ -176,0 +185,0 @@ throw new Error("Validation failed."); |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "@apt-repositories/generator", | ||
"version": "0.0.24-dev.3", | ||
"version": "0.0.24-dev.4", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Oliver Salzburg <oliver.salzburg@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80114
880