hypnagaga/bin/buildPackage/process/other.js
2024-08-20 21:11:47 +01:00

11 lines
306 B
JavaScript

import { DIST, LIB } from './../locations.js';
import fs from 'fs-extra';
import path from 'path';
export default async (file) => {
const filename = path.join(LIB, file);
const writePath = path.join(DIST, file);
fs.ensureDirSync(path.dirname(writePath));
fs.copyFileSync(filename, writePath);
};