Epic. Cross-repo: apify-core, apify-shared-js, apify-cli.
A lot of code is copied from apify-core into the CLI because apify-cli is public and cannot depend on apify-core's private packages. Move the significant shared pieces into apify-shared-js (public) and have the CLI and Core import them from there instead of copying, so the two stay in sync.
Directions:
- Identify the copied code and decide what is worth sharing.
- Move it into apify-shared-js (existing or a new package) and publish.
- Replace the CLI's copies with imports from apify-shared-js.
- Where it helps, have apify-core consume the shared version too, removing its own duplication.
A lot of code is copied from apify-core into the CLI because apify-cli is public and cannot depend on apify-core's private packages. Move the significant shared pieces into apify-shared-js (public) and have the CLI and Core import them from there instead of copying, so the two stay in sync.
Directions: