replace new npm patch-package call by patching npm modules in napalm

This commit is contained in:
778a69cd 2024-02-08 19:33:57 +01:00
parent 10d3d03da1
commit 7044f63788
2 changed files with 9 additions and 2 deletions

View file

@ -73,6 +73,14 @@
inherit nodejs;
nativeBuildInputs = [ pkgs.imagemagick ];
npmCommands = [ "npm install" "npm run build" ];
# Keep this in sync with the content of ./patches/
customPatchPackages = {
vue-i18n-extract."2.0.7" = pkgs: prev: {
preConfigure = ''
${pkgs.git}/bin/git apply -p3 ${./patches/vue-i18n-extract+2.0.7.patch}
'';
};
};
};
default = self.packages."${system}".mobilizon;

View file

@ -15,8 +15,7 @@
"story:preview": "histoire preview",
"test": "vitest",
"coverage": "vitest run --coverage",
"pre-commit": "lint-staged",
"postinstall": "patch-package"
"pre-commit": "lint-staged"
},
"lint-staged": {
"**/*.{js,ts,vue}": [