@nitra/cursor 1.8.6 → 1.8.7
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/package.json +1 -1
- package/scripts/check-text.mjs +9 -1
package/package.json
CHANGED
package/scripts/check-text.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Перевіряє текстовий стек за правилом text.mdc.
|
|
3
3
|
*
|
|
4
|
-
* cspell, markdownlint через `bunx markdownlint-cli2` у `lint-text` (без
|
|
4
|
+
* cspell, markdownlint через `bunx markdownlint-cli2` у `lint-text` (без оголошення пакета в package.json), заборона
|
|
5
|
+
* `markdownlint-cli2` у dependencies/devDependencies, v8r (`run-v8r.mjs` або чотири `bunx v8r`),
|
|
5
6
|
* `.v8rignore` (vscode JSON),
|
|
6
7
|
* workflow `lint-text.yml`, розширення VSCode для markdownlint.
|
|
7
8
|
*
|
|
@@ -154,6 +155,13 @@ export async function check() {
|
|
|
154
155
|
fail('@nitra/cspell-dict відсутній — bun add -d @nitra/cspell-dict')
|
|
155
156
|
}
|
|
156
157
|
|
|
158
|
+
const rootDeps = pkg.dependencies || {}
|
|
159
|
+
if (devDeps['markdownlint-cli2'] || rootDeps['markdownlint-cli2']) {
|
|
160
|
+
fail(
|
|
161
|
+
'markdownlint-cli2 не додавай у dependencies/devDependencies — лише bunx у lint-text (n-text.mdc); прибери з package.json і bun i'
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
|
|
157
165
|
const lintText = pkg.scripts?.['lint-text']
|
|
158
166
|
const v8rCalls = typeof lintText === 'string' ? (lintText.match(/bunx v8r/g) || []).length : 0
|
|
159
167
|
const quietCalls = typeof lintText === 'string' ? (lintText.match(/run-v8r?\.mjs/g) || []).length : 0
|