From 6b4245fd3237c5660f812b83eec134bf3711a4df Mon Sep 17 00:00:00 2001 From: Owen-sz Date: Wed, 18 Mar 2026 20:08:09 -0500 Subject: [PATCH 1/4] add: typescript Signed-off-by: Owen-sz --- anda/langs/typescript/anda.hcl | 6 ++++ anda/langs/typescript/typescript.spec | 46 +++++++++++++++++++++++++++ anda/langs/typescript/update.rhai | 0 3 files changed, 52 insertions(+) create mode 100644 anda/langs/typescript/anda.hcl create mode 100644 anda/langs/typescript/typescript.spec create mode 100644 anda/langs/typescript/update.rhai diff --git a/anda/langs/typescript/anda.hcl b/anda/langs/typescript/anda.hcl new file mode 100644 index 00000000000..fb4509b46c4 --- /dev/null +++ b/anda/langs/typescript/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "typescript.spec" + } +} diff --git a/anda/langs/typescript/typescript.spec b/anda/langs/typescript/typescript.spec new file mode 100644 index 00000000000..668e558073e --- /dev/null +++ b/anda/langs/typescript/typescript.spec @@ -0,0 +1,46 @@ +%if 0%{?rhel} +Name: typescript +Version: 5.7.3 +Release: %autorelease +Summary: A language for application scale JavaScript development +License: Apache-2.0 +URL: https://www.typescriptlang.org +Source: https://registry.npmjs.org/typescript/-/typescript-%{version}.tgz +BuildArch: noarch + +BuildRequires: nodejs +BuildRequires: nodejs-packaging + +Packager: Owen Zimmerman + +%description +TypeScript is a language for application-scale JavaScript. TypeScript adds +optional types to JavaScript that support tools for large-scale JavaScript +applications for any browser, for any host, on any OS. TypeScript compiles to +readable, standards-based JavaScript. + +%prep +%autosetup -n package + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/typescript +cp -pr package.json bin/ lib/ %{buildroot}%{nodejs_sitelib}/typescript + +mkdir -p %{buildroot}%{_bindir} +ln -s ../lib/node_modules/typescript/bin/tsc %{buildroot}%{_bindir}/tsc +ln -s ../lib/node_modules/typescript/bin/tsserver %{buildroot}%{_bindir}/tsserver + +%check +%{__nodejs} -e 'require("./")' + + +%files +%license LICENSE.txt +%{nodejs_sitelib}/typescript +%{_bindir}/tsc +%{_bindir}/tsserver + +%changelog +* Wed Mar 18 2026 Owen Zimmerman - 5.7.3-1 +- Port from Fedora EPEL9 spec +%endif diff --git a/anda/langs/typescript/update.rhai b/anda/langs/typescript/update.rhai new file mode 100644 index 00000000000..e69de29bb2d From 7ccd3a7807f737ece569a4e51c3b05632b9795c8 Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:10:31 -0500 Subject: [PATCH 2/4] add update.rhai Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/typescript/update.rhai | 1 + 1 file changed, 1 insertion(+) diff --git a/anda/langs/typescript/update.rhai b/anda/langs/typescript/update.rhai index e69de29bb2d..bd875aa96ac 100644 --- a/anda/langs/typescript/update.rhai +++ b/anda/langs/typescript/update.rhai @@ -0,0 +1 @@ +print(npm("typescript")); From e5c4be0edf35009b2ba77ef9dabb363e06965512 Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:10:44 -0500 Subject: [PATCH 3/4] oops I was testing Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/typescript/update.rhai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/langs/typescript/update.rhai b/anda/langs/typescript/update.rhai index bd875aa96ac..ead1cd9ce81 100644 --- a/anda/langs/typescript/update.rhai +++ b/anda/langs/typescript/update.rhai @@ -1 +1 @@ -print(npm("typescript")); +rpm.version(npm("typescript")); From 53176ca911fb079485978f4e7191cc1af89eca4f Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:11:13 -0500 Subject: [PATCH 4/4] out date Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/typescript/typescript.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/langs/typescript/typescript.spec b/anda/langs/typescript/typescript.spec index 668e558073e..d63ac77885d 100644 --- a/anda/langs/typescript/typescript.spec +++ b/anda/langs/typescript/typescript.spec @@ -1,6 +1,6 @@ %if 0%{?rhel} Name: typescript -Version: 5.7.3 +Version: 5.9.3 Release: %autorelease Summary: A language for application scale JavaScript development License: Apache-2.0