1
0
Fork 0
freesewing/packages/new-design/prebuild.mjs

20 lines
456 B
JavaScript
Raw Normal View History

import path from 'path'
import fs from 'fs'
/*
* We don't run this in the linter
* because it slows down linting for no good reason
*/
if (!process.env.LINTER) {
// Avoid symlink so Windows users don't complain
const copyThese = [
{
from: ['..', '..', 'scripts', 'banner.mjs'],
to: ['lib', 'banner.mjs'],
},
]
for (const cp of copyThese) {
fs.copyFile(path.resolve(...cp.from), path.resolve(...cp.to), () => null)
}
}