@orbit-build/cli 0.1.1 → 0.1.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 +24 -8
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -2381,20 +2381,36 @@ var FullscreenTui = class {
|
|
|
2381
2381
|
this.draw();
|
|
2382
2382
|
return;
|
|
2383
2383
|
}
|
|
2384
|
-
const packageJsonStat = statSync(packageJsonPath);
|
|
2385
|
-
let maxConfigMtime = packageJsonStat.mtimeMs;
|
|
2386
2384
|
const lockfiles = ["package-lock.json", "pnpm-lock.yaml", "yarn.lock", "bun.lockb"];
|
|
2385
|
+
let maxLockfileMtime = 0;
|
|
2386
|
+
let hasLockfile = false;
|
|
2387
2387
|
for (const lf of lockfiles) {
|
|
2388
2388
|
const lfPath = join4(this.cwd, lf);
|
|
2389
2389
|
if (existsSync4(lfPath)) {
|
|
2390
|
+
hasLockfile = true;
|
|
2390
2391
|
const stat = statSync(lfPath);
|
|
2391
|
-
if (stat.mtimeMs >
|
|
2392
|
-
|
|
2392
|
+
if (stat.mtimeMs > maxLockfileMtime) {
|
|
2393
|
+
maxLockfileMtime = stat.mtimeMs;
|
|
2393
2394
|
}
|
|
2394
2395
|
}
|
|
2395
2396
|
}
|
|
2396
|
-
const
|
|
2397
|
-
|
|
2397
|
+
const configMtimeToCheck = hasLockfile ? maxLockfileMtime : statSync(packageJsonPath).mtimeMs;
|
|
2398
|
+
let maxInstallStateMtime = statSync(nodeModulesPath).mtimeMs;
|
|
2399
|
+
const stateFiles = [
|
|
2400
|
+
join4(nodeModulesPath, ".modules.yaml"),
|
|
2401
|
+
// pnpm
|
|
2402
|
+
join4(nodeModulesPath, ".package-lock.json")
|
|
2403
|
+
// npm
|
|
2404
|
+
];
|
|
2405
|
+
for (const sf of stateFiles) {
|
|
2406
|
+
if (existsSync4(sf)) {
|
|
2407
|
+
const stat = statSync(sf);
|
|
2408
|
+
if (stat.mtimeMs > maxInstallStateMtime) {
|
|
2409
|
+
maxInstallStateMtime = stat.mtimeMs;
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
this.npmNeedsUpdate = configMtimeToCheck > maxInstallStateMtime;
|
|
2398
2414
|
} catch {
|
|
2399
2415
|
this.npmNeedsUpdate = false;
|
|
2400
2416
|
} finally {
|
|
@@ -3475,11 +3491,11 @@ var FullscreenTui = class {
|
|
|
3475
3491
|
const cleanModel = this.modelNameGetter().replace(/\x1b\[[0-9;]*[a-zA-Z]/g, "");
|
|
3476
3492
|
const gitSummary = this.getGitSummary();
|
|
3477
3493
|
const gitBranch = gitSummary.branch;
|
|
3478
|
-
const heartColor = this.getNpmNeedsUpdate() ? `\x1B[38;2;230;190;80m` : `\x1B[38;2;230;110;110m`;
|
|
3494
|
+
const heartColor = this.getNpmNeedsUpdate() ? `\x1B[5m\x1B[38;2;230;190;80m` : `\x1B[38;2;230;110;110m`;
|
|
3479
3495
|
const logoLines = [
|
|
3480
3496
|
`\x1B[38;2;142;163;175m /\\___/\\ \x1B[0m`,
|
|
3481
3497
|
`\x1B[38;2;142;163;175m ( o.o ) \x1B[0m`,
|
|
3482
|
-
`\x1B[38;2;142;163;175m / >${heartColor}\u2665\x1B[38;2;142;163;175m< \\ \x1B[0m`,
|
|
3498
|
+
`\x1B[38;2;142;163;175m / >${heartColor}\u2665\x1B[25m\x1B[38;2;142;163;175m< \\ \x1B[0m`,
|
|
3483
3499
|
`\x1B[38;2;142;163;175m (__/ \\__) \x1B[0m`
|
|
3484
3500
|
];
|
|
3485
3501
|
if (!this._cachedLogoWidths) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbit-build/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"orbit": "./dist/index.js"
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"fast-glob": "^3.3.2",
|
|
27
27
|
"yaml": "^2.4.5",
|
|
28
28
|
"zod": "^3.23.8",
|
|
29
|
-
"@orbit-build/
|
|
30
|
-
"@orbit-build/
|
|
31
|
-
"@orbit-build/
|
|
32
|
-
"@orbit-build/
|
|
33
|
-
"@orbit-build/
|
|
34
|
-
"@orbit-build/permissions": "0.1.
|
|
35
|
-
"@orbit-build/
|
|
29
|
+
"@orbit-build/core": "0.1.2",
|
|
30
|
+
"@orbit-build/shared": "0.1.2",
|
|
31
|
+
"@orbit-build/config": "0.1.2",
|
|
32
|
+
"@orbit-build/tui": "0.1.2",
|
|
33
|
+
"@orbit-build/model-providers": "0.1.2",
|
|
34
|
+
"@orbit-build/permissions": "0.1.2",
|
|
35
|
+
"@orbit-build/context-engine": "0.1.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsup src/index.ts --format esm --dts --clean"
|