@vlandoss/run-run 0.0.20 → 0.0.21
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 +7 -3
- package/src/main.ts +3 -3
- package/src/program/__tests__/snapshots.test.ts +1 -1
- package/src/program/commands/build-lib.ts +2 -2
- package/src/program/commands/clean.ts +1 -1
- package/src/program/commands/config.ts +1 -1
- package/src/program/commands/format.ts +4 -4
- package/src/program/commands/jscheck.ts +3 -3
- package/src/program/commands/lint.ts +4 -4
- package/src/program/commands/pkgs.ts +2 -2
- package/src/program/commands/run.ts +1 -1
- package/src/program/commands/test-static.ts +2 -2
- package/src/program/commands/tools.ts +6 -6
- package/src/program/commands/tscheck.ts +3 -3
- package/src/program/index.ts +13 -13
- package/src/program/parse-args.ts +1 -1
- package/src/services/biome.ts +3 -3
- package/src/services/config.ts +2 -2
- package/src/services/ctx.ts +3 -3
- package/src/services/oxfmt.ts +3 -3
- package/src/services/oxlint.ts +3 -3
- package/src/services/tool.ts +1 -1
- package/src/services/tsdown.ts +2 -2
- package/src/utils/gracefullBinDir.ts +1 -1
- package/tsconfig.json +1 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vlandoss/run-run",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
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": {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "rcrd <rcrd@variable.land>",
|
|
15
15
|
"type": "module",
|
|
16
|
+
"imports": {
|
|
17
|
+
"#src/*": "./src/*",
|
|
18
|
+
"#test/*": "./test/*"
|
|
19
|
+
},
|
|
16
20
|
"exports": {
|
|
17
21
|
"./config": {
|
|
18
22
|
"bun": "./src/lib/config.ts",
|
|
@@ -52,8 +56,8 @@
|
|
|
52
56
|
"rimraf": "6.1.3",
|
|
53
57
|
"tsdown": "0.21.0-beta.2",
|
|
54
58
|
"typescript": "5.9.3",
|
|
55
|
-
"@vlandoss/clibuddy": "0.0.
|
|
56
|
-
"@vlandoss/loggy": "0.0.
|
|
59
|
+
"@vlandoss/clibuddy": "0.0.10",
|
|
60
|
+
"@vlandoss/loggy": "0.0.7"
|
|
57
61
|
},
|
|
58
62
|
"publishConfig": {
|
|
59
63
|
"access": "public"
|
package/src/main.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { run } from "@vlandoss/clibuddy";
|
|
2
|
-
import { createProgram, type Options } from "./program";
|
|
3
|
-
import { parseArgs } from "./program/parse-args";
|
|
4
|
-
import { logger } from "./services/logger";
|
|
2
|
+
import { createProgram, type Options } from "./program/index.ts";
|
|
3
|
+
import { parseArgs } from "./program/parse-args.ts";
|
|
4
|
+
import { logger } from "./services/logger.ts";
|
|
5
5
|
|
|
6
6
|
export async function main(options: Options) {
|
|
7
7
|
await run(async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { afterEach, expect, test } from "bun:test";
|
|
2
|
-
import { createTestProgram, execCli, mocked } from "#test/helpers";
|
|
2
|
+
import { createTestProgram, execCli, mocked } from "#test/helpers.ts";
|
|
3
3
|
|
|
4
4
|
const { program, ctx } = await createTestProgram();
|
|
5
5
|
const $ = ctx.shell.$;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { TOOL_LABELS } from "
|
|
3
|
-
import type { Context } from "
|
|
2
|
+
import { TOOL_LABELS } from "#src/program/ui.ts";
|
|
3
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
4
4
|
|
|
5
5
|
export function createBuildLibCommand(ctx: Context) {
|
|
6
6
|
return createCommand("build:lib")
|
|
@@ -2,7 +2,7 @@ import { cwd } from "@vlandoss/clibuddy";
|
|
|
2
2
|
import { createCommand } from "commander";
|
|
3
3
|
import { type GlobOptions, glob } from "glob";
|
|
4
4
|
import { rimraf } from "rimraf";
|
|
5
|
-
import { logger } from "
|
|
5
|
+
import { logger } from "#src/services/logger.ts";
|
|
6
6
|
import { TOOL_LABELS } from "../ui";
|
|
7
7
|
|
|
8
8
|
type Options = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { palette } from "@vlandoss/clibuddy";
|
|
2
2
|
import { createCommand } from "commander";
|
|
3
|
-
import type { Context } from "
|
|
3
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
4
4
|
|
|
5
5
|
export function createConfigCommand(ctx: Context) {
|
|
6
6
|
return createCommand("config")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { BiomeService } from "
|
|
3
|
-
import type { Context } from "
|
|
4
|
-
import { OxfmtService } from "
|
|
5
|
-
import type { Formatter } from "
|
|
2
|
+
import { BiomeService } from "#src/services/biome.ts";
|
|
3
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
4
|
+
import { OxfmtService } from "#src/services/oxfmt.ts";
|
|
5
|
+
import type { Formatter } from "#src/types/tool.ts";
|
|
6
6
|
|
|
7
7
|
type ActionOptions = {
|
|
8
8
|
fix?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { BiomeService } from "
|
|
3
|
-
import type { Context } from "
|
|
4
|
-
import type { StaticChecker } from "
|
|
2
|
+
import { BiomeService } from "#src/services/biome.ts";
|
|
3
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
4
|
+
import type { StaticChecker } from "#src/types/tool.ts";
|
|
5
5
|
|
|
6
6
|
type ActionOptions = {
|
|
7
7
|
fix?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { BiomeService } from "
|
|
3
|
-
import type { Context } from "
|
|
4
|
-
import { OxlintService } from "
|
|
5
|
-
import type { Linter } from "
|
|
2
|
+
import { BiomeService } from "#src/services/biome.ts";
|
|
3
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
4
|
+
import { OxlintService } from "#src/services/oxlint.ts";
|
|
5
|
+
import type { Linter } from "#src/types/tool.ts";
|
|
6
6
|
|
|
7
7
|
type ActionOptions = {
|
|
8
8
|
check?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { type Command, createCommand, Option } from "commander";
|
|
3
3
|
import memoize from "memoize";
|
|
4
|
-
import type { Context } from "
|
|
5
|
-
import { logger } from "
|
|
4
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
5
|
+
import { logger } from "#src/services/logger.ts";
|
|
6
6
|
|
|
7
7
|
// Currently only "turbo" is supported, but this can be extended in the future
|
|
8
8
|
const decorators = ["turbo"] as const;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { TOOL_LABELS } from "
|
|
3
|
-
import type { Context } from "
|
|
2
|
+
import { TOOL_LABELS } from "#src/program/ui.ts";
|
|
3
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
4
4
|
|
|
5
5
|
export function createTestStaticCommand(ctx: Context) {
|
|
6
6
|
return createCommand("test:static")
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ShellService } from "@vlandoss/clibuddy";
|
|
2
2
|
import { createCommand } from "commander";
|
|
3
|
-
import { BiomeService } from "
|
|
4
|
-
import type { Context } from "
|
|
5
|
-
import { OxfmtService } from "
|
|
6
|
-
import { OxlintService } from "
|
|
7
|
-
import type { ToolService } from "
|
|
8
|
-
import { TsdownService } from "
|
|
3
|
+
import { BiomeService } from "#src/services/biome.ts";
|
|
4
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
5
|
+
import { OxfmtService } from "#src/services/oxfmt.ts";
|
|
6
|
+
import { OxlintService } from "#src/services/oxlint.ts";
|
|
7
|
+
import type { ToolService } from "#src/services/tool.ts";
|
|
8
|
+
import { TsdownService } from "#src/services/tsdown.ts";
|
|
9
9
|
|
|
10
10
|
type ActionParams = {
|
|
11
11
|
args: string[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cwd, type ShellService } from "@vlandoss/clibuddy";
|
|
2
2
|
import type { AnyLogger } from "@vlandoss/loggy";
|
|
3
3
|
import { createCommand } from "commander";
|
|
4
|
-
import type { Context } from "
|
|
5
|
-
import { logger } from "
|
|
6
|
-
import { OxlintService } from "
|
|
4
|
+
import type { Context } from "#src/services/ctx.ts";
|
|
5
|
+
import { logger } from "#src/services/logger.ts";
|
|
6
|
+
import { OxlintService } from "#src/services/oxlint.ts";
|
|
7
7
|
import { TOOL_LABELS } from "../ui";
|
|
8
8
|
|
|
9
9
|
type TypecheckAtOptions = {
|
package/src/program/index.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { getVersion } from "@vlandoss/clibuddy";
|
|
2
2
|
import { createCommand } from "commander";
|
|
3
|
-
import { createContext } from "
|
|
4
|
-
import { createBuildLibCommand } from "./commands/build-lib";
|
|
5
|
-
import { createCleanCommand } from "./commands/clean";
|
|
6
|
-
import { createConfigCommand } from "./commands/config";
|
|
7
|
-
import { createFormatCommand } from "./commands/format";
|
|
8
|
-
import { createJsCheckCommand } from "./commands/jscheck";
|
|
9
|
-
import { createLintCommand } from "./commands/lint";
|
|
10
|
-
import { createPkgsCommand } from "./commands/pkgs";
|
|
11
|
-
import { createRunCommand } from "./commands/run";
|
|
12
|
-
import { createTestStaticCommand } from "./commands/test-static";
|
|
13
|
-
import { createToolsCommand } from "./commands/tools";
|
|
14
|
-
import { createTsCheckCommand } from "./commands/tscheck";
|
|
15
|
-
import { CREDITS_TEXT, getBannerText } from "./ui";
|
|
3
|
+
import { createContext } from "#src/services/ctx.ts";
|
|
4
|
+
import { createBuildLibCommand } from "./commands/build-lib.ts";
|
|
5
|
+
import { createCleanCommand } from "./commands/clean.ts";
|
|
6
|
+
import { createConfigCommand } from "./commands/config.ts";
|
|
7
|
+
import { createFormatCommand } from "./commands/format.ts";
|
|
8
|
+
import { createJsCheckCommand } from "./commands/jscheck.ts";
|
|
9
|
+
import { createLintCommand } from "./commands/lint.ts";
|
|
10
|
+
import { createPkgsCommand } from "./commands/pkgs.ts";
|
|
11
|
+
import { createRunCommand } from "./commands/run.ts";
|
|
12
|
+
import { createTestStaticCommand } from "./commands/test-static.ts";
|
|
13
|
+
import { createToolsCommand } from "./commands/tools.ts";
|
|
14
|
+
import { createTsCheckCommand } from "./commands/tscheck.ts";
|
|
15
|
+
import { CREDITS_TEXT, getBannerText } from "./ui.ts";
|
|
16
16
|
|
|
17
17
|
export type Options = {
|
|
18
18
|
binDir: string;
|
package/src/services/biome.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ShellService } from "@vlandoss/clibuddy";
|
|
2
2
|
import isCI from "is-ci";
|
|
3
|
-
import { TOOL_LABELS } from "
|
|
4
|
-
import type { FormatOptions, Formatter, Linter, LintOptions, StaticChecker, StaticCheckerOptions } from "
|
|
5
|
-
import { ToolService } from "./tool";
|
|
3
|
+
import { TOOL_LABELS } from "#src/program/ui.ts";
|
|
4
|
+
import type { FormatOptions, Formatter, Linter, LintOptions, StaticChecker, StaticCheckerOptions } from "#src/types/tool.ts";
|
|
5
|
+
import { ToolService } from "./tool.ts";
|
|
6
6
|
|
|
7
7
|
export class BiomeService extends ToolService implements Formatter, Linter, StaticChecker {
|
|
8
8
|
constructor(shellService: ShellService) {
|
package/src/services/config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import { type AsyncSearcher, lilconfig } from "lilconfig";
|
|
3
|
-
import type { ExportedConfig, UserConfig } from "
|
|
4
|
-
import { logger } from "./logger";
|
|
3
|
+
import type { ExportedConfig, UserConfig } from "#src/types/config.ts";
|
|
4
|
+
import { logger } from "./logger.ts";
|
|
5
5
|
|
|
6
6
|
const DEFAULT_CONFIG: UserConfig = {
|
|
7
7
|
future: {
|
package/src/services/ctx.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import { createPkgService, createShellService, cwd, type PkgService, type ShellService } from "@vlandoss/clibuddy";
|
|
3
|
-
import type { ExportedConfig } from "
|
|
4
|
-
import { ConfigService } from "./config";
|
|
5
|
-
import { logger } from "./logger";
|
|
3
|
+
import type { ExportedConfig } from "#src/types/config.ts";
|
|
4
|
+
import { ConfigService } from "./config.ts";
|
|
5
|
+
import { logger } from "./logger.ts";
|
|
6
6
|
|
|
7
7
|
export type Context = {
|
|
8
8
|
binPkg: PkgService;
|
package/src/services/oxfmt.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ShellService } from "@vlandoss/clibuddy";
|
|
2
|
-
import { TOOL_LABELS } from "
|
|
3
|
-
import type { FormatOptions, Formatter } from "
|
|
4
|
-
import { ToolService } from "./tool";
|
|
2
|
+
import { TOOL_LABELS } from "#src/program/ui.ts";
|
|
3
|
+
import type { FormatOptions, Formatter } from "#src/types/tool.ts";
|
|
4
|
+
import { ToolService } from "./tool.ts";
|
|
5
5
|
|
|
6
6
|
export class OxfmtService extends ToolService implements Formatter {
|
|
7
7
|
constructor(shellService: ShellService) {
|
package/src/services/oxlint.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ShellService } from "@vlandoss/clibuddy";
|
|
2
|
-
import { TOOL_LABELS } from "
|
|
3
|
-
import type { Linter, LintOptions } from "
|
|
4
|
-
import { ToolService } from "./tool";
|
|
2
|
+
import { TOOL_LABELS } from "#src/program/ui.ts";
|
|
3
|
+
import type { Linter, LintOptions } from "#src/types/tool.ts";
|
|
4
|
+
import { ToolService } from "./tool.ts";
|
|
5
5
|
|
|
6
6
|
export class OxlintService extends ToolService implements Linter {
|
|
7
7
|
constructor(shellService: ShellService) {
|
package/src/services/tool.ts
CHANGED
package/src/services/tsdown.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ShellService } from "@vlandoss/clibuddy";
|
|
2
|
-
import { TOOL_LABELS } from "
|
|
3
|
-
import { ToolService } from "./tool";
|
|
2
|
+
import { TOOL_LABELS } from "#src/program/ui.ts";
|
|
3
|
+
import { ToolService } from "./tool.ts";
|
|
4
4
|
|
|
5
5
|
export class TsdownService extends ToolService {
|
|
6
6
|
constructor(shellService: ShellService) {
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": ["@
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"baseUrl": ".",
|
|
5
|
-
"paths": {
|
|
6
|
-
"#/*": ["./src/*"],
|
|
7
|
-
"#test/*": ["./test/*"],
|
|
8
|
-
"@vlandoss/*": ["../../packages/*/src"]
|
|
9
|
-
}
|
|
10
|
-
}
|
|
2
|
+
"extends": ["@vlandoss/config/ts/no-dom/lib"]
|
|
11
3
|
}
|