parent
9bceac68cd
commit
3f0d4bb691
12 changed files with 153 additions and 191 deletions
modules/ags/astal/js
|
@ -29,19 +29,19 @@ export const transpileTypeScript = async(host) => {
|
|||
// Create the dir if it doesn't exist
|
||||
`mkdir -p /tmp/astal-${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);
|
||||
|
||||
if (host !== 'greeter') {
|
||||
watchAndCompileSass(host);
|
||||
}
|
||||
watchAndCompileSass(host);
|
||||
|
||||
return await import(`file://${outPath}`);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue