[packages/bash-language-server] Rel 2

arekm arekm at pld-linux.org
Sat May 23 09:27:52 CEST 2026


commit e384ca8d181bbdc62456f855a6c32b4e5931758b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat May 23 09:27:30 2026 +0200

    Rel 2

 bash-language-server-typescript-6.patch | 28 ++++++++++++++++++++++++++++
 bash-language-server.spec               |  7 +++++--
 2 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/bash-language-server.spec b/bash-language-server.spec
index ba50d3a..b3989fa 100644
--- a/bash-language-server.spec
+++ b/bash-language-server.spec
@@ -1,7 +1,7 @@
 Summary:	A language server for Bash
 Name:		bash-language-server
 Version:	5.6.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Tools
 Source0:	https://github.com/bash-lsp/bash-language-server/archive/server-%{version}/%{name}-%{version}.tar.gz
@@ -11,6 +11,7 @@ Source0:	https://github.com/bash-lsp/bash-language-server/archive/server-%{versi
 # tar -C bash-language-server-server-%{version} -acf bash-language-server-node_modules-%{version}.tar.xz server/node_modules
 Source1:	%{name}-node_modules-%{version}.tar.xz
 # Source1-md5:	65b69c277cf111dffe0cf344874a1caf
+Patch0:		%{name}-typescript-6.patch
 URL:		https://github.com/bash-lsp/bash-language-server
 BuildRequires:	nodejs-typescript
 BuildRequires:	npm
@@ -27,12 +28,14 @@ scripts to most editors.
 
 %prep
 %setup -q -n %{name}-server-%{version} -a1
+%patch -P0 -p1
 
 grep -r '#!.*env node' -l . | xargs %{__sed} -i -e '1 s,#!.*env node,#!/usr/bin/node,'
 
 %build
 cd server
-tsc --lib es2022
+# upstream targets TS 5.x; TS 6.0 makes the node10 moduleResolution deprecation a hard error
+tsc --lib es2022 --ignoreDeprecations 6.0
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/bash-language-server-typescript-6.patch b/bash-language-server-typescript-6.patch
new file mode 100644
index 0000000..df61d5e
--- /dev/null
+++ b/bash-language-server-typescript-6.patch
@@ -0,0 +1,28 @@
+--- a/server/src/analyser.ts
++++ b/server/src/analyser.ts
+@@ -1,5 +1,5 @@
+ import * as fs from 'fs'
+-import * as FuzzySearch from 'fuzzy-search'
++import FuzzySearch = require('fuzzy-search')
+ import fetch from 'node-fetch'
+ import * as url from 'url'
+ import { isDeepStrictEqual } from 'util'
+--- a/server/src/parser.ts
++++ b/server/src/parser.ts
+@@ -1,4 +1,4 @@
+-import * as Parser from 'web-tree-sitter'
++import Parser = require('web-tree-sitter')
+ 
+ const _global: any = global
+ 
+--- a/server/src/server.ts
++++ b/server/src/server.ts
+@@ -2,7 +2,7 @@
+ import * as path from 'node:path'
+ import { isDeepStrictEqual } from 'node:util'
+ 
+-import * as TurndownService from 'turndown'
++import TurndownService = require('turndown')
+ import * as LSP from 'vscode-languageserver/node'
+ import { TextDocument } from 'vscode-languageserver-textdocument'
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bash-language-server.git/commitdiff/e384ca8d181bbdc62456f855a6c32b4e5931758b



More information about the pld-cvs-commit mailing list