apify-cli
apify-cli copied to clipboard
Allow modifying the actor root path
Hey there,
I use a monorepo with NPM workspaces:
project
+-- node_modules
+-- packages
+-- shared-lib
+-- actor
+-- apify.json
The apify push command is run from the actor directory.
Apify client uses the actor folder as root path as seen here: https://github.com/apify/apify-cli/blob/6222bd054b664a0b8e9c55f002a933ce122389e1/src/commands/push.js#L67
This is preventing a proper installation of the shared-lib when container runs npm install because the lib is not bundled.
Could we have a new option in apify.json to allow a custom root path?