nodejs fixes, bugs fixes

This commit is contained in:
Anton Lavrenov
2021-05-09 08:11:42 -05:00
parent 7860aedeeb
commit 734a66a75c
11 changed files with 36 additions and 20 deletions

View File

@@ -18,11 +18,10 @@ files.then((filePaths) => {
// stupid replacement back
text = text.replace(
"import * as canvas from 'canvas.js';",
"import * as canvas from 'canvas';"
"import * as Canvas from 'canvas.js';",
"import * as Canvas from 'canvas';"
);
console.log(`writing to ${filepath}`);
fs.writeFile(filepath, text, function (err) {
if (err) {
throw err;