Skip to content

Commit

Permalink
Bug-Fix: yarn prepublish script of packages/algob not working (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeena840 authored Jul 11, 2022
1 parent 3e6a8dd commit dc258af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/algob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build": "tsc --build .",
"build:watch": "tsc -w -p .",
"clean": "rimraf builtin-tasks internal *.d.ts *.map *.js tsconfig.ts buildinfo build",
"prepublish": "yarn build; for f in Makefile README.md private-net-template.json sandbox-docker-compose.yml; cp ../../infrastructure/$f sample-project/infrastructure",
"prepublish": "yarn build; sh ./prepublish.sh",
"algob:dev": "sh ./setup_dev_project.sh"
},
"publishConfig": {
Expand Down
6 changes: 6 additions & 0 deletions packages/algob/prepublish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

for f in Makefile README.md private-net-template.json sandbox-docker-compose.yml
do
cp ../../infrastructure/$f sample-project/infrastructure;
done

0 comments on commit dc258af

Please sign in to comment.