feat(runner): add readme command
This commit is contained in:
@@ -15,7 +15,7 @@ export async function read(filePath, encoding = 'utf8') {
|
||||
return await fsP.readFile(filePath, encoding, { flag: 'r' })
|
||||
}
|
||||
|
||||
export async function readSync(filePath, encoding = 'utf8') {
|
||||
export function readSync(filePath, encoding = 'utf8') {
|
||||
return fs.readFileSync(filePath, encoding, { flag: 'r' })
|
||||
}
|
||||
|
||||
@@ -50,6 +50,6 @@ export async function copy(sourcePath, targetPath) {
|
||||
return await fsP.copyFile(sourcePath, targetPath)
|
||||
}
|
||||
|
||||
function append(content, filePath) {
|
||||
|
||||
export function appendSync(content, filePath) {
|
||||
return fs.appendFileSync(filePath, content, 'utf8');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user