2022-07-07 20:47:13 +00:00
|
|
|
if ( ! process.env.TURBO_HASH && process.env.SKIP_TURBO !== 'true' ) {
|
|
|
|
console.error(
|
|
|
|
'This project uses Turborepo. You should not run this script from the project directly.'
|
|
|
|
);
|
2022-06-28 18:17:05 +00:00
|
|
|
if ( process.env.npm_lifecycle_event && process.env.npm_package_name ) {
|
2022-07-07 20:47:13 +00:00
|
|
|
console.error(
|
|
|
|
'\nTry running the following from the root of the monorepo instead:'
|
|
|
|
);
|
|
|
|
console.error(
|
|
|
|
'pnpm -- turbo run %s --filter=%s\n',
|
|
|
|
process.env.npm_lifecycle_event,
|
|
|
|
process.env.npm_package_name
|
|
|
|
);
|
2022-06-28 18:17:05 +00:00
|
|
|
}
|
|
|
|
process.exit( 1 );
|
|
|
|
}
|