mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 01:59:31 +08:00
11 lines
368 B
JavaScript
Executable file
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');
|
|
}
|