refactor: simplify audited mechanisms and quality evidence (#314)
This commit is contained in:
1 parent
7653164192
commit
fe1e31c8bb
29 files changed
+761
-1107
No files matched your search
@@ -6,11 +6,10 @@ import { dirname, extname, relative, resolve, sep } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const repositoryFiles = execFileSync(
|
||||
"git",
|
||||
["ls-files", "--cached", "--others", "--exclude-standard"],
|
||||
{ cwd: root, encoding: "utf8" },
|
||||
)
|
||||
const repositoryFiles = execFileSync("git", ["ls-files", "--cached"], {
|
||||
cwd: root,
|
||||
encoding: "utf8",
|
||||
})
|
||||
.trim()
|
||||
.split(/\r?\n/u)
|
||||
.filter((file) => file && existsSync(resolve(root, file)));
|
||||
|
||||
Reference in new issue
Block a user