monoverse 0.0.14 → 0.0.15
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/cli.js +17 -5
- package/package.json +7 -6
package/dist/cli.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import * as
|
|
2
|
+
import * as NFS from "node:fs";
|
|
3
|
+
import NFS__default, { readFileSync } from "node:fs";
|
|
3
4
|
import * as nodePath from "node:path";
|
|
5
|
+
import { dirname as dirname$2, join as join$4 } from "node:path";
|
|
6
|
+
import * as NodeUrl from "node:url";
|
|
7
|
+
import { fileURLToPath as fileURLToPath$1 } from "node:url";
|
|
8
|
+
import * as fs from "node:fs/promises";
|
|
4
9
|
import * as nativeFs from "fs";
|
|
5
10
|
import nativeFs__default from "fs";
|
|
6
11
|
import path, { sep, basename as basename$1, dirname as dirname$1, resolve, normalize, relative, posix } from "path";
|
|
7
12
|
import { fileURLToPath } from "url";
|
|
8
13
|
import { createRequire } from "module";
|
|
9
|
-
import * as NFS from "node:fs";
|
|
10
|
-
import NFS__default from "node:fs";
|
|
11
14
|
import * as ChildProcess from "node:child_process";
|
|
12
15
|
import * as Crypto from "node:crypto";
|
|
13
16
|
import * as OS from "node:os";
|
|
14
|
-
import * as NodeUrl from "node:url";
|
|
15
17
|
import * as readline from "node:readline";
|
|
16
18
|
const isFunction$1 = (input) => typeof input === "function";
|
|
17
19
|
const dual = function(arity, body) {
|
|
@@ -34192,6 +34194,16 @@ const lint = make$4(
|
|
|
34192
34194
|
yield* sync$2(() => process.exit(1));
|
|
34193
34195
|
})
|
|
34194
34196
|
);
|
|
34197
|
+
const getVersion = () => {
|
|
34198
|
+
try {
|
|
34199
|
+
const __dirname = dirname$2(fileURLToPath$1(import.meta.url));
|
|
34200
|
+
const pkgPath = join$4(__dirname, "..", "package.json");
|
|
34201
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
34202
|
+
return `v${pkg.version}`;
|
|
34203
|
+
} catch {
|
|
34204
|
+
return "na";
|
|
34205
|
+
}
|
|
34206
|
+
};
|
|
34195
34207
|
const monoverse = make$4(
|
|
34196
34208
|
"monoverse",
|
|
34197
34209
|
{},
|
|
@@ -34202,7 +34214,7 @@ const command = monoverse.pipe(
|
|
|
34202
34214
|
);
|
|
34203
34215
|
const cli = run(command, {
|
|
34204
34216
|
name: "monoverse",
|
|
34205
|
-
version:
|
|
34217
|
+
version: getVersion()
|
|
34206
34218
|
});
|
|
34207
34219
|
const MainLayer = mergeAll$1(
|
|
34208
34220
|
layer,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monoverse",
|
|
3
3
|
"description": "A powerful monorepo management tool to streamline your development workflow.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.15",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kishore"
|
|
7
7
|
},
|
|
@@ -21,16 +21,17 @@
|
|
|
21
21
|
"tinyglobby": "0.2.15"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"use-effect-ts": "workspace:*",
|
|
25
24
|
"@effect/vitest": "0.27.0",
|
|
26
25
|
"@tsconfig/node22": "22.0.5",
|
|
27
26
|
"@types/js-yaml": "4.0.9",
|
|
27
|
+
"@types/node": "25.0.3",
|
|
28
28
|
"@types/react": "19.2.7",
|
|
29
29
|
"@types/semver": "7.7.1",
|
|
30
30
|
"nodemon": "3.1.11",
|
|
31
31
|
"vite": "7.3.1",
|
|
32
32
|
"vite-tsconfig-paths": "6.0.3",
|
|
33
|
-
"vitest": "4.0.16"
|
|
33
|
+
"vitest": "4.0.16",
|
|
34
|
+
"use-effect-ts": "0.0.8"
|
|
34
35
|
},
|
|
35
36
|
"files": [
|
|
36
37
|
"dist/",
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"keywords": [],
|
|
40
41
|
"license": "MIT",
|
|
41
42
|
"repository": "pkishorez/monorepo",
|
|
43
|
+
"type": "module",
|
|
42
44
|
"scripts": {
|
|
43
45
|
"build": "vite build",
|
|
44
46
|
"build:watch": "vite build --watch",
|
|
@@ -48,6 +50,5 @@
|
|
|
48
50
|
"run:cli": "bun src/cli/index.ts",
|
|
49
51
|
"test": "vitest run",
|
|
50
52
|
"test:watch": "vitest"
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
|
+
}
|