Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(core): Switch to v2 options #237

Merged
merged 11 commits into from
May 8, 2023
Merged

ref(core): Switch to v2 options #237

merged 11 commits into from
May 8, 2023

Conversation

lforst
Copy link
Member

@lforst lforst commented May 5, 2023

@lforst lforst requested review from mydea, Lms24 and AbhiPrasad May 8, 2023 08:01
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Looks good to me! Just had some minor comments but nothing blocking.

Comment on lines +169 to +178
if (options.sourcemaps) {
if (!options.authToken) {
logger.warn("No auth token provided. Will not upload source maps.");
} else if (!options.org) {
logger.warn("No org provided. Will not upload source maps.");
} else if (!options.project) {
logger.warn("No project provided. Will not upload source maps.");
} else if (!options.sourcemaps.assets) {
logger.warn("No assets defined. Will not upload source maps.");
} else {
Copy link
Member

Choose a reason for hiding this comment

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

l: Personally I'd prefer to extract this validation to a function (per plugin) to declutter this one a little but feel free to leave it as is as.

Copy link
Member Author

Choose a reason for hiding this comment

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

This currently has a use for TS. We could put it into a helper but I am not sure if it will actually simplify the code by a lot. Gonna leave this for now.

Copy link
Member

Choose a reason for hiding this comment

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

Ahh I see, yeah, then let's just leave it.

packages/bundler-plugin-core/src/index.ts Show resolved Hide resolved
hub.setTag("finalize-release", true);
}
if (deploy) {
if (release.deploy) {
hub.setTag("add-deploy", true);
}

// Miscelaneous options
Copy link
Member

Choose a reason for hiding this comment

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

super-l: Should we add a tag for the new deleteAfterUpload option? Might be interesting to see how often it is used?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't have it implemented yet but it probably doesn't hurt to add right now!

packages/bundler-plugin-core/src/types.ts Outdated Show resolved Hide resolved
lforst and others added 2 commits May 8, 2023 13:55
@lforst lforst changed the title ref(core): Switch to updated options ref(core): Switch to v2 options May 8, 2023
@lforst lforst enabled auto-merge (squash) May 8, 2023 11:57
@lforst lforst mentioned this pull request May 8, 2023
@lforst lforst merged commit d1c6972 into main May 8, 2023
16 checks passed
@lforst lforst deleted the lforst-new-options branch May 8, 2023 13:57
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.

None yet

3 participants