Spaces:
Sleeping
Sleeping
File size: 301 Bytes
5743bc2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import { rm } from "node:fs/promises";
const userAgent = process.env.npm_config_user_agent ?? "";
await Promise.all([
rm("package-lock.json", { force: true }),
rm("yarn.lock", { force: true }),
]);
if (!userAgent.startsWith("pnpm/")) {
console.error("Use pnpm instead");
process.exit(1);
}
|