feat(ags): import fzf correctly with types

This commit is contained in:
matt1432 2024-03-19 15:10:18 -04:00
parent cea02da54c
commit 89c02b408d
3 changed files with 19 additions and 13 deletions
modules/ags/config/js

View file

@ -29,13 +29,15 @@ export const transpileTypeScript = async(host) => {
// Create the dir if it doesn't exist
`mkdir -p /tmp/ags-${host}; ` +
// Let bun see tsconfig.json
`cd ${App.configDir};` +
`bun build ${App.configDir}/${host}.ts ` +
'--external resource:///* ' +
'--external gi://* ' +
'--external cairo ' +
'--external */fzf.es.js ' +
// Since bun wants to right in cwd, we just redirect stdin instead
// Since bun wants to write in cwd, we just redirect stdin instead
`> ${outPath}`,
]).catch(print);