barrelize 1.6.2 → 1.6.3

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.
Files changed (2) hide show
  1. package/lib/index.js +28 -5
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -594,7 +594,7 @@ class CAC extends EventEmitter {
594
594
  }
595
595
  const cac = (name2 = "") => new CAC(name2);
596
596
  const name = "barrelize";
597
- const version = "1.6.1";
597
+ const version = "1.6.3";
598
598
  function cliInit() {
599
599
  const cli = cac(name);
600
600
  cli.command("[config path]", `Generate barrel files`).option("-w, --watch", "Watch for changes and regenerate barrel files automatically").action(async (configPath, options) => {
@@ -682,8 +682,16 @@ function require_validateReport() {
682
682
  return path2.length > last.length || last.substring(0, path2.length) !== path2;
683
683
  };
684
684
  return (exceptable, error) => {
685
- if (exceptable && reportable(error.path))
685
+ var _a;
686
+ if (exceptable && reportable(error.path)) {
687
+ if (error.value === void 0)
688
+ (_a = error.description) !== null && _a !== void 0 ? _a : error.description = [
689
+ "The value at this path is `undefined`.",
690
+ "",
691
+ `Please fill the \`${error.expected}\` typed value next time.`
692
+ ].join("\n");
686
693
  array.push(error);
694
+ }
687
695
  return false;
688
696
  };
689
697
  };
@@ -831,7 +839,12 @@ const validateGenerateOptions = (() => {
831
839
  return _report(_exceptionable, {
832
840
  path: _path + _accessExpressionAsStringExports._accessExpressionAsString(key2),
833
841
  expected: "undefined",
834
- value
842
+ value,
843
+ description: [
844
+ `The property \`${key2}\` is not defined in the object type.`,
845
+ "",
846
+ "Please remove the property next time."
847
+ ].join("\n")
835
848
  });
836
849
  }).every((flag) => flag))].every((flag) => flag);
837
850
  const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
@@ -1054,7 +1067,12 @@ const validateConfig = (() => {
1054
1067
  return _report(_exceptionable, {
1055
1068
  path: _path + _accessExpressionAsStringExports._accessExpressionAsString(key2),
1056
1069
  expected: "undefined",
1057
- value
1070
+ value,
1071
+ description: [
1072
+ `The property \`${key2}\` is not defined in the object type.`,
1073
+ "",
1074
+ "Please remove the property next time."
1075
+ ].join("\n")
1058
1076
  });
1059
1077
  }).every((flag) => flag))].every((flag) => flag);
1060
1078
  const _vo1 = (input, _path, _exceptionable = true) => [void 0 === input.root || "string" === typeof input.root || _report(_exceptionable, {
@@ -1142,7 +1160,12 @@ const validateConfig = (() => {
1142
1160
  return _report(_exceptionable, {
1143
1161
  path: _path + _accessExpressionAsStringExports._accessExpressionAsString(key2),
1144
1162
  expected: "undefined",
1145
- value
1163
+ value,
1164
+ description: [
1165
+ `The property \`${key2}\` is not defined in the object type.`,
1166
+ "",
1167
+ "Please remove the property next time."
1168
+ ].join("\n")
1146
1169
  });
1147
1170
  }).every((flag) => flag))].every((flag) => flag);
1148
1171
  const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barrelize",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Automatically generating index (barrel) files",
5
5
  "scripts": {
6
6
  "build": "npm run schema && vite build",
@@ -23,7 +23,7 @@
23
23
  "devDependencies": {
24
24
  "@babel/parser": "^7.28.0",
25
25
  "@ryoppippi/unplugin-typia": "^2.6.5",
26
- "@types/node": "^24.0.10",
26
+ "@types/node": "^24.1.0",
27
27
  "cac": "^6.7.14",
28
28
  "chokidar": "^4.0.3",
29
29
  "glob": "^11.0.3",
@@ -31,8 +31,8 @@
31
31
  "ts-json-schema-generator": "^2.4.0",
32
32
  "ts-patch": "^3.3.0",
33
33
  "typescript": "~5.8.3",
34
- "typia": "^9.3.1",
35
- "vite": "^7.0.2",
34
+ "typia": "^9.6.0",
35
+ "vite": "^7.0.6",
36
36
  "vite-plugin-dts": "^4.5.4",
37
37
  "vitest": "^3.2.4"
38
38
  },