update:2024-07-06 12:28:28 -remark:fix some bugs,remove shelljs -AutoCommit

This commit is contained in:
539943419 committed 2024-07-06 12:28:29 +08:00
1 parent 167e4a12a8
commit 05d6654e3f
3 files changed
+2 -157

No files matched your search

+1 -3
View File
@@ -1,7 +1,5 @@
import shell from "shelljs";
import _readline from "readline";
import { exec } from 'node:child_process';
import { resolve } from "path";
const execSync = (command)=>new Promise((resolve,rejects)=>{
exec(command,(err,stdout,stderr)=>{
@@ -36,7 +34,7 @@ const input = async function (question) {
const generateDate = function () {
const dateNow = new Date();
const paddingNumber = function(num){
return ("0" + (num + 1)).slice(-2)
return ("0" + num).slice(-2)
}
let year = dateNow.getFullYear();
let month = paddingNumber((dateNow.getMonth() + 1));