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 +12 -1
- package/action.yml +1 -1
- package/dist/{cli-sEO_MZ-K.js → cli-DGez8MSI.js} +643 -203
- package/dist/cli-DGez8MSI.js.map +1 -0
- package/dist/cli-r8LDolDk.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +108 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/templates/.luarc.json +15 -21
- package/dist/cli-sEO_MZ-K.js.map +0 -1
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
|
|
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