Compare commits

..

1 Commits

Author SHA1 Message Date
Cory LaViska
0a35703f2e update ctrl/tinycolor; fixes #1542 2023-08-28 09:38:53 -04:00

View File

@@ -34,9 +34,6 @@ const shoelaceVersion = JSON.stringify(packageData.version.toString());
async function buildTheDocs(watch = false) {
return new Promise(async (resolve, reject) => {
const afterSignal = '[eleventy.after]';
// Totally non-scientific way to handle errors. Perhaps its just better to resolve on stderr? :shrug:
const errorSignal = 'Original error stack trace:';
const args = ['@11ty/eleventy', '--quiet'];
const output = [];
@@ -68,13 +65,6 @@ async function buildTheDocs(watch = false) {
resolve({ child, output });
}
});
child.stderr.on('data', data => {
if (data.includes(errorSignal)) {
// This closes the dev server, not sure if thats what we want?
reject(output);
}
});
} else {
child.on('close', () => {
resolve({ child, output });