@flyingboat/upup 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -9,6 +9,12 @@ npm install -g @flyingboat/upup
9
9
  pnpm add -g @flyingboat/upup
10
10
  ```
11
11
 
12
+ or via npx:
13
+ ```
14
+ npx @flyingboat/upup
15
+ pnpm dlx @flyingboat/upup
16
+ ```
17
+
12
18
  ## Usage
13
19
 
14
20
  Run in the current project:
@@ -17,3 +23,8 @@ Run in the current project:
17
23
  upup
18
24
  ```
19
25
 
26
+ for CICD
27
+
28
+ ```
29
+ upup --ci
30
+ ```
package/dist/bundle.js CHANGED
@@ -1605,12 +1605,13 @@ function timeAgoFromAge(ts) {
1605
1605
  if (ts < hour) return plural(Math.floor(ts / minute), "min");
1606
1606
  if (ts < day) return plural(Math.floor(ts / hour), "hour");
1607
1607
  if (ts < year) {
1608
- if (ts > month) return plural(Math.floor(ts / month), "month");
1608
+ if (ts >= month) return plural(Math.floor(ts / month), "month");
1609
1609
  return plural(Math.floor(ts / day), "day");
1610
1610
  }
1611
1611
  return plural(Math.floor(ts / year), "year");
1612
1612
  }
1613
1613
  function getBump(current, latest) {
1614
+ if (!import_semver.default.prerelease(current) && import_semver.default.prerelease(latest)) return "prerelease";
1614
1615
  const c = import_semver.default.coerce(current)?.version;
1615
1616
  const l = import_semver.default.coerce(latest)?.version;
1616
1617
  if (!c || !l) return "invalid";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyingboat/upup",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI tool for listing outdated dependencies",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Francois Lajoie",
@@ -19,17 +19,20 @@
19
19
  "dev": "node src/main.ts",
20
20
  "build": "rolldown -c rolldown.config.ts",
21
21
  "check": "pnpm dlx @biomejs/biome check --write",
22
- "prepublish": "pnpm run check && pnpm run build"
22
+ "prepublish": "pnpm test && pnpm run check && pnpm run build",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest run --watch"
23
25
  },
24
- "packageManager": "pnpm@10.29.1",
26
+ "packageManager": "pnpm@10.29.2",
25
27
  "dependencies": {
26
28
  "semver": "^7.7.4"
27
29
  },
28
30
  "devDependencies": {
29
- "@biomejs/biome": "^4.3.14",
31
+ "@biomejs/biome": "^2.3.14",
30
32
  "@types/node": "^25.2.2",
31
33
  "@types/semver": "^7.7.1",
32
34
  "rolldown": "^1.0.0-rc.3",
33
- "typescript": "~5.9.3"
35
+ "typescript": "~5.9.3",
36
+ "vitest": "^4.0.18"
34
37
  }
35
38
  }