@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.
- package/dist/src/init.js +3 -3
- 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
|
-
//
|
|
11
|
-
//
|
|
12
|
-
return node_path_1.default.resolve(
|
|
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();
|