1
0
Fork 0
freesewing/sites/shared/prebuild/jargon.mjs
2024-03-23 11:52:58 +01:00

15 lines
461 B
JavaScript

import fs from 'node:fs'
import path from 'node:path'
/*
* Jaron is part of the 'docs' prebuild step
* But in the lab, there are no docs, so we build an empty jargon file
* because it is included in some components so it needs to be there.
*/
export const prebuildJargon = async (store) => {
fs.writeFileSync(
path.resolve('..', store.site, 'prebuild', `jargon.mjs`),
`export const site = "${store.site}"
export const jargon = { en: { } }`
)
}