@staff0rd/assist 0.315.0 → 0.315.1
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/dist/index.js +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.315.
|
|
9
|
+
version: "0.315.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -663,8 +663,9 @@ function setupVerifyRunEntry(scriptName, command, options2) {
|
|
|
663
663
|
// src/commands/verify/setup/expectedScripts.ts
|
|
664
664
|
var expectedScripts = {
|
|
665
665
|
"verify:knip": "knip --no-progress --treat-config-hints-as-errors",
|
|
666
|
-
"verify:lint": "oxlint --config .oxlintrc.json .",
|
|
667
|
-
"verify:
|
|
666
|
+
"verify:lint": "oxlint --config .oxlintrc.json --fix .",
|
|
667
|
+
"verify:format": "oxfmt .",
|
|
668
|
+
"verify:duplicate-code": "jscpd --format 'typescript,tsx' --exit-code 1 --ignore '**/*.test.*' -r consoleFull src",
|
|
668
669
|
"verify:test": "vitest run --reporter=dot --silent",
|
|
669
670
|
"verify:hardcoded-colors": "assist verify hardcoded-colors",
|
|
670
671
|
"verify:no-venv": "assist verify no-venv",
|
|
@@ -990,6 +991,12 @@ async function setupLint(packageJsonPath, writer) {
|
|
|
990
991
|
}
|
|
991
992
|
await init();
|
|
992
993
|
writer("verify:lint", expectedScripts["verify:lint"]);
|
|
994
|
+
if (!pkg.devDependencies?.oxfmt) {
|
|
995
|
+
if (!installPackage("oxfmt", cwd)) {
|
|
996
|
+
return;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
writer("verify:format", expectedScripts["verify:format"]);
|
|
993
1000
|
}
|
|
994
1001
|
|
|
995
1002
|
// src/commands/verify/setup/setupMaintainability.ts
|