mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-10-28 07:44:21 +01:00
Change require to import for FS and Remove Test
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import fs from "fs";
|
||||
import { execFile as execFileOriginal } from "node:child_process";
|
||||
import { ExecFileFn } from "./types";
|
||||
|
||||
@@ -24,7 +25,6 @@ export async function convert(
|
||||
args.push("--read", fileType);
|
||||
args.push("--write", convertTo);
|
||||
|
||||
const fs = require("fs");
|
||||
return new Promise((resolve, reject) => {
|
||||
execFile("dasel", args, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user