From 889df8add798409318298969216700a423453bff Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Jun 13 2024 15:10:15 +0000 Subject: Node.js: permit pre-minified JS Fixes: https://pagure.io/packaging-committee/issue/1343 Related: https://pagure.io/fesco/issue/3177 Signed-off-by: Stephen Gallagher --- diff --git a/guidelines/modules/ROOT/pages/Node.js.adoc b/guidelines/modules/ROOT/pages/Node.js.adoc index 7144678..86af23f 100644 --- a/guidelines/modules/ROOT/pages/Node.js.adoc +++ b/guidelines/modules/ROOT/pages/Node.js.adoc @@ -2,6 +2,8 @@ The upstream Node.js stance on https://nodejs.org/en/blog/npm/npm-1-0-global-vs-local-installation/[global library packages] is that they are ".. best avoided if not needed." In Fedora, we take the same stance with our nodejs packages. You can provide a package that uses nodejs, but you should bundle all the nodejs libraries that are needed. +Packages containing JavaScript should make the best effort to regenerate any precompiled/pre-minimized JS wherever possible, as this leads to more maintainable packages. Where this would result in a significant hardship, the bundled pregenerated JS may be shipped with a specfile comment explaining the decision. This does not eliminate the requirement to validate licenses of bundled code. See <> below. + == What to Package * The interpreter, development headers/libraries, and the assorted tools to manage project-level installations.