You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a major issue, but when you have multiple files in the root of scripts/ and one doesn't have an export default(probably if it's the first identified by algob during the deploy, ex. in my case common.js was choosen before deploy.js) the command will fail. Obviously, you can still do yarn algob deploy scripts/deploy.js but it's just to clarify that. Solution would be to check scripts files for an export default or simply suggest the user to specify the deploy script, temporary solution is to have the deploy in the root of scripts and leave the others in a subfolder.
The text was updated successfully, but these errors were encountered:
Thanks for the info @Lumene98. However, we don't recommend putting other .js file within deploy scripts. So in order to use common.js, i would suggest to put it in /scripts/common/common.js. This is how the project structure could look like:
scripts/*.js // algob deploy: will deploy these files (in sorted order)
scripts/common/*.js // common files
scripts/transfer/*.js // files for RUN mode (to use with `algob run scripts/transfer/*.js..` )
...
Please let me know if that makes sense. Will check docs as well.
This is not a major issue, but when you have multiple files in the root of scripts/ and one doesn't have an export default(probably if it's the first identified by algob during the deploy, ex. in my case common.js was choosen before deploy.js) the command will fail. Obviously, you can still do
yarn algob deploy scripts/deploy.js
but it's just to clarify that. Solution would be to check scripts files for an export default or simply suggest the user to specify the deploy script, temporary solution is to have the deploy in the root of scripts and leave the others in a subfolder.The text was updated successfully, but these errors were encountered: