guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 8b06604de88efd4fcdc70fb1e5b1f4f0fe08e5a9
Author: Jelle Licht <[email protected]>
AuthorDate: Thu Oct 15 13:07:37 2026 +0200
gnu: node-mkdirp: Build from TypeScript sources.
* gnu/packages/node-xyz.scm (node-mkdirp)[arguments]<#:phases>: Keep
"@types/node" and "typescript" in 'delete-dev-dependencies. Add
'adjust-for-typescript-6. Replace 'build.
[native-inputs]: Add node-types-node and node-typescript.
---
gnu/packages/node-xyz.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 92a47fb7e97..eb884b67ba3 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -2457,7 +2457,25 @@ This is not a through or through2 stream. It doesn't
transform the data, it just
#~(modify-phases %standard-phases
(add-after 'patch-dependencies 'delete-dev-dependencies
(lambda _
- (modify-json (delete-dev-dependencies)))))))
+ (modify-json "package.json"
+ (delete-dev-dependencies/except
+ '("@types/node" "typescript")))))
+ (add-after 'unpack 'adjust-for-typescript-6
+ (lambda _
+ (modify-json "tsconfig-base.json"
+ (add-json-fields
+ '(("compilerOptions.ignoreDeprecations" . "6.0")
+ ("compilerOptions.types" . #("node")))))
+ (modify-json "tsconfig-esm.json"
+ (add-json-fields '(("compilerOptions.rootDir" . "src"))))))
+ (replace 'build
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ (let ((tsc (search-input-file (or native-inputs inputs)
+ "bin/tsc")))
+ (invoke tsc "-p" "tsconfig.json")
+ (invoke tsc "-p" "tsconfig-esm.json")
+ (invoke "bash" "fixup.sh")))))))
+ (native-inputs (list node-types-node node-typescript))
(home-page "https://github.com/isaacs/node-mkdirp")
(synopsis "mkdir command implementation in Node.js")
(description "This package provides a recursive @command{mkdir} command