@vlandoss/starter 0.0.15-git-9445806.0 → 0.0.15-git-06df4ba.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.
Files changed (3) hide show
  1. package/bin.ts +3 -1
  2. package/dist/bin.mjs +3 -2
  3. package/package.json +4 -4
package/bin.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env bun
2
+ import { dirname } from "node:path";
3
+ import { fileURLToPath } from "node:url";
2
4
  import { main } from "./src/main";
3
5
 
4
6
  main({
5
- binDir: __dirname,
7
+ binDir: dirname(fileURLToPath(import.meta.url)),
6
8
  });
package/dist/bin.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import { dirname, join } from "node:path";
3
+ import { fileURLToPath } from "node:url";
2
4
  import { createPkgService, createShellService, cwd, getVersion, palette, run } from "@vlandoss/clibuddy";
3
5
  import { Argument, Command, Option, createCommand } from "commander";
4
6
  import fs from "node:fs";
5
- import { join } from "node:path";
6
7
  import { createLoggy } from "@vlandoss/loggy";
7
8
  import nodePlop from "node-plop";
8
9
  //#region src/services/config.ts
@@ -188,6 +189,6 @@ async function main(options) {
188
189
  }
189
190
  //#endregion
190
191
  //#region bin.ts
191
- main({ binDir: __dirname });
192
+ main({ binDir: dirname(fileURLToPath(import.meta.url)) });
192
193
  //#endregion
193
194
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/starter",
3
- "version": "0.0.15-git-9445806.0",
3
+ "version": "0.0.15-git-06df4ba.0",
4
4
  "description": "The CLI to init a new project in Variable Land",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/packages/starter#readme",
6
6
  "bugs": {
@@ -33,8 +33,8 @@
33
33
  "dependencies": {
34
34
  "commander": "14.0.3",
35
35
  "node-plop": "0.32.3",
36
- "@vlandoss/clibuddy": "0.0.11-git-9445806.0",
37
- "@vlandoss/loggy": "0.0.8-git-9445806.0"
36
+ "@vlandoss/clibuddy": "0.0.11-git-06df4ba.0",
37
+ "@vlandoss/loggy": "0.0.8-git-06df4ba.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
@@ -44,7 +44,7 @@
44
44
  "bun": ">=1.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vlandoss/tsdown-config": "^0.0.2-git-9445806.0"
47
+ "@vlandoss/tsdown-config": "^0.0.2-git-06df4ba.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsdown",