mirror of
https://github.com/JDM170/model_coder
synced 2025-12-10 05:57:19 +07:00
ftruncateSync insted of rmSync, update package.json
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
3
index.js
3
index.js
@@ -63,7 +63,8 @@ getDirectories(argv.res, (err, res) => {
|
||||
// Checking file for existing, if exists - deleting it
|
||||
try {
|
||||
fs.accessSync(newFilePath);
|
||||
fs.rmSync(newFilePath);
|
||||
//fs.rmSync(newFilePath);
|
||||
fs.ftruncateSync(newFilePath);
|
||||
} catch (err) {
|
||||
// console.log("access err: " + err);
|
||||
}
|
||||
|
||||
10
package.json
10
package.json
@@ -1,4 +1,11 @@
|
||||
{
|
||||
"name": "MTA model encoder",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"private": "true",
|
||||
"scripts": {
|
||||
"build": "pkg --target node16-win-x64 --compress GZip index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
"fs-extra": "^10.0.0",
|
||||
@@ -6,5 +13,6 @@
|
||||
"mta-tea": "^1.0.0",
|
||||
"ora": "^5.4.1",
|
||||
"yargs": "^17.3.1"
|
||||
}
|
||||
},
|
||||
"author": "JDM17 <30170278+JDM170@users.noreply.github.com> (https://github.com/JDM170/model_coder)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user