mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-16 04:13:17 +08:00
14 lines
230 B
JavaScript
14 lines
230 B
JavaScript
import * as Fs from "node:fs"
|
|
|
|
const source = ".agents/AGENTS.md"
|
|
const target = "AGENTS.md"
|
|
|
|
try {
|
|
Fs.lstatSync(target)
|
|
} catch (error) {
|
|
if (error?.code !== "ENOENT") {
|
|
throw error
|
|
}
|
|
Fs.symlinkSync(source, target)
|
|
}
|