workspace-utils 1.0.1 → 1.0.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/index.js +9 -5
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
// @bun
|
|
1
|
+
#!/usr/bin/env node
|
|
3
2
|
import { createRequire } from "node:module";
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -14048,8 +14047,9 @@ import { join } from "path";
|
|
|
14048
14047
|
class BunPackageManager {
|
|
14049
14048
|
name = "bun";
|
|
14050
14049
|
isActive(workspaceRoot) {
|
|
14051
|
-
const
|
|
14052
|
-
|
|
14050
|
+
const textLockFile = join(workspaceRoot, "bun.lock");
|
|
14051
|
+
const binaryLockFile = join(workspaceRoot, "bun.lockb");
|
|
14052
|
+
if (existsSync(textLockFile) || existsSync(binaryLockFile)) {
|
|
14053
14053
|
return true;
|
|
14054
14054
|
}
|
|
14055
14055
|
const bunConfig = join(workspaceRoot, "bunfig.toml");
|
|
@@ -14090,7 +14090,7 @@ class BunPackageManager {
|
|
|
14090
14090
|
return { packages };
|
|
14091
14091
|
}
|
|
14092
14092
|
getLockFileName() {
|
|
14093
|
-
return "bun.
|
|
14093
|
+
return "bun.lock";
|
|
14094
14094
|
}
|
|
14095
14095
|
}
|
|
14096
14096
|
// src/package-managers/pnpm.ts
|
|
@@ -14300,6 +14300,10 @@ class PackageManagerDetector {
|
|
|
14300
14300
|
}
|
|
14301
14301
|
switch (pm.name) {
|
|
14302
14302
|
case "bun":
|
|
14303
|
+
if (existsSync4(join4(workspaceRoot, "bun.lock")))
|
|
14304
|
+
confidence += 100;
|
|
14305
|
+
if (existsSync4(join4(workspaceRoot, "bun.lockb")))
|
|
14306
|
+
confidence += 100;
|
|
14303
14307
|
if (existsSync4(join4(workspaceRoot, "bunfig.toml")))
|
|
14304
14308
|
confidence += 50;
|
|
14305
14309
|
break;
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workspace-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A CLI tool to orchestrate scripts across monorepo workspaces (Bun, pnpm, npm) with parallel execution and dependency-aware builds.",
|
|
5
5
|
"module": "index.ts",
|
|
6
6
|
"type": "module",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workspace-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A CLI tool to orchestrate scripts across monorepo workspaces (Bun, pnpm, npm) with parallel execution and dependency-aware builds.",
|
|
5
5
|
"module": "index.ts",
|
|
6
6
|
"type": "module",
|