sasjs/cli

Bug: services/files from react-seed-app copied incorrectly during compile/build/deploy

TeMeta opened this issue · 2 comments

added a simple Python test program aaaaa.py to sasjs/services/files and ran sasjs cbd.

Instead of copying the python program it decided to put the content of upload.sas into both files inside sasjsbuild instead
image

Yes - that is a bug! However we don't support compilation yet for python / JS programs.

Instead, any python / JS content should be added in the syncFolder property.

Just add this to your sasjs/sasjsconfig.json:

{
  "$schema": "https://cli.sasjs.io/sasjsconfig-schema.json",
  "syncFolder": "sasjs/mystaticfolder",
  "targets": [

Then, any content under sasjs/mystaticfolder will be uploaded without modification.

Thanks @YuryShkoda, closing ticket. I realised that compiled version of services appended them in order for dependencies. The Python content was appended to the end of that file. Thanks for the clarification!