Urara-Blog/node_modules/.pnpm-store/v3/files/89/5efdadc8c54ae0390b0e766ba658c5fe7065be8236579b4b67ad27ef3225a968f1815b864de8987afdf77d3918a5dfdab5f5c413dc6fa5e1e6b7c449b0115a-exec
2022-08-14 01:14:53 +08:00

11 lines
368 B
JavaScript
Executable file

#!/usr/bin/env node
import fs from 'fs';
import { fileURLToPath } from 'url';
// in our own CI, and when deploying directly from this monorepo,
// the `dist` directory will not exist yet
if (fs.existsSync(fileURLToPath(new URL('./dist', import.meta.url)))) {
import('./dist/cli.js');
} else {
console.error('Run "pnpm build" and try running this command again');
}