Skip to content

Fix bug in create CLI using --install-deps flag#644

Merged
cartogram merged 3 commits into
2023-01from
@cartogram/fix-cli-deps-install
Mar 7, 2023
Merged

Fix bug in create CLI using --install-deps flag#644
cartogram merged 3 commits into
2023-01from
@cartogram/fix-cli-deps-install

Conversation

@cartogram
Copy link
Copy Markdown
Contributor

@cartogram cartogram commented Mar 6, 2023

WHY are these changes introduced?

The --install-deps and --no-install-deps flags were being ignored in the init command.

WHAT is this pull request doing?

Fixes the casing of the flag.

Post-merge steps

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

Copy link
Copy Markdown
Contributor

@frandiox frandiox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh good catch! Though I think it would be better to call flagsToCamelObject in line 49 (await runInit(flagsToCamelObject({...flags}))) like we do in other commands. Can you change that?

@cartogram
Copy link
Copy Markdown
Contributor Author

@frandiox oh yes! I forgot about that util, thanks!

@github-actions github-actions Bot had a problem deploying to preview March 6, 2023 19:30 Failure
@@ -0,0 +1,93 @@
import {describe, it, expect, vi, beforeEach} from 'vitest';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frandiox I just added these tests as well.

@cartogram cartogram force-pushed the @cartogram/fix-cli-deps-install branch from fa5d155 to a002a00 Compare March 6, 2023 19:31
@github-actions github-actions Bot had a problem deploying to preview March 6, 2023 19:33 Failure
@cartogram cartogram force-pushed the @cartogram/fix-cli-deps-install branch from a002a00 to 934aca7 Compare March 7, 2023 01:55
@cartogram cartogram requested a review from frandiox March 7, 2023 02:04
Copy link
Copy Markdown
Contributor

@frandiox frandiox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tests! LGTM 👍

@cartogram cartogram merged commit 3344b79 into 2023-01 Mar 7, 2023
@cartogram cartogram deleted the @cartogram/fix-cli-deps-install branch March 7, 2023 07:24
@github-actions github-actions Bot mentioned this pull request Mar 7, 2023
juanpprieto pushed a commit that referenced this pull request Mar 7, 2023
* Fix bug in create CLI using `--install-deps` flag

* Use flags to camel case util

* Add tests for init

---------

Co-authored-by: Matt Seccafien <462077+cartogram@users.noreply.github.com>
juanpprieto added a commit that referenced this pull request Mar 7, 2023
…ed] (#660)

* refactor seo and implement ld+json structured data

* Update templates/demo-store/app/lib/seo.server.ts

Co-authored-by: Matt Seccafien <matt.seccafien@shopify.com>

* Update templates/demo-store/app/routes/($lang)/search.tsx

Co-authored-by: Matt Seccafien <matt.seccafien@shopify.com>

* Fix bug in create CLI using `--install-deps` flag (#644)

* Fix bug in create CLI using `--install-deps` flag

* Use flags to camel case util

* Add tests for init

---------

Co-authored-by: Matt Seccafien <462077+cartogram@users.noreply.github.com>

* Hero images loading eager (#641)

* Remove Turbo cache in Oxygen deplyment (#655)

Co-authored-by: Matt Seccafien <462077+cartogram@users.noreply.github.com>

* Remove Turbo cache from typescript build action (#656)

Co-authored-by: Matt Seccafien <462077+cartogram@users.noreply.github.com>

* fix search products count

fix search products count

---------

Co-authored-by: Matt Seccafien <matt.seccafien@shopify.com>
Co-authored-by: Matt Seccafien <462077+cartogram@users.noreply.github.com>
Co-authored-by: Rafael Corrêa Gomes <rafaelstz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants