nanos-lint 2.7.0 → 2.8.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/README.md CHANGED
@@ -60,6 +60,13 @@ npx nanos-lint init
60
60
  ```
61
61
  This generates a `.luarc.json` file in your workspace pointing to the nanos world definitions and schemas.
62
62
 
63
+ ### 4. Pre-warm Cache for Offline / Docker Environments
64
+
65
+ To pre-populate all required assets (both LuaLS binary and nanos world annotations) for air-gapped CI or container builds:
66
+ ```bash
67
+ npx nanos-lint warmup
68
+ ```
69
+
63
70
  ---
64
71
 
65
72
  ## GitHub Actions Integration
@@ -117,6 +124,10 @@ nanos-lint [command] [options] [path]
117
124
  COMMANDS:
118
125
  check [path] Check a workspace or Lua file (default)
119
126
  init [path] Scaffold a .luarc.json configuration in the workspace (copies definitions to .nanos-lint/; supports --annotations <path>)
127
+ warmup, download Pre-fetch and cache both LuaLS binary and annotations for offline execution
128
+ cache status, cache info Show cache status, installed versions, and disk usage (supports --json)
129
+ cache clean Clear the nanos-lint cache directory
130
+ cache-status Alias for cache status
120
131
  download-luals [version] Download and cache the LuaLS binary (the version can also be passed via --luals-version <ver>)
121
132
  clean-cache, clean Clear the nanos-lint cache directory
122
133
  help, --help, -h Show help message
@@ -162,7 +173,7 @@ If your project already has a `.luarc.json`, `nanos-lint` automatically merges i
162
173
 
163
174
  ```json
164
175
  {
165
- "$schema": "https://raw.githubusercontent.com/LuaLS/lua-language-server/master/setting/schema.json",
176
+ "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
166
177
  "diagnostics": {
167
178
  "disable": [
168
179
  "lowercase-global"
package/action.yml CHANGED
@@ -118,5 +118,5 @@ runs:
118
118
  else
119
119
  # Exact version: a range could run a different release than the pinned
120
120
  # tag. Bump together with "version" in package.json.
121
- npx --yes nanos-lint@2.7.0 "${ARGS[@]}"
121
+ npx --yes nanos-lint@2.8.0 "${ARGS[@]}"
122
122
  fi