inital
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { existsSync } from "fs";
|
||||
import fs from "fs/promises";
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
async function main() {
|
||||
if (!existsSync(path.join(__dirname, "../dist"))) {
|
||||
await fs.mkdir(path.join(__dirname, "../dist"));
|
||||
}
|
||||
await fs.copyFile(
|
||||
path.join(__dirname, "../README.MD"),
|
||||
path.join(__dirname, "../dist/README.MD")
|
||||
);
|
||||
}
|
||||
main().catch((e) => {
|
||||
console.log(e);
|
||||
});
|
||||
Reference in New Issue
Block a user