okforest 0.6.1 → 0.7.0

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 +11 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -9,6 +9,16 @@ npx okforest validate . # exit 1 on errors; warnings never fail
9
9
  npx okforest validate . --format json # for CI and tools
10
10
  npx okforest inventory . # types, tags, keys, near-duplicates
11
11
  npx okforest init sales-okf --template company --name "Sales knowledge"
12
+ npx okforest rule okf/type # why a rule exists, and how to fix it
13
+ ```
14
+
15
+ `npx` runs it without installing anything. It needs Node.js 22 or later. To
16
+ run `okforest` directly, install it globally; in a repository, add it as a
17
+ development dependency instead, so everyone and CI run the same version:
18
+
19
+ ```sh
20
+ npm install --global okforest
21
+ npm install --save-dev okforest
12
22
  ```
13
23
 
14
24
  To also check D2 and Mermaid diagram syntax, install the optional packages
@@ -16,6 +26,7 @@ alongside it:
16
26
 
17
27
  ```sh
18
28
  npx -p okforest -p @d2lang/d2 -p mermaid okforest validate .
29
+ npm install --save-dev okforest @d2lang/d2 mermaid # or in a repository
19
30
  ```
20
31
 
21
32
  In GitHub Actions, use
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "okforest",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "The OKForest CLI: validate Open Knowledge Format (OKF) v0.2 trees, inventory their metadata, and scaffold new trees from templates.",
5
5
  "keywords": [
6
6
  "okf",
@@ -32,8 +32,8 @@
32
32
  "node": ">=22"
33
33
  },
34
34
  "dependencies": {
35
- "@okforest/okf": "0.6.1",
36
- "@okforest/validate": "0.6.1"
35
+ "@okforest/okf": "0.7.0",
36
+ "@okforest/validate": "0.7.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^26.6.5",