mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Ammending a small bug that came up in the curvyandtrans codebase
This commit is contained in:
parent
240e09653a
commit
f4e45758b6
@ -34,6 +34,9 @@ const actions = {
|
||||
},
|
||||
|
||||
async write ({ output, content }) {
|
||||
if (!content) {
|
||||
throw new TypeError('Got an empty write?' + output);
|
||||
}
|
||||
output = resolve(output);
|
||||
await fs.ensureDir(path.dirname(output));
|
||||
await fs.writeFile(output, content);
|
||||
|
@ -53,7 +53,7 @@ module.exports = exports = async function process (tasks, cache) {
|
||||
}
|
||||
if (taskLog && LOG[taskLog[0]]) log.info(...taskLog);
|
||||
|
||||
if (cache.isProd) {
|
||||
if (cache.isProd && status.revPath) {
|
||||
await fs.writeFile(resolve('dist', status.revPath), result);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user