mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-10-31 20:31:43 +08:00
9 lines
444 B
JavaScript
9 lines
444 B
JavaScript
import { copyFileSync } from "node:fs";
|
|
|
|
// tsdown emits per-format declarations (.d.mts/.d.cts) natively; the plain
|
|
// .d.ts copies exist only for the top-level `types` fields, which legacy
|
|
// node10 resolution (and hints/ and checklist/package.json) still points at.
|
|
copyFileSync("dist/driver.js.d.mts", "dist/driver.js.d.ts");
|
|
copyFileSync("dist/hints.d.mts", "dist/hints.d.ts");
|
|
copyFileSync("dist/checklist.d.mts", "dist/checklist.d.ts");
|