mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
16 lines
314 B
JavaScript
16 lines
314 B
JavaScript
// @ts-check
|
|
|
|
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");
|
|
}
|
|
}
|