Skip to content

Commit

Permalink
Merge branch 'chance/changesets-peer-deps-fix' of github.com:remix-ru…
Browse files Browse the repository at this point in the history
…n/remix into chance/changesets-peer-deps-fix
  • Loading branch information
chaance committed Dec 13, 2022
2 parents 0829631 + 694b7ad commit 908f826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/bump-peer-dep-ranges.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
import { spawnSync } from "node:child_process";
import * as fs from "node:fs";
import path from "node:path";
import { createRequire } from "node:module";
import * as url from "node:url";
import { getPackagesSync } from "@manypkg/get-packages";

const require = createRequire(import.meta.url);
const { getPackagesSync } = require("@manypkg/get-packages");
const gitStatusResult = spawnSync("git", ["status", "--porcelain"]);

if (gitStatusResult.status !== 0) {
process.exit(gitStatusResult.status || undefined);
}

const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
const rootDir = path.join(__dirname, "..");

const allPackages = getPackagesSync(rootDir).packages;
Expand Down

0 comments on commit 908f826

Please sign in to comment.