@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,
Jim
You 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 __dirname method
0_1570642528238_93999c70-c382-4479-9589-31b83c2a5c95-изображение.png
0_1570642540844_ea58666e-a35b-40c8-963b-f99877dc8870-изображение.png