diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 1a9af16..e32e193 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -1,9 +1,9 @@ -name: autofix.ci # needed to securely identify the workflow +name: autofix.ci # needed to securely identify the workflow on: pull_request: push: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -23,4 +23,4 @@ jobs: run: pnpm run lint:fix - uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc with: - commit-message: 'chore: apply automated lint fixes' + commit-message: "chore: apply automated lint fixes" diff --git a/package.json b/package.json index 8e649cd..bfbd762 100644 --- a/package.json +++ b/package.json @@ -46,4 +46,4 @@ "vitest": "^0.34.6" }, "packageManager": "pnpm@8.10.3" -} \ No newline at end of file +} diff --git a/playground/commands/build.ts b/playground/commands/build.ts index 4d8eb30..f4db18a 100644 --- a/playground/commands/build.ts +++ b/playground/commands/build.ts @@ -1,4 +1,4 @@ -import consola from 'consola' +import consola from "consola"; import { defineCommand } from "../../src"; export default defineCommand({ diff --git a/playground/commands/deploy.ts b/playground/commands/deploy.ts index fbbe45b..8f5db76 100644 --- a/playground/commands/deploy.ts +++ b/playground/commands/deploy.ts @@ -1,4 +1,4 @@ -import consola from 'consola' +import consola from "consola"; import { defineCommand } from "../../src"; export default defineCommand({ diff --git a/src/_parser.ts b/src/_parser.ts index 2a53a0f..bd2f6e6 100644 --- a/src/_parser.ts +++ b/src/_parser.ts @@ -29,15 +29,15 @@ function toVal(out, key, val, opts) { ? "" : String(val) : typeof val === "boolean" - ? val - : ~opts.boolean.indexOf(key) - ? val === "false" - ? false - : val === "true" || - (out._.push(((x = +val), x * 0 === 0) ? x : val), !!val) - : ((x = +val), x * 0 === 0) - ? x - : val; + ? val + : ~opts.boolean.indexOf(key) + ? val === "false" + ? false + : val === "true" || + (out._.push(((x = +val), x * 0 === 0) ? x : val), !!val) + : ((x = +val), x * 0 === 0) + ? x + : val; out[key] = old == undefined ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt]; }