scaffoldrite 1.0.0 → 1.0.2

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.
@@ -388,7 +388,7 @@ mustHaveFile src index.ts
388
388
  - `fileNameRegex <path> <regex>`: Ensures all files in folder match regex.
389
389
 
390
390
  ```bash
391
- - fileNameRegex src ^[a-z]+\.ts$
391
+ fileNameRegex src ^[a-z]+\.ts$
392
392
  ```
393
393
 
394
394
 
@@ -428,7 +428,7 @@ minFolders src 1
428
428
  - `maxDepth <path> <number>`: Limits nesting depth.
429
429
 
430
430
  ```bash
431
- -maxDepth src 3
431
+ maxDepth src 3
432
432
  ```
433
433
 
434
434
 
package/dist/validator.js CHANGED
@@ -206,7 +206,6 @@ function validateConstraints(root, constraints) {
206
206
  if (!exists)
207
207
  throw new Error(`Constraint failed: ${c.path} must have file ${c.value}`);
208
208
  }
209
- // ⭐ NEW RULES ⭐
210
209
  if (c.type === "eachFolderMustContain") {
211
210
  const folders = getFoldersByScope(root, c.path, c.scope);
212
211
  for (const folder of folders) {
package/dist/visitor.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.visit = visit;
4
4
  function visit(node, visitor, currentPath = "") {
5
- // 👇 ignore virtual root in path
5
+ // ignore virtual root in path
6
6
  const isVirtualRoot = node.name === "__root__";
7
7
  const nodePath = isVirtualRoot
8
8
  ? currentPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scaffoldrite",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A project structure validator and generator CLI tool.",
5
5
  "author": "Isaac Anasonye",
6
6
  "license": "MIT",