@vlandoss/run-run 0.1.0 → 0.1.1-git-344cd29.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/README.md CHANGED
@@ -4,7 +4,7 @@ CLI toolbox to fullstack common scripts in Variable Land 👊
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- - Bun >= 1.2.4
7
+ - Node.js >= 24.0.0
8
8
 
9
9
  ## Toolbox
10
10
 
package/bin.ts CHANGED
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  import { dirname } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- import { main } from "./src/main";
4
+ import { main } from "./src/main.ts";
5
5
 
6
6
  main({
7
7
  binDir: dirname(fileURLToPath(import.meta.url)),
package/dist/bin.mjs CHANGED
@@ -24,10 +24,13 @@ var ConfigService = class {
24
24
  #searcher;
25
25
  constructor() {
26
26
  this.#searcher = lilconfig("run-run", {
27
- searchPlaces: ["run-run.config.ts"],
27
+ searchPlaces: ["run-run.config.ts", "run-run.config.mts"],
28
28
  cache: true,
29
29
  stopDir: os.homedir(),
30
- loaders: { ".ts": (filepath) => import(filepath).then((mod) => mod.default) }
30
+ loaders: {
31
+ ".ts": (filepath) => import(filepath).then((mod) => mod.default),
32
+ ".mts": (filepath) => import(filepath).then((mod) => mod.default)
33
+ }
31
34
  });
32
35
  }
33
36
  async load() {
@@ -323,7 +326,7 @@ var BiomeService = class extends ToolService {
323
326
  });
324
327
  }
325
328
  getBinDir() {
326
- return __require.resolve("@biomejs/biome/bin/biome");
329
+ return createRequire(import.meta.url).resolve("@biomejs/biome/bin/biome");
327
330
  }
328
331
  async format(options) {
329
332
  const commonOptions = "format --colors=force --no-errors-on-unmatched";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/run-run",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-git-344cd29.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": {
@@ -57,15 +57,14 @@
57
57
  "rimraf": "6.1.3",
58
58
  "tsdown": "0.21.10",
59
59
  "typescript": "5.9.3",
60
- "@vlandoss/clibuddy": "0.1.0",
61
- "@vlandoss/loggy": "0.1.0"
60
+ "@vlandoss/clibuddy": "0.1.1-git-344cd29.0",
61
+ "@vlandoss/loggy": "0.1.1-git-344cd29.0"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
66
  "engines": {
67
- "node": ">=20.0.0",
68
- "bun": ">=1.0.0"
67
+ "node": ">=20.0.0"
69
68
  },
70
69
  "devDependencies": {
71
70
  "@vlandoss/tsdown-config": "^0.0.1"
@@ -3,7 +3,7 @@ import { createCommand } from "commander";
3
3
  import { type GlobOptions, glob } from "glob";
4
4
  import { rimraf } from "rimraf";
5
5
  import { logger } from "#src/services/logger.ts";
6
- import { TOOL_LABELS } from "../ui";
6
+ import { TOOL_LABELS } from "../ui.ts";
7
7
 
8
8
  type Options = {
9
9
  onlyDist: boolean;
@@ -4,7 +4,7 @@ import { createCommand } from "commander";
4
4
  import type { Context } from "#src/services/ctx.ts";
5
5
  import { logger } from "#src/services/logger.ts";
6
6
  import { OxlintService } from "#src/services/oxlint.ts";
7
- import { TOOL_LABELS } from "../ui";
7
+ import { TOOL_LABELS } from "../ui.ts";
8
8
 
9
9
  type TypecheckAtOptions = {
10
10
  dir: string;
@@ -1,3 +1,4 @@
1
+ import { createRequire } from "node:module";
1
2
  import type { ShellService } from "@vlandoss/clibuddy";
2
3
  import isCI from "is-ci";
3
4
  import { TOOL_LABELS } from "#src/program/ui.ts";
@@ -10,6 +11,7 @@ export class BiomeService extends ToolService implements Formatter, Linter, Stat
10
11
  }
11
12
 
12
13
  override getBinDir() {
14
+ const require = createRequire(import.meta.url);
13
15
  return require.resolve("@biomejs/biome/bin/biome");
14
16
  }
15
17
 
@@ -14,11 +14,12 @@ export class ConfigService {
14
14
 
15
15
  constructor() {
16
16
  this.#searcher = lilconfig("run-run", {
17
- searchPlaces: ["run-run.config.ts"],
17
+ searchPlaces: ["run-run.config.ts", "run-run.config.mts"],
18
18
  cache: true,
19
19
  stopDir: os.homedir(),
20
20
  loaders: {
21
21
  ".ts": (filepath: string) => import(filepath).then((mod) => mod.default),
22
+ ".mts": (filepath: string) => import(filepath).then((mod) => mod.default),
22
23
  },
23
24
  });
24
25
  }