Skip to content

chore(cli): remove cloning logic for components#839

Merged
jorgemoya merged 2 commits intomainfrom
remove-components-cli
May 1, 2024
Merged

chore(cli): remove cloning logic for components#839
jorgemoya merged 2 commits intomainfrom
remove-components-cli

Conversation

@jorgemoya
Copy link
Copy Markdown
Contributor

What/Why?

Since we no longer have /packages/components, we don't need to clone it.

Testing

TBD

@jorgemoya jorgemoya requested a review from a team May 1, 2024 02:00
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 1, 2024

🦋 Changeset detected

Latest commit: e1218d0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/create-catalyst Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2024

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

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview May 1, 2024 6:15pm
catalyst-test-store ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 6:15pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview May 1, 2024 6:15pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview May 1, 2024 6:15pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview May 1, 2024 6:15pm

Comment on lines +84 to +89
compilerOptions: z
.object({
declaration: z.boolean().optional(),
declarationMap: z.boolean().optional(),
})
.passthrough(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should be able to remove this bit now (and the delete statements below).

include: z.array(z.string()).optional(),
})
.passthrough()
.parse(merge({}, readJsonSync(join(projectDir, 'tsconfig.json'))));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🍹 I wonder if we still need to merge these now? Could we just read the file then parse it?

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.

Makes sense!

Comment on lines 68 to 70
delete packageJson.private;
delete packageJson.exports;
delete packageJson.sideEffects;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would audit these, in case we can remove more.

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.

Do these even get added? Since I removed above, I think I can just remove these, no?

Copy link
Copy Markdown
Contributor

@matthewvolk matthewvolk left a comment

Choose a reason for hiding this comment

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

🙌

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2024

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-22hzzw9lq-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟢 Performance 100
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 90

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟢 Performance 98
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 92

@jorgemoya jorgemoya requested a review from chanceaclark May 1, 2024 18:21
@jorgemoya jorgemoya added this pull request to the merge queue May 1, 2024
Merged via the queue into main with commit 0e5e513 May 1, 2024
@jorgemoya jorgemoya deleted the remove-components-cli branch May 1, 2024 20:10
@github-actions github-actions Bot mentioned this pull request May 1, 2024
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.

3 participants