typescript/typescript.spec
Andrea Manzini 7ddd88fc81 - Update to version 5.6.2
* fixed parseCommandLine fails with --build and --force
  * fixed Watch cannot handle large amount of file changes 
  * fixed tsc crash with Error: start < 0 in a specific config
  * allow use export = in .cts when module is esnext
  * fixed verbatimModuleSyntax + import of ambient const enum missing error
  * fixed Can't augment function overload is function is exported via export {}
  * fixed Crash when using a combination of a switch statement, optional 
    chaining, an implicit any array, and ts strict settings.
  * fixed Declaration emit change in 5.5 with exactOptionalPropertyTypes
  * fixed Duplicate exports.* = assignments in CommonJS output in some cases
  * fixed LiteralPropertyName should allow BigInt
  * fixed Ghost errors and inconsistencies in destructuring patterns
 
For the full changelog see https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/typescript?expand=0&rev=55
2024-09-20 08:39:45 +00:00

66 lines
1.9 KiB
RPMSpec

#
# spec file for package typescript
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: typescript
Version: 5.6.2
Release: 0
Summary: A language for application scale JavaScript development
License: Apache-2.0
Group: Development/Libraries/Other
URL: http://typescriptlang.org/
Source0: https://github.com/microsoft/TypeScript/releases/download/v%{version}/%{name}-%{version}.tgz
BuildRequires: fdupes
BuildRequires: nodejs-packaging
BuildArch: noarch
%{?nodejs_requires}
%description
TypeScript is a language for application-scale JavaScript. TypeScript adds
optional types, classes, and modules to JavaScript. TypeScript supports 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
sed -i 's/\r$//' ThirdPartyNoticeText.txt
sed -i 's/\r$//' README.md
sed -i 's/\r$//' LICENSE.txt
%build
%install
%nodejs_install
# Fix shebang lines
for file in %{buildroot}%{_bindir}/ts* ; do
sed -i -e "s|#!%{_bindir}/env node|#!%{_bindir}/node|" $(readlink -f $file)
done
%fdupes %{buildroot}
%files
%license LICENSE.txt ThirdPartyNoticeText.txt
%doc README.md
%dir %{nodejs_sitelib}
%{nodejs_sitelib}/%{name}
%{_bindir}/tsc
%{_bindir}/tsserver
%changelog