Skip to content

Commit

Permalink
Fix plutus-pab-client npm start (#3331)
Browse files Browse the repository at this point in the history
by also generating the test files that plutus-pab-client imports

Fixes #3328
  • Loading branch information
luigy committed Jun 9, 2021
1 parent 989f1ca commit e26968d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plutus-pab-client/default.nix
Expand Up @@ -12,10 +12,12 @@ let

# For dev usage
generate-purescript = pkgs.writeShellScriptBin "plutus-pab-generate-purs" ''
rm -rf ./generated
generatedDir=./generated
rm -rf $generatedDir
# There might be local modifications so only copy when missing
! test -f ./plutus-pab.yaml && cp ../plutus-pab/plutus-pab.yaml.sample plutus-pab.yaml
$(nix-build ../default.nix --quiet --no-build-output -A plutus-pab.server-invoker)/bin/plutus-pab psgenerator generated
$(nix-build ../default.nix --quiet --no-build-output -A plutus-pab.server-invoker)/bin/plutus-pab psgenerator $generatedDir
${plutus-pab-test-psgenerator}/bin/plutus-pab-test-psgenerator $generatedDir
'';

# For dev usage
Expand Down

0 comments on commit e26968d

Please sign in to comment.