Skip to content

Commit f65cf6f

Browse files
committed
trying to fix build idk why it aint workin
1 parent d4e7be0 commit f65cf6f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const path = require('path');
33
const Zip = require('adm-zip');
44
const v3Process = require('./v3Maker');
55
const process = require('process');
6+
const readline = require('readline');
67

78

89
// Before starting, make sure that the other folders don't exist.
@@ -129,8 +130,8 @@ copyDir('./', firefoxDir).then(async () => {
129130
cssFile = cssFile.replaceAll('chrome-extension://', 'moz-extension://');
130131
// Then write the CSS file with "cssFile"
131132
fs.writeFileSync(cssPath, cssFile);
132-
process.stdout.clearLine(0);
133-
process.stdout.cursorTo(0);
133+
readline.clearLine(process.stdout, 0);
134+
readline.cursorTo(process.stdout, 0, null);
134135
process.stdout.write(`✓ ${cssPath}\n`);
135136
}
136137
});

v3Maker.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const fs = require('fs-extra');
22
const fsPromises = require('fs/promises');
33
const v3elmnts = require('./v3elmnts.json');
44
const process = require('process');
5+
const readline = require('readline');
56

67

78
// Make the v3 folder in the css folder
@@ -31,8 +32,8 @@ cssFiles.forEach(cssFileName => {
3132
}
3233
// Write to a new css file in the v3 folder
3334
fs.writeFileSync(`css/v3/${cssFileName}`, cssFile);
34-
process.stdout.clearLine(0);
35-
process.stdout.cursorTo(0);
35+
readline.clearLine(process.stdout, 0);
36+
readline.cursorTo(process.stdout, 0, null);
3637
process.stdout.write(`✓ ${cssFileName}\n`);
3738
};
3839
});

0 commit comments

Comments
 (0)