fix(gtk-session-lock): make types use correct @girs types
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-04-19 19:20:08 -04:00
parent bab5698f39
commit 4e1ad1c8f6
3 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,7 +1,7 @@
*.egg-info
*.temp
*node_modules/
*types
**/types
*build/
result*
*config.js

View file

@ -161,7 +161,6 @@ const createWindow = (monitor: Gdk.Monitor) => {
const win = PasswordPrompt(monitor);
windows.push(win);
// @ts-expect-error should be fine
lock.new_surface(win, monitor);
win.show();
};

View file

@ -27,6 +27,12 @@ buildNpmPackage {
"-g ${gdk-pixbuf.dev}/share/gir-1.0"
"-g ${harfbuzz.dev}/share/gir-1.0"
"-g ${atk.dev}/share/gir-1.0"
]} -o $out
]} -e gjs -o ./types
mkdir -p $out
cp ./types/gtksessionlock* $out/
substituteInPlace $out/gtksessionlock* --replace-warn \
"from '." "from '@girs"
'';
}