[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Setup: use correct npm ci command and remove deprecated husky install
"MAGENE Sem Joel \(@Jomagene\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69a348fcabcfa_3b1879149991c@gitlab-sidekiq-low-urgency-cpu-bound-v2-7f6f7b97c5-6b668.mail> |
MAGENE Sem Joel pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
0085d190 by MAGENE Sem Joel at 2026-02-28T19:50:40+00:00
[FIX] Setup: use correct npm ci command and remove deprecated husky install
---
* [FIX] Setup: use correct npm ci command and remove deprecated husky install
See merge request tikiwiki/tiki!9670
- - - - -
3 changed files:
- doc/devtools/release.php
- package.json
- setup.sh
Changes:
=====================================
doc/devtools/release.php
=====================================
@@ -639,7 +639,7 @@ function build_packages($releaseVersion)
}
echo "Running node install and build\n";
- $npmInstall = "cd $sourceDir; npm install --clean-install --engine-strict";
+ $npmInstall = "cd $sourceDir; npm clean-install --engine-strict";
exec($npmInstall, $npmInstallOutput, $npmInstallExitCode);
if ($npmInstallExitCode !== 0) {
error("npm install failed. Exiting.", $npmInstallExitCode);
=====================================
package.json
=====================================
@@ -43,7 +43,7 @@
"clean" : "concurrently \"npm:clean:*\"",
"test" : "vitest --config=src/js/vite.config.mjs --coverage",
"testci" : "vitest --config=src/js/vite.config.mjs --coverage --run",
- "postinstall" : "patch-package --patch-dir=src/js/patches --error-on-fail && npx husky install",
+ "postinstall" : "patch-package --patch-dir=src/js/patches --error-on-fail",
"patch" : "patch-package --patch-dir=src/js/patches --error-on-fail",
"prepare" : "husky"
},
=====================================
setup.sh
=====================================
@@ -715,7 +715,7 @@ npm_setup() {
echo "Running node install and build"
set -x
- npm install --clean-install --engine-strict
+ npm clean-install --engine-strict
{
exitCode=$?
if [ $exitCode -ne 0 ]; then
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0085d1909f0528d539096999ed0a261bed217968
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0085d1909f0528d539096999ed0a261bed217968
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs