2023-06-17 13:40:48 +02:00
|
|
|
import path from 'path'
|
|
|
|
import fs from 'fs'
|
|
|
|
|
2023-07-21 16:31:43 +02:00
|
|
|
/*
|
|
|
|
* 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)
|
|
|
|
}
|
2023-06-17 13:40:48 +02:00
|
|
|
}
|