hypnagaga/bin/buildPackage/process/other.js
2022-08-11 15:43:38 +01:00

11 lines
305 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);
}