@buba_71/levit 0.3.1 → 0.3.2

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 (2) hide show
  1. package/dist/src/init.js +3 -3
  2. package/package.json +1 -1
package/dist/src/init.js CHANGED
@@ -7,9 +7,9 @@ exports.initProject = initProject;
7
7
  const node_fs_1 = __importDefault(require("node:fs"));
8
8
  const node_path_1 = __importDefault(require("node:path"));
9
9
  function getPackageRoot() {
10
- // process.argv[1] points to the executed CLI file
11
- // e.g. /path/to/levit-kit/dist/bin/cli.js
12
- return node_path_1.default.resolve(node_path_1.default.dirname(process.argv[1]), "..", "..");
10
+ // Use __dirname to reliably locate the package root relative to this file
11
+ // compiled file is in dist/src/init.js, so we go up two levels to reach package root
12
+ return node_path_1.default.resolve(__dirname, "..", "..");
13
13
  }
14
14
  function initProject(projectName, targetPath) {
15
15
  const packageRoot = getPackageRoot();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buba_71/levit",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Hybrid starter kit for Antigravity projects",
5
5
  "author": "David BUBA",
6
6
  "license": "MIT",