monoverse 0.0.13 → 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 +18 -5
- package/package.json +7 -6
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import * as NFS from "node:fs";
|
|
3
|
+
import NFS__default, { readFileSync } from "node:fs";
|
|
2
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";
|
|
3
9
|
import * as nativeFs from "fs";
|
|
4
10
|
import nativeFs__default from "fs";
|
|
5
11
|
import path, { sep, basename as basename$1, dirname as dirname$1, resolve, normalize, relative, posix } from "path";
|
|
6
12
|
import { fileURLToPath } from "url";
|
|
7
13
|
import { createRequire } from "module";
|
|
8
|
-
import * as NFS from "node:fs";
|
|
9
|
-
import NFS__default from "node:fs";
|
|
10
14
|
import * as ChildProcess from "node:child_process";
|
|
11
15
|
import * as Crypto from "node:crypto";
|
|
12
16
|
import * as OS from "node:os";
|
|
13
|
-
import * as NodeUrl from "node:url";
|
|
14
17
|
import * as readline from "node:readline";
|
|
15
18
|
const isFunction$1 = (input) => typeof input === "function";
|
|
16
19
|
const dual = function(arity, body) {
|
|
@@ -34191,6 +34194,16 @@ const lint = make$4(
|
|
|
34191
34194
|
yield* sync$2(() => process.exit(1));
|
|
34192
34195
|
})
|
|
34193
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
|
+
};
|
|
34194
34207
|
const monoverse = make$4(
|
|
34195
34208
|
"monoverse",
|
|
34196
34209
|
{},
|
|
@@ -34201,7 +34214,7 @@ const command = monoverse.pipe(
|
|
|
34201
34214
|
);
|
|
34202
34215
|
const cli = run(command, {
|
|
34203
34216
|
name: "monoverse",
|
|
34204
|
-
version:
|
|
34217
|
+
version: getVersion()
|
|
34205
34218
|
});
|
|
34206
34219
|
const MainLayer = mergeAll$1(
|
|
34207
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
|
+
}
|