@dpuse/dpuse-development 0.3.528 → 0.3.529

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.
@@ -6276,16 +6276,17 @@ var br = [
6276
6276
  uploadGroupName: void 0
6277
6277
  }
6278
6278
  ], xr = r(i);
6279
- async function Sr(e) {
6280
- let r;
6279
+ async function Sr(e, r) {
6280
+ e !== void 0 && $(`${e} - clear(${r})`);
6281
+ let i;
6281
6282
  try {
6282
- r = await t.readdir(e, { withFileTypes: !0 });
6283
+ i = await t.readdir(r, { withFileTypes: !0 });
6283
6284
  } catch (e) {
6284
6285
  if (e.code === "ENOENT") return;
6285
6286
  throw e;
6286
6287
  }
6287
- await Promise.all(r.map(async (r) => {
6288
- let i = n.join(e, r.name);
6288
+ await Promise.all(i.map(async (e) => {
6289
+ let i = n.join(r, e.name);
6289
6290
  try {
6290
6291
  await t.rm(i, {
6291
6292
  recursive: !0,
@@ -6699,7 +6700,7 @@ async function oi() {
6699
6700
  var si = "<!-- DEPENDENCY_LICENSES_START -->", ci = "<!-- DEPENDENCY_LICENSES_END -->", li = "<!-- DEPENDENCY_TREE_START -->", ui = "<!-- DEPENDENCY_TREE_END -->";
6700
6701
  async function di(e = "MIT") {
6701
6702
  try {
6702
- Ar("Document Dependencies"), await Sr("licenses/downloads"), await wr("1️⃣ Identify production licenses", "license-checker-rseidelsohn", [
6703
+ Ar("Document Dependencies"), await Sr("1️⃣ Clear downloaded licenses", "licenses/downloads"), await wr("2️⃣ Identify production licenses", "license-checker-rseidelsohn", [
6703
6704
  "--production",
6704
6705
  "--json",
6705
6706
  "--files",
@@ -6710,12 +6711,12 @@ async function di(e = "MIT") {
6710
6711
  `"${e}"`,
6711
6712
  "--out",
6712
6713
  "licenses/licenses.json"
6713
- ]), await Tr("2️⃣ Identify transitive dependencies", "npm", [
6714
+ ]), await Tr("3️⃣ Identify transitive dependencies", "npm", [
6714
6715
  "ls",
6715
6716
  "--all",
6716
6717
  "--json",
6717
6718
  "--omit=dev"
6718
- ], "licenses/licenseTree.json"), await fi("3️⃣"), jr("Dependencies documented.");
6719
+ ], "licenses/licenseTree.json"), await fi("4️⃣"), jr("Dependencies documented.");
6719
6720
  } catch (e) {
6720
6721
  console.error("❌ Error documenting dependencies.", e), process.exit(1);
6721
6722
  }