Merge pull request #275461 from dotlambda/gitmoji-cli-fix
gitmoji-cli: install package.json
This commit is contained in:
commit
d3a7effa82
@ -6,6 +6,7 @@
|
||||
, nodejs
|
||||
, prefetch-yarn-deps
|
||||
, yarn
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -57,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
yarn --offline --production install
|
||||
|
||||
mkdir -p "$out/lib/node_modules/gitmoji-cli"
|
||||
cp -r lib node_modules "$out/lib/node_modules/gitmoji-cli"
|
||||
cp -r lib node_modules package.json "$out/lib/node_modules/gitmoji-cli"
|
||||
|
||||
makeWrapper "${nodejs}/bin/node" "$out/bin/gitmoji" \
|
||||
--add-flags "$out/lib/node_modules/gitmoji-cli/lib/cli.js"
|
||||
@ -65,6 +66,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Gitmoji client for using emojis on commit messages";
|
||||
homepage = "https://github.com/carloscuesta/gitmoji-cli";
|
||||
|
Loading…
Reference in New Issue
Block a user