vtex / faststore

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

Prepare for CLI to be run on any arbitrary path #2368

Closed gvc closed 3 weeks ago

gvc commented 3 weeks ago

What's the purpose of this pull request?

This PR still should not affect any behavior. Everything should work the same as it did before.

To prepare the FastStore CLI to run on any arbitrary path. I've created a closure called withBasePath that will receive the basePath and export the same values as before. To keep the same behavior, wherever the directory.ts file was being imported, I'll call the withBasePath with process.cwd()

Starter PR 🔜

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/ELx42J2cgy2hHzVyj389ZwjrmgjC)) | [Visit Preview](https://faststore-site-git-cli-arbitraty-path-prep-faststore.vercel.app) | | Jul 4, 2024 0:30am |
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.