@nitra/cursor 1.8.11 → 1.8.13
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/mdc/npm-module.mdc +9 -1
- package/mdc/text.mdc +14 -4
- package/package.json +1 -1
package/mdc/npm-module.mdc
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Оформлення репозиторію для npm модуля
|
|
3
3
|
alwaysApply: true
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.3'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Bun monorepo: workspace **`npm/`**, кореневий **`package.json`**, **`.github/workflows/`**; опційно **`demo/`**.
|
|
8
8
|
|
|
9
|
+
## Build версія
|
|
10
|
+
|
|
11
|
+
Після змін у **`npm/`** обовʼязково підвищ **build**-версію в **`npm/package.json`**, але не роби зайвих підвищень: між номером у файлі й тим, що вже збережено в **git** (`HEAD`), має лишатися не більше одного кроку **+1**.
|
|
12
|
+
|
|
13
|
+
У робочій копії не повинно бути більше одного незбереженого в **git** підвищення **build**-версії за раз.
|
|
14
|
+
|
|
15
|
+
**Підказка:** щоб не дублювати bump і бачити різницю зі збереженим деревом, перевір `git status npm/package.json` або `git diff HEAD -- npm/package.json` перед другим підвищенням у тій самій гілці / наборі змін.
|
|
16
|
+
|
|
9
17
|
## npm publish
|
|
10
18
|
|
|
11
19
|
**`npm-publish.yml`:** push у **`main`**, **`on.push.paths`** з **`npm/**`**, **`JS-DevTools/npm-publish@v4.1.5`**, **`with.package: npm/package.json`**, **`permissions.id-token: write`** (OIDC на npm).
|
package/mdc/text.mdc
CHANGED
|
@@ -13,11 +13,21 @@ version: '1.24'
|
|
|
13
13
|
"github.vscode-github-actions",
|
|
14
14
|
"oxc.oxc-vscode",
|
|
15
15
|
"DavidAnson.vscode-markdownlint",
|
|
16
|
-
"redhat.vscode-yaml"
|
|
16
|
+
"redhat.vscode-yaml",
|
|
17
|
+
"irongeek.vscode-env"
|
|
17
18
|
]
|
|
18
19
|
}
|
|
19
20
|
```
|
|
20
21
|
|
|
22
|
+
```json title=".vscode/settings.json"
|
|
23
|
+
{
|
|
24
|
+
"files.associations": {
|
|
25
|
+
"*.env.*": "env",
|
|
26
|
+
"*.env": "env"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
21
31
|
**`package.json`:** скрипт **`lint-text`** і devDependencies **`@nitra/cspell-dict`**. Для української додай **`@cspell/dict-uk-ua`**. **`markdownlint-cli2`** викликай у `lint-text` лише через **`bunx markdownlint-cli2`**, не додавай пакет до devDependencies. **`v8r`** лише через **`bun x v8r`** (зазвичай **`bunx v8r`**), не в devDependencies. Окремий пакет **`markdownlint`** не потрібний.
|
|
22
32
|
|
|
23
33
|
У v8r **немає** прапорця тихого режиму; рекомендовано скрипт **`run-v8r.mjs`** з репозиторію пакета `@nitra/cursor` (`npm/scripts/run-v8r.mjs`): один виклик у `lint-text` — під капотом послідовні **`bun x v8r`** для кожного типу (**json**, **json5**, **yml**, **yaml**, **toml**), бо один процес v8r з кількома глобами падає з **98**, якщо хоч один glob порожній, і тоді інші розширення не перевіряються. Вивід при кодах **0** і **98** не показується. Каталог схем **`schemas/v8r-catalog.json`** пакета `@nitra/cursor` скрипт підставляє в v8r сам. За бажання можна передати власні glob-и аргументами скрипта. Шлях до скрипта: `./npm/scripts/…`, `./scripts/…` після копіювання, або `node_modules/@nitra/cursor/scripts/…`.
|
|
@@ -28,7 +38,7 @@ version: '1.24'
|
|
|
28
38
|
"lint-text": "npx cspell . && bunx markdownlint-cli2 --fix \"**/*.md\" \"**/*.mdc\" && bun ./npm/scripts/run-v8r.mjs"
|
|
29
39
|
},
|
|
30
40
|
"devDependencies": {
|
|
31
|
-
"@nitra/cspell-dict": "^1.0.
|
|
41
|
+
"@nitra/cspell-dict": "^1.0.188"
|
|
32
42
|
}
|
|
33
43
|
}
|
|
34
44
|
```
|
|
@@ -143,7 +153,7 @@ jobs:
|
|
|
143
153
|
"lint-text": "npx cspell . && bunx markdownlint-cli2 --fix \"**/*.md\" \"**/*.mdc\" && bun ./npm/scripts/run-v8r.mjs"
|
|
144
154
|
},
|
|
145
155
|
"devDependencies": {
|
|
146
|
-
"@nitra/cspell-dict": "^1.0.
|
|
156
|
+
"@nitra/cspell-dict": "^1.0.188",
|
|
147
157
|
"@cspell/dict-uk-ua": "^4.0.6"
|
|
148
158
|
}
|
|
149
159
|
}
|
|
@@ -161,7 +171,7 @@ jobs:
|
|
|
161
171
|
"lint-text": "npx cspell . && bunx markdownlint-cli2 --fix \"**/*.md\" \"**/*.mdc\" && bun ./npm/scripts/run-v8r.mjs"
|
|
162
172
|
},
|
|
163
173
|
"devDependencies": {
|
|
164
|
-
"@nitra/cspell-dict": "^1.0.
|
|
174
|
+
"@nitra/cspell-dict": "^1.0.188",
|
|
165
175
|
"@cspell/dict-uk-ua": "^4.0.6",
|
|
166
176
|
"@cspell/dict-ru_ru": "^2.3.2"
|
|
167
177
|
}
|