nixpkgs/pkgs/applications/version-management/forgejo/package-json-npm-build-frontend.patch
IndeedNotJames e6a04bc9ef
forgejo: build from source
instead of relying on the release tarballs published with each release.
This does however add two additional hashes (`vendorHash` and `npmDepsHash`), making it a total of 3 hashes that need to be updated each time.

The old `updateScript` is no longer useful as of this change.
It was originally added because we weren't aware that gitea/forgejo/codeberg have "predictable URLs" for the needed release tarball.
Fixed in 0dd0b2103a
2023-04-21 03:56:51 +02:00

15 lines
266 B
Diff

diff --git a/package.json b/package.json
index 57dcfc2f7..c9f23dbf7 100644
--- a/package.json
+++ b/package.json
@@ -79,5 +79,8 @@
"defaults",
"not ie > 0",
"not ie_mob > 0"
- ]
+ ],
+ "scripts": {
+ "build": "node_modules/.bin/webpack"
+ }
}