barrelize 1.7.2 → 1.7.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barrelize",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Automatically generating index (barrel) files",
5
5
  "author": "Nizami",
6
6
  "license": "MIT",
@@ -38,18 +38,18 @@
38
38
  "test": "vitest run"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/parser": "^7.28.5",
42
- "@microsoft/api-extractor": "^7.55.2",
43
- "@types/node": "^25.0.3",
41
+ "@babel/parser": "^7.29.0",
42
+ "@microsoft/api-extractor": "^7.57.2",
43
+ "@types/node": "^25.3.0",
44
44
  "cac": "^6.7.14",
45
45
  "chokidar": "^5.0.0",
46
- "glob": "^13.0.0",
46
+ "glob": "^13.0.6",
47
47
  "json5": "^2.2.3",
48
48
  "tsx": "^4.21.0",
49
49
  "typescript": "~5.9.3",
50
50
  "unplugin-dts": "^1.0.0-beta.6",
51
- "vite": "^7.3.0",
52
- "vitest": "^4.0.16",
53
- "zod": "^4.2.1"
51
+ "vite": "^7.3.1",
52
+ "vitest": "^4.0.18",
53
+ "zod": "^4.3.6"
54
54
  }
55
55
  }
package/schema.json CHANGED
@@ -3,28 +3,28 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "$schema": {
6
- "description": "Path to the JSON schema file that will be used for configuration validation",
7
6
  "default": "node_modules/barrelize/schema.json",
7
+ "description": "Path to the JSON schema file that will be used for configuration validation",
8
8
  "type": "string"
9
9
  },
10
10
  "bracketSpacing": {
11
- "description": "Whether to add spaces between brackets in export statements",
12
11
  "default": true,
12
+ "description": "Whether to add spaces between brackets in export statements",
13
13
  "type": "boolean"
14
14
  },
15
15
  "singleQuote": {
16
- "description": "Whether to use single quotes instead of double quotes for exports",
17
16
  "default": true,
17
+ "description": "Whether to use single quotes instead of double quotes for exports",
18
18
  "type": "boolean"
19
19
  },
20
20
  "semi": {
21
- "description": "Whether to append semicolons to export statements",
22
21
  "default": true,
22
+ "description": "Whether to append semicolons to export statements",
23
23
  "type": "boolean"
24
24
  },
25
25
  "insertFinalNewline": {
26
- "description": "Whether to append a newline character at the end of generated files",
27
26
  "default": true,
27
+ "description": "Whether to append a newline character at the end of generated files",
28
28
  "type": "boolean"
29
29
  },
30
30
  "barrels": {
@@ -46,72 +46,72 @@
46
46
  "type": "object",
47
47
  "properties": {
48
48
  "root": {
49
- "description": "Root directory to start from (support glob pattern)",
50
49
  "default": "src",
50
+ "description": "Root directory to start from (support glob pattern)",
51
51
  "type": "string"
52
52
  },
53
53
  "name": {
54
- "description": "Name of the index file (e.g. index.ts or some/path/index.ts)",
55
54
  "default": "index.ts",
55
+ "description": "Name of the index file (e.g. index.ts or some/path/index.ts)",
56
56
  "type": "string"
57
57
  },
58
58
  "include": {
59
- "description": "Files to include in the barrel (supports glob patterns)",
60
59
  "default": [
61
60
  "**/*.ts"
62
61
  ],
62
+ "description": "Files to include in the barrel (supports glob patterns)",
63
63
  "type": "array",
64
64
  "items": {
65
65
  "type": "string"
66
66
  }
67
67
  },
68
68
  "exclude": {
69
- "description": "Files to exclude from the barrel (supports glob patterns)",
70
69
  "default": [
71
70
  "**/*.test.ts"
72
71
  ],
72
+ "description": "Files to exclude from the barrel (supports glob patterns)",
73
73
  "type": "array",
74
74
  "items": {
75
75
  "type": "string"
76
76
  }
77
77
  },
78
78
  "order": {
79
- "description": "Ordering of exports",
80
79
  "default": [],
80
+ "description": "Ordering of exports",
81
81
  "type": "array",
82
82
  "items": {
83
83
  "type": "string"
84
84
  }
85
85
  },
86
86
  "replace": {
87
- "description": "String or regular expression patterns to find and replace in export paths (e.g. {\"\\.ts$\": \"\", \"my-custom-export-path.ts\": \"my-path.ts\"})",
88
87
  "default": {
89
88
  "/\\.ts$/": ""
90
89
  },
90
+ "description": "String or regular expression patterns to find and replace in export paths (e.g. {\"\\.ts$\": \"\", \"my-custom-export-path.ts\": \"my-path.ts\"})",
91
91
  "type": "object",
92
92
  "propertyNames": {
93
93
  "type": "string"
94
94
  },
95
95
  "additionalProperties": {
96
- "description": "String or regular expression pattern to find in export paths (e.g. \"\\.ts$\", \"my-custom-export-path.ts\")",
97
- "type": "string"
96
+ "type": "string",
97
+ "description": "String or regular expression pattern to find in export paths (e.g. \"\\.ts$\", \"my-custom-export-path.ts\")"
98
98
  }
99
99
  },
100
100
  "exports": {
101
- "description": "Configuration for exports in barrel files",
102
101
  "default": {
103
102
  "**/*.ts": []
104
103
  },
104
+ "description": "Configuration for exports in barrel files",
105
105
  "type": "object",
106
106
  "propertyNames": {
107
107
  "type": "string"
108
108
  },
109
109
  "additionalProperties": {
110
- "description": "Glob pattern exports file with string or regular expression patterns (e.g. \"**/*service.ts\": [\"* as lib\", \"/(.+)Config$/ as $1LibConfig\", \"util\"])",
111
110
  "type": "array",
112
111
  "items": {
113
112
  "type": "string"
114
- }
113
+ },
114
+ "description": "Glob pattern exports file with string or regular expression patterns (e.g. \"**/*service.ts\": [\"* as lib\", \"/(.+)Config$/ as $1LibConfig\", \"util\"])"
115
115
  }
116
116
  },
117
117
  "bracketSpacing": {