import { promises as fs } from "fs" ; import * as path from "path" ; import * as tr from "text-runner" ; /** creates a binary with the given name in the workspace */ export default async function bundledExecutable ( action ) { const name = action . region . text ( ) ; const filePath = action . configuration . workspace . joinStr ( name ) ; const dirPath = path . dirname ( filePath ) ; await fs . mkdir ( dirPath ) ; await fs . writeFile ( filePath , "" ) ; }