@astrojs/upgrade 0.2.3 → 0.3.0

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -170,8 +170,8 @@ var require_arg = __commonJS({
170
170
 
171
171
  // src/actions/context.ts
172
172
  var import_arg = __toESM(require_arg(), 1);
173
- import { prompt } from "@astrojs/cli-kit";
174
173
  import { pathToFileURL } from "node:url";
174
+ import { prompt } from "@astrojs/cli-kit";
175
175
  import detectPackageManager from "which-pm-runs";
176
176
  async function getContext(argv) {
177
177
  const flags = (0, import_arg.default)(
@@ -431,11 +431,11 @@ function help() {
431
431
  }
432
432
 
433
433
  // src/actions/install.ts
434
- import { color as color2, say } from "@astrojs/cli-kit";
435
- import { random, sleep } from "@astrojs/cli-kit/utils";
436
434
  import fs from "node:fs";
437
435
  import path from "node:path";
438
436
  import { fileURLToPath } from "node:url";
437
+ import { color as color2, say } from "@astrojs/cli-kit";
438
+ import { random, sleep } from "@astrojs/cli-kit/utils";
439
439
  async function install(ctx) {
440
440
  await banner();
441
441
  newline();
@@ -575,10 +575,10 @@ async function ensureYarnLock({ cwd }) {
575
575
  }
576
576
 
577
577
  // src/actions/verify.ts
578
- import { color as color3 } from "@astrojs/cli-kit";
579
578
  import dns from "node:dns/promises";
580
579
  import { existsSync } from "node:fs";
581
580
  import { readFile } from "node:fs/promises";
581
+ import { color as color3 } from "@astrojs/cli-kit";
582
582
  import semverCoerce from "semver/functions/coerce.js";
583
583
  import semverDiff from "semver/functions/diff.js";
584
584
  import semverParse from "semver/functions/parse.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/upgrade",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "astro-scripts": "0.0.14"
37
37
  },
38
38
  "engines": {
39
- "node": ">=18.14.1"
39
+ "node": "^18.17.1 || ^20.3.0 || >=21.0.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "astro-scripts build \"src/index.ts\" --bundle && tsc",