Skip to content

Commit

Permalink
chore: dont auto install isbot as that breaks e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Jan 31, 2023
1 parent 18655cd commit 7e17173
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions packages/remix-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,25 +393,11 @@ export async function readConfig(
let deps = pkgJson.content.dependencies ?? {};

if (!deps["isbot"]) {
pkgJson.update({
dependencies: {
...pkgJson.content.dependencies,
isbot: "latest",
},
});

await pkgJson.save();

console.log(
"adding `isbot` to detect bots, you should commit this change"
console.error(
`Could not locate "isbot". Verify that you have it installed.`
);

let packageManager = getPreferredPackageManager();

execSync(`${packageManager} install`, {
cwd: remixRoot,
stdio: "inherit",
});
process.exit(1);
}

let runtime = deps["@remix-run/deno"]
Expand Down

0 comments on commit 7e17173

Please sign in to comment.