@dpuse/dpuse-development 0.3.625 → 0.3.626

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/README.md CHANGED
@@ -100,7 +100,7 @@ The Bundle Analysis Reports provide detailed breakdowns of the bundle's composit
100
100
 
101
101
  |Chunk/Module/File|Composition|
102
102
  |:------ |:-----------|
103
- | dpuse-development.es.js | 299.4 kB · gz 74.7 kB · br 59.7 kB |
103
+ | dpuse-development.es.js | 299.5 kB · gz 74.7 kB · br 59.8 kB |
104
104
  |     acorn → dist/acorn.mjs | `██████████░░░░░░░░░░` 49.4% |
105
105
  |     acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 35.5% |
106
106
  |     src | `██░░░░░░░░░░░░░░░░░░` 10.8% |
@@ -5873,27 +5873,29 @@ async function Yn() {
5873
5873
  try {
5874
5874
  G("Check configuration files"), q("1️⃣ Check individual files");
5875
5875
  let e = Un((await W("config.json")).id), t = n.dirname(o(import.meta.url));
5876
- await J(t, ".editorconfig"), await J(t, ".gitattributes"), await J(t, ".gitignore", e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), await J(t, "eslint.config.ts", "eslint.config.default.ts"), await J(t, "LICENSE"), await J(t, "tsconfig.scripts.json"), ["kb"].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is NOT required by this project") : [
5876
+ await J(t, ".editorconfig"), await J(t, ".gitattributes"), await J(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"]), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), await J(t, "eslint.config.ts", ["eslint.config.default.ts"]), await J(t, "LICENSE"), await J(t, "tsconfig.scripts.json"), ["kb"].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is NOT required by this project") : [
5877
5877
  "app",
5878
5878
  "api",
5879
5879
  "development",
5880
5880
  "shared"
5881
- ].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project") : await J(t, "vite.config.ts", e.typeId === "tool" ? "vite.config.tool.ts" : "vite.config.default.ts"), await J(t, "vitest.config.ts"), K("Configuration files checked");
5881
+ ].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project") : await J(t, "vite.config.ts", e.typeId === "tool" ? ["vite.config.tool.ts", "vite.config.tool.wasm.ts"] : ["vite.config.default.ts"]), await J(t, "vitest.config.ts"), K("Configuration files checked");
5882
5882
  } catch (e) {
5883
5883
  console.error("❌ Error checking configuration files", e), process.exit(1);
5884
5884
  }
5885
5885
  }
5886
- async function J(e, t, r) {
5887
- let i = n.resolve(process.cwd(), t), a = n.resolve(e, `../${r ?? t}`), o;
5886
+ async function J(e, t, r = []) {
5887
+ let i = n.resolve(process.cwd(), t), a = r.length > 0 ? r : [t], o;
5888
5888
  try {
5889
5889
  o = await zn(i);
5890
5890
  } catch (e) {
5891
5891
  if (e.code !== "ENOENT") throw e;
5892
5892
  }
5893
- let s = await zn(a);
5894
- if (o === s) {
5895
- console.info(`ℹ️ File '${t.split("_", 1)[0] ?? t}' is the same`);
5896
- return;
5893
+ for (let r of a) {
5894
+ let i = await zn(n.resolve(e, `../${r}`));
5895
+ if (o === i) {
5896
+ console.info(`ℹ️ File '${t.split("_", 1)[0] ?? t}' is the same`);
5897
+ return;
5898
+ }
5897
5899
  }
5898
5900
  console.info(`⚠️ File '${t.split("_", 1)[0] ?? t}' is NOT the same`);
5899
5901
  }