@nitra/cursor 1.8.180 → 1.8.184
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 +37 -5
- package/mdc/ga.mdc +23 -1
- package/mdc/js-run.mdc +21 -1
- package/package.json +4 -4
- package/scripts/check-abie.mjs +1 -0
- package/scripts/check-changelog.mjs +49 -50
- package/scripts/check-ga.mjs +69 -8
- package/scripts/check-hasura.mjs +1 -0
- package/scripts/check-image.mjs +11 -7
- package/scripts/check-js-bun-db.mjs +3 -22
- package/scripts/check-js-lint.mjs +3 -1
- package/scripts/check-js-mssql.mjs +5 -23
- package/scripts/check-js-run.mjs +37 -3
- package/scripts/check-k8s.mjs +32 -31
- package/scripts/check-vue.mjs +17 -10
- package/scripts/claude-stop-hook.mjs +1 -0
- package/scripts/lint-ga.mjs +0 -1
- package/scripts/run-docker.mjs +1 -0
- package/scripts/run-k8s.mjs +1 -0
- package/scripts/utils/bun-sql-scan.mjs +1 -2
- package/scripts/utils/depcheck-workflow.mjs +188 -0
- package/scripts/utils/find-package-json-paths.mjs +30 -0
- package/scripts/utils/load-cursor-config.mjs +3 -1
- package/scripts/utils/oxlint-canonical.json +3 -16
- package/scripts/utils/walkDir.mjs +4 -2
|
@@ -17,7 +17,9 @@ import { isAbsolute, join, resolve, sep } from 'node:path'
|
|
|
17
17
|
*/
|
|
18
18
|
function toAbsPosix(p) {
|
|
19
19
|
const abs = isAbsolute(p) ? p : resolve(p)
|
|
20
|
-
|
|
20
|
+
let posix = abs.split(sep).join('/')
|
|
21
|
+
while (posix.endsWith('/')) posix = posix.slice(0, -1)
|
|
22
|
+
return posix
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
/**
|
|
@@ -43,7 +45,7 @@ function isIgnoredDir(dirAbsPosix, ignorePosix) {
|
|
|
43
45
|
* @returns {Promise<void>} резолвиться по завершенню обходу
|
|
44
46
|
*/
|
|
45
47
|
export async function walkDir(dir, onFile, ignorePaths = []) {
|
|
46
|
-
const ignorePosix = ignorePaths.map(toAbsPosix)
|
|
48
|
+
const ignorePosix = ignorePaths.map(p => toAbsPosix(p))
|
|
47
49
|
await walkDirInner(dir, onFile, ignorePosix)
|
|
48
50
|
}
|
|
49
51
|
|