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
|
// Checking file for existing, if exists - deleting it
|
||||||
try {
|
try {
|
||||||
fs.accessSync(newFilePath);
|
fs.accessSync(newFilePath);
|
||||||
fs.rmSync(newFilePath);
|
//fs.rmSync(newFilePath);
|
||||||
|
fs.ftruncateSync(newFilePath);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// console.log("access err: " + err);
|
// console.log("access err: " + err);
|
||||||
}
|
}
|
||||||
|
|||||||
24
package.json
24
package.json
@@ -1,10 +1,18 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"name": "MTA model encoder",
|
||||||
"chalk": "^4.1.2",
|
"version": "1.0.0",
|
||||||
"fs-extra": "^10.0.0",
|
"main": "index.js",
|
||||||
"glob": "^7.2.0",
|
"private": "true",
|
||||||
"mta-tea": "^1.0.0",
|
"scripts": {
|
||||||
"ora": "^5.4.1",
|
"build": "pkg --target node16-win-x64 --compress GZip index.js"
|
||||||
"yargs": "^17.3.1"
|
},
|
||||||
}
|
"dependencies": {
|
||||||
|
"chalk": "^4.1.2",
|
||||||
|
"fs-extra": "^10.0.0",
|
||||||
|
"glob": "^7.2.0",
|
||||||
|
"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