Thanks to visit codestin.com
Credit goes to github.com

Skip to content

New dist filenames#337

Merged
emmatown merged 11 commits intomasterfrom
new-dist-filenames
Oct 28, 2020
Merged

New dist filenames#337
emmatown merged 11 commits intomasterfrom
new-dist-filenames

Conversation

@emmatown
Copy link
Member

@emmatown emmatown commented Oct 28, 2020

Closes #244

@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2020

🦋 Changeset detected

Latest commit: 9739b97

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

This PR includes changesets to release 1 package
Name Type
@preconstruct/cli 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

@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #337 into master will increase coverage by 0.41%.
The diff coverage is 80.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #337      +/-   ##
==========================================
+ Coverage   83.93%   84.34%   +0.41%     
==========================================
  Files          33       33              
  Lines        1338     1367      +29     
  Branches      323      334      +11     
==========================================
+ Hits         1123     1153      +30     
+ Misses        210      209       -1     
  Partials        5        5              
Impacted Files Coverage Δ
packages/cli/src/build/rollup.ts 86.88% <ø> (ø)
packages/cli/src/project.ts 67.30% <ø> (ø)
packages/cli/src/validate.ts 85.71% <72.97%> (-12.02%) ⬇️
packages/cli/src/utils.ts 87.50% <76.31%> (-12.50%) ⬇️
packages/cli/src/package.ts 89.24% <93.93%> (+15.85%) ⬆️
packages/cli/src/entrypoint.ts 83.33% <100.00%> (ø)
packages/cli/src/build/config.ts 83.33% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f7edd9...9739b97. Read the comment docs.

@emmatown emmatown merged commit be053e7 into master Oct 28, 2020
@emmatown emmatown deleted the new-dist-filenames branch October 28, 2020 06:37
@github-actions github-actions bot mentioned this pull request Oct 28, 2020
"@preconstruct/cli": patch
---

Add `newDistFilenames` experimental flag
Copy link
Member

Choose a reason for hiding this comment

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

this PR has added distFilenameStrategy as well, probably worth mentioning here

Copy link
Member Author

Choose a reason for hiding this comment

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

distFilenameStrategy is behind the newDistFilenames flag, will mention it in the changeset that unflags it

Copy link
Member

Choose a reason for hiding this comment

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

oh ok - i've missed this when skimming through the implementation, wouldn't it make more sense to have this under experimental key?

Copy link
Member Author

Choose a reason for hiding this comment

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

The intent is for distFilenameStrategy to be a very well-supported API(once newDistFilenames is unflagged in v2) since people might not want to change their dist filenames for a while/ever

Copy link
Member

Choose a reason for hiding this comment

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

Sure, once it newDistFilenames gets unflagged - then this makes sense to me, but at the moment it's somewhat confusing to have a top-level option that is only enabled with an experimental flag. Not a big deal - but this has caught my completely off guard.

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.

Consider including scope name in the generated filenames

2 participants