mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
14 lines
300 B
TypeScript
14 lines
300 B
TypeScript
import { existsSync, copyFileSync } from "node:fs";
|
|
import isCI from "is-ci";
|
|
import husky from "husky";
|
|
|
|
if (!isCI) {
|
|
if (!existsSync(".husky/_/h")) {
|
|
husky();
|
|
}
|
|
|
|
if (!existsSync(".vscode/settings.json")) {
|
|
copyFileSync(".vscode/settings.example.json", ".vscode/settings.json");
|
|
}
|
|
}
|