@naeem For a sensible answer, I need to know more information. Which JSON file is it and what is it for?
JSON file is easy to create, just click "Write to file", for example, with the name "my_file.json". You can find the content (syntax) of JSON here: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON
Reference private npm or local files created outside editor
-
Hello,
I have many files I'll be using across many projects that I'd like to include in BAS. Is there either a way to add private npm packages or reference local files not created in the BAS node.js file editor?
As long as I keep the file names the same can I copy over the js files at C:\Users<USER>\AppData\Roaming\BrowserAutomationStudio\apps\22.1.2\embedded<HASH>\distr\lib?
Thanks,
Jim -
@jimhill21 said in Reference private npm or local files created outside editor:
Hello,
I have many files I'll be using across many projects that I'd like to include in BAS. Is there either a way to add private npm packages or reference local files not created in the BAS node.js file editor?
As long as I keep the file names the same can I copy over the js files at C:\Users<USER>\AppData\Roaming\BrowserAutomationStudio\apps\22.1.2\embedded<HASH>\distr\lib?
Thanks,
JimYou can use standard BAS actions to create\download\copy or move the necessary js files. You can get the current directory of the node js module using the
__dirnamemethod

