@vlandoss/run-run 0.0.2 → 0.0.4-git-9119cbe.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/run-run",
3
- "version": "0.0.2",
3
+ "version": "0.0.4-git-9119cbe.0",
4
4
  "description": "The CLI toolbox to fullstack common scripts in Variable Land",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/packages/run-run#readme",
6
6
  "bugs": {
@@ -25,14 +25,14 @@
25
25
  "tsconfig.json"
26
26
  ],
27
27
  "dependencies": {
28
- "@biomejs/biome": "1.9.4",
28
+ "@biomejs/biome": "2.1.4",
29
29
  "commander": "13.1.0",
30
30
  "glob": "^11.0.2",
31
31
  "is-ci": "4.1.0",
32
32
  "rimraf": "6.0.1",
33
33
  "typescript": "5.8.2",
34
- "@vlandoss/clibuddy": "0.0.2",
35
- "@vlandoss/loggy": "0.0.2"
34
+ "@vlandoss/clibuddy": "0.0.3",
35
+ "@vlandoss/loggy": "0.0.3"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
package/src/main.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isProcessOutput } from "@vlandoss/clibuddy";
2
- import { type Options, createProgram } from "./program";
2
+ import { createProgram, type Options } from "./program";
3
3
  import { logger } from "./services/logger";
4
4
 
5
5
  export async function main(options: Options) {
@@ -153,3 +153,34 @@ exports[`should match "lint" command 1`] = `"biome check --colors=force --format
153
153
  exports[`should match "test:static" command 1`] = `"biome check --colors=force"`;
154
154
 
155
155
  exports[`should match "typecheck" command 1`] = `"tsc --noEmit"`;
156
+
157
+ exports[`should match help message for command "biome" 1`] = `
158
+ "Biome official CLI. Use it to check the health of your project or run it to check single files.
159
+
160
+ Usage: biome COMMAND ...
161
+
162
+ Available options:
163
+ -h, --help Prints help information
164
+ -V, --version Prints version information
165
+
166
+ Available commands:
167
+ version Shows the Biome version information and quit.
168
+ rage Prints information for debugging.
169
+ start Starts the Biome daemon server process.
170
+ stop Stops the Biome daemon server process.
171
+ check Runs formatter, linter and import sorting to the requested files.
172
+ lint Run various checks on a set of files.
173
+ format Run the formatter on a set of files.
174
+ ci Command to use in CI environments. Runs formatter, linter and import sorting to
175
+ the requested files.
176
+ init Bootstraps a new biome project. Creates a configuration file with some defaults.
177
+ lsp-proxy Acts as a server for the Language Server Protocol over stdin/stdout.
178
+ migrate Updates the configuration when there are breaking changes.
179
+ search EXPERIMENTAL: Searches for Grit patterns across a project.
180
+ explain Shows documentation of various aspects of the CLI.
181
+ clean Cleans the logs emitted by the daemon.
182
+
183
+ "
184
+ `;
185
+
186
+ exports[`should match "biome" command 1`] = `"biome "`;
@@ -0,0 +1,14 @@
1
+ import { createCommand } from "commander";
2
+ import type { Context } from "~/services/ctx";
3
+
4
+ export function createBiomeCommand(ctx: Context) {
5
+ return createCommand("biome")
6
+ .description("expose the biome binary 🛠️")
7
+ .helpCommand(false)
8
+ .helpOption(false)
9
+ .allowExcessArguments(true)
10
+ .allowUnknownOption(true)
11
+ .action(async function biomeAction(_, { args }) {
12
+ await ctx.shell.$`biome ${args.join(" ")}`;
13
+ });
14
+ }
@@ -1,6 +1,5 @@
1
1
  import { createCommand } from "commander";
2
2
  import type { Context } from "~/services/ctx";
3
- import { logger } from "~/services/logger";
4
3
 
5
4
  export function createFormatCommand(ctx: Context) {
6
5
  return createCommand("format")
@@ -1,6 +1,5 @@
1
1
  import { createCommand } from "commander";
2
2
  import type { Context } from "~/services/ctx";
3
- import { logger } from "~/services/logger";
4
3
 
5
4
  export function createLintCommand(ctx: Context) {
6
5
  return createCommand("lint")
@@ -1,8 +1,6 @@
1
- import { isProcessOutput } from "@vlandoss/clibuddy";
2
1
  import { createCommand } from "commander";
3
2
  import isCI from "is-ci";
4
3
  import type { Context } from "~/services/ctx";
5
- import { logger } from "~/services/logger";
6
4
 
7
5
  export function createTestStaticCommand(ctx: Context) {
8
6
  return createCommand("test:static")
@@ -1,4 +1,4 @@
1
- import { type Project, isProcessOutput } from "@vlandoss/clibuddy";
1
+ import type { Project } from "@vlandoss/clibuddy";
2
2
  import { createCommand } from "commander";
3
3
  import type { Context } from "~/services/ctx";
4
4
  import { logger } from "~/services/logger";
@@ -1,6 +1,7 @@
1
1
  import { getVersion } from "@vlandoss/clibuddy";
2
2
  import { Command } from "commander";
3
3
  import { createContext } from "~/services/ctx";
4
+ import { createBiomeCommand } from "./commands/biome";
4
5
  import { createCleanCommand } from "./commands/clean";
5
6
  import { createFormatCommand } from "./commands/format";
6
7
  import { createInfoPkgCommand } from "./commands/info-pkg";
@@ -26,7 +27,10 @@ export async function createProgram(options: Options) {
26
27
  .addCommand(createTestStaticCommand(ctx))
27
28
  .addCommand(createCleanCommand())
28
29
  .addCommand(createTypecheckCommand(ctx))
29
- .addCommand(createInfoPkgCommand(ctx));
30
+ .addCommand(createInfoPkgCommand(ctx))
31
+ .addCommand(createBiomeCommand(ctx), {
32
+ hidden: true,
33
+ });
30
34
 
31
35
  return { cmd, ctx };
32
36
  }
@@ -1,5 +1,5 @@
1
1
  import fs from "node:fs";
2
- import { type PkgService, type ShellService, createPkgService, createShellService, cwd } from "@vlandoss/clibuddy";
2
+ import { createPkgService, createShellService, cwd, type PkgService, type ShellService } from "@vlandoss/clibuddy";
3
3
  import { logger } from "./logger";
4
4
 
5
5
  export type Context = {