Skip to content

Commit

Permalink
chore(scripts): allow skipping ignore for examples (#2883)
Browse files Browse the repository at this point in the history
  • Loading branch information
tknickman committed Dec 1, 2022
1 parent 84998de commit 3ea7fe9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/ignore-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ only when:
1. The examples themselves have changed
2. The turbo version has changed
3. We force a build on vercel
We recommend using `npx turbo-ignore` in your own projects.
Expand All @@ -24,6 +25,11 @@ const abortBuild = () => process.exit(ABORT_BUILD_CODE);
const example = process.argv[2];

const ignoreCheck = () => {
if (process.env.TURBO_FORCE === "true") {
console.log("\u226B `TURBO_FORCE` detected");
continueBuild();
}

// no app name (directory) was passed in via args
if (!example) {
console.log(
Expand Down

0 comments on commit 3ea7fe9

Please sign in to comment.