fix(gir): correct name of astal4 types
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-19 20:54:26 -05:00
parent 229018ec9f
commit 93547b18fa
5 changed files with 15 additions and 9 deletions

View file

@ -61,8 +61,7 @@ export default async() => {
for (const path of packages) {
if (
path.name === 'package.json' &&
!path.parentPath.includes('node_modules') &&
!path.parentPath.includes('mk-types') // FIXME: latest breaks
!path.parentPath.includes('node_modules')
) {
await updatePackageJson(path.parentPath, updates);

View file

@ -42,6 +42,8 @@ in {
then "AstalIO-0.1"
else if package.name == "astal-3.0.0"
then "Astal-3.0"
else if package.name == "astal-4.0.0"
then "Astal-4.0"
else (concatMapStrings capitalise (splitString "-" package.pname)) + "-0.1";
})
packages;

View file

@ -7,22 +7,27 @@
...
}: let
inherit (lib) concatMapStringsSep;
buildPhase = ''
npx @ts-for-gir/cli generate ${concatMapStringsSep " " (p: p.girName) withGirNames} \
${concatMapStringsSep "\n" (p: "-g ${p.package.dev}/share/gir-1.0 \\") withGirNames}
-g ${ts-for-gir-src}/girs \
--ignoreVersionConflicts \
-o ./types
'';
in
buildNpmPackage {
pname = "${pname}-types";
version = "0.0.0";
npmDepsHash = "sha256-3ll4Xd5F8ZH/7q/gOF0jgerM6QRk71d93XIwtDssfxU=";
npmDepsHash = "sha256-QqLwPJJbAeiGMKUwhpUL1LME0DYm/rIgu8pAyt98KVI=";
src = ./.;
dontNpmBuild = true;
buildPhase = ''
npx @ts-for-gir/cli generate ${concatMapStringsSep " " (p: p.girName) withGirNames} \
${concatMapStringsSep "\n" (p: "-g ${p.package.dev}/share/gir-1.0 \\") withGirNames}
-g ${ts-for-gir-src}/girs \
--ignoreVersionConflicts \
-o ./types
echo -e '\n${buildPhase}\n'
${buildPhase}
'';
installPhase = ''

Binary file not shown.

View file

@ -1,5 +1,5 @@
{
"dependencies": {
"@ts-for-gir/cli": "4.0.0-beta.16"
"@ts-for-gir/cli": "4.0.0-beta.19"
}
}