barrelize 1.1.4 → 1.1.6

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/lib/index.js CHANGED
@@ -591,7 +591,7 @@ class CAC extends EventEmitter {
591
591
  }
592
592
  const cac = (name2 = "") => new CAC(name2);
593
593
  const name = "barrelize";
594
- const version = "1.1.3";
594
+ const version = "1.1.5";
595
595
  function cliInit() {
596
596
  const cli = cac(name);
597
597
  cli.command("[config path]", `Generate 'index.ts' files for all directories`).action(async (config) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barrelize",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Automatically generating index (barrel) files",
5
5
  "scripts": {
6
6
  "build": "npm run schema && vite build",
package/schema.json CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
2
3
  "type": "object",
3
4
  "properties": {
4
5
  "$schema": {
@@ -31,10 +32,12 @@
31
32
  }
32
33
  },
33
34
  "indexFilePath": {
34
- "type": "string"
35
+ "type": "string",
36
+ "default": "index.ts"
35
37
  },
36
38
  "keepFileExtension": {
37
- "type": "boolean"
39
+ "type": "boolean",
40
+ "default": true
38
41
  },
39
42
  "replace": {
40
43
  "type": "array",
@@ -48,10 +51,7 @@
48
51
  "type": "string"
49
52
  }
50
53
  },
51
- "required": [
52
- "find",
53
- "replacement"
54
- ]
54
+ "required": ["find", "replacement"]
55
55
  }
56
56
  }
57
57
  },
@@ -59,7 +59,5 @@
59
59
  }
60
60
  }
61
61
  },
62
- "required": [
63
- "directories"
64
- ]
62
+ "required": ["directories"]
65
63
  }