@bensandee/tooling 0.28.0 → 0.29.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.
@@ -1,2 +1,2 @@
1
- import { a as composeDown, c as composeUp, i as composeCommand, l as createRealExecutor, n as checkHttpHealth, o as composeLogs, r as getContainerHealth, s as composePs, t as runDockerCheck } from "../check-D41R218h.mjs";
1
+ import { a as composeDown, c as composeUp, i as composeCommand, l as createRealExecutor, n as checkHttpHealth, o as composeLogs, r as getContainerHealth, s as composePs, t as runDockerCheck } from "../check-DMDdHanG.mjs";
2
2
  export { checkHttpHealth, composeCommand, composeDown, composeLogs, composePs, composeUp, createRealExecutor, getContainerHealth, runDockerCheck };
package/dist/index.d.mts CHANGED
@@ -24,18 +24,17 @@ type PackageJson = z.infer<typeof PackageJsonSchema>;
24
24
  //#region src/types.d.ts
25
25
  type CiPlatform = "github" | "forgejo" | "none";
26
26
  type ReleaseStrategy = "release-it" | "simple" | "changesets" | "none";
27
+ type Formatter = "oxfmt" | "prettier";
27
28
  /** User's answers from the interactive prompt or CLI flags. */
28
29
  interface ProjectConfig {
29
30
  /** Project name (from package.json name or user input) */
30
31
  name: string;
31
- /** Whether this is a new project or existing */
32
- isNew: boolean;
33
32
  /** Project structure */
34
33
  structure: "single" | "monorepo";
35
34
  /** Include @bensandee/eslint-plugin oxlint plugin */
36
35
  useEslintPlugin: boolean;
37
36
  /** Formatter choice */
38
- formatter: "oxfmt" | "prettier";
37
+ formatter: Formatter;
39
38
  /** Set up vitest with a starter test */
40
39
  setupVitest: boolean;
41
40
  /** CI platform choice */
@@ -102,6 +101,8 @@ interface DetectedProjectState {
102
101
  hasRepositoryField: boolean;
103
102
  /** Whether commit-and-tag-version is in root devDependencies (required for simple release strategy) */
104
103
  hasCommitAndTagVersion: boolean;
104
+ /** Git remote origin URL (for inferring repository field) */
105
+ gitRemoteUrl: string | null;
105
106
  /** Legacy tooling configs found */
106
107
  legacyConfigs: LegacyConfig[];
107
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bensandee/tooling",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "CLI tool to bootstrap and maintain standardized TypeScript project tooling",
5
5
  "bin": {
6
6
  "bst": "./dist/bin.mjs"
@@ -42,14 +42,21 @@
42
42
  "devDependencies": {
43
43
  "@types/node": "24.12.0",
44
44
  "@types/picomatch": "4.0.2",
45
- "tsdown": "0.21.2",
45
+ "tsdown": "0.21.4",
46
46
  "typescript": "5.9.3",
47
47
  "vitest": "4.1.0",
48
48
  "@bensandee/config": "0.9.1"
49
49
  },
50
50
  "optionalDependencies": {
51
- "@changesets/cli": "^2.30.0",
52
- "commit-and-tag-version": "^12.6.1"
51
+ "@changesets/cli": "2.30.0",
52
+ "@release-it/bumper": "7.0.5",
53
+ "commit-and-tag-version": "12.7.0",
54
+ "knip": "5.87.0",
55
+ "lefthook": "2.1.4",
56
+ "oxfmt": "0.41.0",
57
+ "oxlint": "1.56.0",
58
+ "prettier": "3.8.1",
59
+ "release-it": "19.2.4"
53
60
  },
54
61
  "scripts": {
55
62
  "build": "tsdown",
@@ -57,10 +57,6 @@
57
57
  "description": "Auto-detect project types for monorepo packages",
58
58
  "type": "boolean"
59
59
  },
60
- "setupDocker": {
61
- "description": "Generate Docker build/check scripts",
62
- "type": "boolean"
63
- },
64
60
  "docker": {
65
61
  "description": "Docker package overrides (package name → config)",
66
62
  "type": "object",
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import { execSync } from "node:child_process";
2
+ import { z } from "zod";
3
3
  //#region src/utils/exec.ts
4
4
  /** Type guard for `execSync` errors that carry stdout/stderr/status. */
5
5
  function isExecSyncError(err) {