mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-10-31 03:52:13 +08:00
9 lines
401 B
JavaScript
9 lines
401 B
JavaScript
import { copyFileSync } from "node:fs";
|
|
|
|
// vite-plugin-dts emits a single bundled declaration file. Copy it to the
|
|
// ESM/CJS-specific extensions so each `exports` condition resolves to types
|
|
// that match its module format (avoids the "types masquerade as CJS" issue).
|
|
const source = "dist/driver.js.d.ts";
|
|
copyFileSync(source, "dist/driver.js.d.mts");
|
|
copyFileSync(source, "dist/driver.js.d.cts");
|