replace new npm patch-package call by patching npm modules in napalm
This commit is contained in:
parent
10d3d03da1
commit
7044f63788
|
@ -73,6 +73,14 @@
|
||||||
inherit nodejs;
|
inherit nodejs;
|
||||||
nativeBuildInputs = [ pkgs.imagemagick ];
|
nativeBuildInputs = [ pkgs.imagemagick ];
|
||||||
npmCommands = [ "npm install" "npm run build" ];
|
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;
|
default = self.packages."${system}".mobilizon;
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
"story:preview": "histoire preview",
|
"story:preview": "histoire preview",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"coverage": "vitest run --coverage",
|
"coverage": "vitest run --coverage",
|
||||||
"pre-commit": "lint-staged",
|
"pre-commit": "lint-staged"
|
||||||
"postinstall": "patch-package"
|
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"**/*.{js,ts,vue}": [
|
"**/*.{js,ts,vue}": [
|
||||||
|
|
Loading…
Reference in a new issue