@lightnet/cli 4.1.0 → 4.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lightnet/cli
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#423](https://github.com/LightNetDev/LightNet/pull/423) [`30fabef`](https://github.com/LightNetDev/LightNet/commit/30fabef4897506cf4d0194b8883257de513ec452) - Add a new `lightnet check-files` command to validate orphaned and missing content files and thumbnails in LightNet site projects.
8
+
9
+ ## 4.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#404](https://github.com/LightNetDev/LightNet/pull/404) [`5acab49`](https://github.com/LightNetDev/LightNet/commit/5acab49ca79078edbba3868b9b7bce249b2fca8a) - Update dependencies.
14
+
3
15
  ## 4.1.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -1,64 +1,15 @@
1
- # `@lightnet/cli`
1
+ # LightNet CLI
2
2
 
3
- Command-line tools for working with LightNet projects.
3
+ Command-line tools for working with LightNet sites. The CLI currently includes translation validation and file consistency checks.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install --save-dev @lightnet/cli
8
+ pnpm add --D @lightnet/cli
9
9
  ```
10
10
 
11
- You can also run the CLI without adding it to your project first:
11
+ ## LightNet CLI reference
12
12
 
13
- ```bash
14
- npx @lightnet/cli --help
15
- ```
16
-
17
- ## Usage
18
-
19
- The package exposes the `lightnet` binary:
20
-
21
- ```bash
22
- lightnet <command> [options]
23
- ```
24
-
25
- Get the full command list at any time with:
26
-
27
- ```bash
28
- lightnet --help
29
- ```
30
-
31
- ## Commands
32
-
33
- ### `check-translations`
34
-
35
- Checks the translation data produced by the latest LightNet build and reports
36
- missing locale values.
37
-
38
- ```bash
39
- lightnet check-translations
40
- ```
41
-
42
- > [!NOTE]
43
- > `check-translations` only validates translations that were actually used
44
- > during the last build. For example, it would not report a missing category
45
- > label translation if that category label was never referenced while building
46
- > the site.
47
-
48
- What it does:
49
-
50
- - Reads the cached translation build output from `node_modules/.cache/lightnet/`
51
- - Verifies every translation has values for every configured locale
52
- - Groups missing translations by source to make follow-up work clearer
53
-
54
- When to use it:
55
-
56
- - After building a LightNet site
57
- - In CI to catch incomplete translations before deploys
58
- - While adding new locales or updating translation maps
59
-
60
- Expected setup:
13
+ See command-line tools reference documentation at:
61
14
 
62
- - Run your project build first so LightNet can generate its translation cache
63
- If the cache is missing, the command will fail and prompt you to run a build
64
- first.
15
+ https://docs.lightnet.community/resources/lightnet-cli-reference/
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "CLI for managing LightNet projects",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
- "version": "4.1.0",
6
+ "version": "4.2.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -25,7 +25,7 @@
25
25
  "CHANGELOG.md"
26
26
  ],
27
27
  "dependencies": {
28
- "commander": "^14.0.3"
28
+ "commander": "^15.0.0"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=22"