linear-sdk-cli 0.2.3 → 0.2.4

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 CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project are documented here. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.2.4](https://github.com/zhendalf/linear-sdk-cli/compare/v0.2.3...v0.2.4) (2026-08-24)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **build:** replace Prettier with Oxfmt ([#23](https://github.com/zhendalf/linear-sdk-cli/issues/23)) ([5490bdc](https://github.com/zhendalf/linear-sdk-cli/commit/5490bdcf352e731fcacc0be4c0e91266863dcfa4))
12
+
7
13
  ## [0.2.3](https://github.com/zhendalf/linear-sdk-cli/compare/v0.2.2...v0.2.3) (2026-08-24)
8
14
 
9
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-sdk-cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Ergonomic command-line interface for Linear, built on @linear/sdk",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -54,8 +54,8 @@
54
54
  "lin": "bun run src/bin/linear.ts",
55
55
  "typecheck": "tsc --noEmit",
56
56
  "lint": "oxlint .",
57
- "format": "prettier --write .",
58
- "format:check": "prettier --check .",
57
+ "format": "oxfmt .",
58
+ "format:check": "oxfmt --check .",
59
59
  "test": "bun test test/unit test/contract",
60
60
  "test:unit": "bun test test/unit",
61
61
  "test:contract": "bun test test/contract",
@@ -78,8 +78,8 @@
78
78
  "devDependencies": {
79
79
  "@types/bun": "^1.4.0",
80
80
  "@types/node": "^26.2.0",
81
+ "oxfmt": "^0.65.0",
81
82
  "oxlint": "^1.80.0",
82
- "prettier": "^3.9.6",
83
83
  "typescript": "^7.0.2"
84
84
  }
85
85
  }
@@ -295,7 +295,7 @@ async function updateSkillMd(commands: CliCommand[], groups: string[]): Promise<
295
295
 
296
296
  const before = current.slice(0, begin + BEGIN_MARKER.length);
297
297
  const after = current.slice(end);
298
- // Format chosen to match Prettier: no blank line after the opening marker,
298
+ // Format chosen to match Oxfmt: no blank line after the opening marker,
299
299
  // one blank line before the closing marker, so re-running stays a no-op.
300
300
  const block = ["", "```text", buildCommandList(commands), "```", "", ""].join("\n");
301
301
  const next = `${before}${block}${after}`;
@@ -311,18 +311,17 @@ async function updateSkillMd(commands: CliCommand[], groups: string[]): Promise<
311
311
  }
312
312
 
313
313
  /**
314
- * Run Prettier over the generated markdown so the output matches the repo's
314
+ * Run Oxfmt over the generated markdown so the output matches the repo's
315
315
  * formatting (table alignment, list spacing) and re-running stays a clean no-op.
316
- * Best-effort: if Prettier isn't available the docs are still valid markdown.
316
+ * Best-effort: if Oxfmt isn't available the docs are still valid markdown.
317
317
  */
318
318
  function formatGenerated(): void {
319
- const result = spawnSync(
320
- "bunx",
321
- ["prettier", "--write", "--log-level", "warn", `${SKILL_DIR}/**/*.md`],
322
- { stdio: "inherit", cwd: REPO_ROOT },
323
- );
319
+ const result = spawnSync("bunx", ["oxfmt", "."], {
320
+ stdio: "inherit",
321
+ cwd: SKILL_DIR,
322
+ });
324
323
  if (result.status !== 0) {
325
- console.warn("Warning: prettier formatting step skipped (non-zero exit).");
324
+ console.warn("Warning: Oxfmt formatting step skipped (non-zero exit).");
326
325
  }
327
326
  }
328
327
 
@@ -127,7 +127,9 @@ export async function collectRawQuery<T>(
127
127
  client.client.rawRequest(query, { ...variables, first: pageLimit, after }),
128
128
  );
129
129
  const conn = connectionPath.split(".").reduce((acc: any, key) => acc?.[key], data.data) as
130
- RawConnection | null | undefined;
130
+ | RawConnection
131
+ | null
132
+ | undefined;
131
133
  // A nested path (`issue.comments`) can land on null when the parent entity
132
134
  // is gone; that is an empty list, not a crash.
133
135
  if (!conn) break;