implement file_system.ts:write

parent d9d3140e
import glob from "glob"
import fs from "fs"
import fs from "fs-extra"
import path from "path"
export function* walkDir(
......@@ -28,6 +28,14 @@ export function load(path: string): any {
return JSON.parse(rawjson)
export function write(something: any, filename: string): any {
const content = JSON.stringify(something, null, 2)
fs.writeFileSync(filename, content, {
encoding: "utf8",
export function getFiles(args: any): any {
let files: string[] = []
function _getFiles(fileOrPattern: any) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment