修复discussion模块

This commit is contained in:
undefined committed 2020-05-01 18:43:40 +08:00
1 parent 2554cf660a
commit 33e277f28f
30 files changed
+2460 -187

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ const fs = require('fs');
const root = require('./root');
async function build(type) {
if (!['development', 'production'].includes(type)) throw new Error('Unknown type: ' + type);
if (!['development', 'production'].includes(type)) throw new Error(`Unknown type: ${type}`);
try {
fs.rmdirSync(root('.build'));
} catch (e) { }