vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
182 stars 57 forks source link

Add `path` arg to all commands #2372

Closed gvc closed 2 weeks ago

gvc commented 3 weeks ago

What's the purpose of this pull request?

To allow FastStore to be run from a monorepo we need to add this path argument so the FastStore CLI can locate the directory where the actual customizations are.

How it works?

After https://github.com/vtex/faststore/2366 and https://github.com/vtex/faststore/2368 this PR just adds the arg to the OCLIF command class and pass it down to the code, to be used with withBasePath.

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **faststore-site** | ⬜️ Ignored ([Inspect](https://vercel.com/faststore/faststore-site/3s9NwoGCRuiGRAKYLAGXyLRzhmEF)) | [Visit Preview](https://faststore-site-git-cli-add-path-arg-to-commands-faststore.vercel.app) | | Jul 9, 2024 7:25pm |
codesandbox-ci[bot] commented 3 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.