@staff0rd/assist 0.205.1 → 0.206.0
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/README.md +1 -1
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@ After installation, the `assist` command will be available globally. You can als
|
|
|
117
117
|
- `assist config list` - List all config values
|
|
118
118
|
- `assist verify` - Run all verify:* commands in parallel (from run configs in assist.yml and scripts in package.json)
|
|
119
119
|
- `assist verify all` - Run all checks, ignoring diff-based filters
|
|
120
|
-
- `assist verify init` - Add verify scripts to a project
|
|
120
|
+
- `assist verify init` - Add verify scripts to a project (writes to `assist.yml` by default; pass `--package-json` to write to `package.json` scripts instead)
|
|
121
121
|
- `assist verify hardcoded-colors` - Check for hardcoded hex colors in src/ (supports `hardcodedColors.ignore` globs in config)
|
|
122
122
|
- `assist lint [-f, --fix]` - Run lint checks for conventions not enforced by biomejs (use `-f` to auto-fix)
|
|
123
123
|
- `assist lint init` - Initialize Biome with standard linter config
|
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.
|
|
9
|
+
version: "0.206.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -3192,10 +3192,7 @@ function detectExistingSetup(pkg) {
|
|
|
3192
3192
|
...buildToolStatuses(pkg, configScriptNames),
|
|
3193
3193
|
hasVite: hasDep(pkg, "vite"),
|
|
3194
3194
|
hasTypescript: !!pkg.devDependencies?.typescript,
|
|
3195
|
-
hasOpenColor: hasDep(pkg, "open-color")
|
|
3196
|
-
hasConfigScripts: [...configScriptNames].some(
|
|
3197
|
-
(n) => n.startsWith("verify:")
|
|
3198
|
-
)
|
|
3195
|
+
hasOpenColor: hasDep(pkg, "open-color")
|
|
3199
3196
|
};
|
|
3200
3197
|
}
|
|
3201
3198
|
|
|
@@ -3326,12 +3323,12 @@ async function promptForScripts(availableOptions) {
|
|
|
3326
3323
|
}
|
|
3327
3324
|
return selected;
|
|
3328
3325
|
}
|
|
3329
|
-
async function init2() {
|
|
3326
|
+
async function init2(options2 = {}) {
|
|
3330
3327
|
const { packageJsonPath, pkg } = requirePackageJson();
|
|
3331
3328
|
const setup2 = detectExistingSetup(pkg);
|
|
3332
3329
|
const selected = await promptForScripts(getAvailableOptions(setup2));
|
|
3333
3330
|
if (!selected) return;
|
|
3334
|
-
const writer =
|
|
3331
|
+
const writer = options2.packageJson ? (name, cmd) => setupVerifyScript(packageJsonPath, name, cmd) : setupVerifyRunEntry;
|
|
3335
3332
|
const handlers2 = getSetupHandlers(
|
|
3336
3333
|
setup2.hasVite,
|
|
3337
3334
|
setup2.hasTypescript,
|
|
@@ -12210,7 +12207,10 @@ function registerVerify(program2) {
|
|
|
12210
12207
|
run2({ ...options2, all: scope === "all" });
|
|
12211
12208
|
});
|
|
12212
12209
|
verifyCommand.command("list").description("List configured verify commands").action(list);
|
|
12213
|
-
verifyCommand.command("init").description("Add verify scripts to a project").
|
|
12210
|
+
verifyCommand.command("init").description("Add verify scripts to a project").option(
|
|
12211
|
+
"--package-json",
|
|
12212
|
+
"Write scripts to package.json instead of assist.yml"
|
|
12213
|
+
).action(init2);
|
|
12214
12214
|
verifyCommand.command("hardcoded-colors").description("Check for hardcoded hex colors in src/").action(hardcodedColors);
|
|
12215
12215
|
verifyCommand.command("no-venv").description("Check that no venv folders exist in the repo").action(noVenv);
|
|
12216
12216
|
}
|