Closed JUSTIVE closed 2 months ago
@JUSTIVE Plz try this and run npx foy build
again:
const { task, desc, option, fs,setGlobalOptions } = require('foy')
setGlobalOptions({ loading: false })
task('build', async ctx => {
await ctx.exec('echo "hello world"')
})
do you use windows?
@JUSTIVE Plz try this and run
npx foy build
again:const { task, desc, option, fs,setGlobalOptions } = require('foy') setGlobalOptions({ loading: false }) task('build', async ctx => { await ctx.exec('echo "hello world"') })
still same, without any stdout prints. I'm using mac(apple silicon). tried on node, and also bun, same outputs.
figured out how it works. I had to pass another 'build' to execute properly.
bun ./index.ts build
was the solution I needed.
Hi, I'm trying to use this library, but I'm having trouble with it. even with the basic example that Foy init gives, it does not work at all, which is
and does not print at all. tried changing command to something simple, also does not work at all. Am I missing something here?
for more information, I'm using node@20.