rokucommunity / roku-deploy

An npm module for zipping and deploying to Roku devices.
MIT License
41 stars 17 forks source link

Support setting `cwd` from options and cli #146

Closed TwitchBronBron closed 5 months ago

TwitchBronBron commented 7 months ago

Add a cwd cli flag / options property that defines what the current working directory should be. All instances of process.cwd() should be changed to options.cwd ?? process.cwd().

Definitely add cwd to all the cli commands that need it.

Probably also need to add cwd to a bunch of the RokuDeploy function options (anything that would use rootDir (which defaults to .cwd), maybe stagingDir, screenshotsDir, etc. Need to look closer at them all but that should get you started in the right direction.