build-firewall-plugin 0.1.0 → 0.1.1

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/README.md +18 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,15 +37,30 @@ module.exports = {
37
37
 
38
38
  ```
39
39
 
40
+ ## 📋 Rules file example
41
+
42
+ ```ts
43
+ // my-project-rules.json
44
+
45
+ {
46
+ "layers": {
47
+ "services": {
48
+ "allow": ["models"],
49
+ "deny": ["widgets"]
50
+ }
51
+ },
52
+ "mode": "warn"
53
+ }
54
+
55
+ ```
56
+
40
57
  ## 💾 Output Example
41
58
 
42
59
  ```bash
43
60
  [Build Firewall Plugin] Starting...
44
61
  [Build Firewall Plugin] Your build-firewall-plugin.rules.json file is valid!
45
62
 
46
- [Build Firewall Plugin] Module /src/services/api.ts imports forbidden module /src/ui/icon.tsx
47
-
48
- [Build Firewall Plugin] Module /src/router/index.ts imports forbidden module /src/models/api.ts
63
+ [Build Firewall Plugin] Module /src/services/api.ts imports forbidden module /src/widgets/main.ts
49
64
 
50
65
  ```
51
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-firewall-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",