File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const path = require('path');
3
3
const Zip = require ( 'adm-zip' ) ;
4
4
const v3Process = require ( './v3Maker' ) ;
5
5
const process = require ( 'process' ) ;
6
+ const readline = require ( 'readline' ) ;
6
7
7
8
8
9
// Before starting, make sure that the other folders don't exist.
@@ -129,8 +130,8 @@ copyDir('./', firefoxDir).then(async () => {
129
130
cssFile = cssFile . replaceAll ( 'chrome-extension://' , 'moz-extension://' ) ;
130
131
// Then write the CSS file with "cssFile"
131
132
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 ) ;
134
135
process . stdout . write ( `✓ ${ cssPath } \n` ) ;
135
136
}
136
137
} ) ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const fs = require('fs-extra');
2
2
const fsPromises = require ( 'fs/promises' ) ;
3
3
const v3elmnts = require ( './v3elmnts.json' ) ;
4
4
const process = require ( 'process' ) ;
5
+ const readline = require ( 'readline' ) ;
5
6
6
7
7
8
// Make the v3 folder in the css folder
@@ -31,8 +32,8 @@ cssFiles.forEach(cssFileName => {
31
32
}
32
33
// Write to a new css file in the v3 folder
33
34
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 ) ;
36
37
process . stdout . write ( `✓ ${ cssFileName } \n` ) ;
37
38
} ;
38
39
} ) ;
You can’t perform that action at this time.
0 commit comments