feat(build): Drop prepack step & directly pack /build directory#12656
feat(build): Drop prepack step & directly pack /build directory#12656
/build directory#12656Conversation
|
cc @nicohrubec we should also do this for the nest package right away! |
packages/svelte/package.json
Outdated
| "types", | ||
| "types-ts3.8" | ||
| "/build", | ||
| "LICENCE", |
There was a problem hiding this comment.
should this be LICENSE maybe?
There was a problem hiding this comment.
oops, yes it should! 🤦 good catch!
There was a problem hiding this comment.
some files including the license are added by default: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files
There was a problem hiding this comment.
ah, nice, then I'll just remove this overall
There was a problem hiding this comment.
README.* is also included by default.
packages/angular/package.json
Outdated
| @@ -14,8 +14,8 @@ | |||
| "/build/fesm2015", | |||
| "/build/fesm2020", | |||
| "/build/*.d.ts", | |||
There was a problem hiding this comment.
What about the *.d.ts.map files?
There was a problem hiding this comment.
there are none here, actually! But I'll still add this, to be future-safe!
andreiborza
left a comment
There was a problem hiding this comment.
nice reducing complexity!
AbhiPrasad
left a comment
There was a problem hiding this comment.
Can we remove/update https://github.com/getsentry/sentry-javascript/blob/develop/scripts/prepack.ts?
size-limit report 📦
|
That is removed in this PR! 😅 |
|
For reference, in Angular we still pack from |
AbhiPrasad
left a comment
There was a problem hiding this comment.
That is removed in this PR
well that's embarrassing
This is mostly an internal change, but it does change the layout of the published package, which shouldn't affect users, unless they depend on non-public things (which nobody should!).
cda71bf to
dba98d7
Compare
This is mostly an internal change, but it does change the layout of the published package, which shouldn't affect users, unless they depend on non-public things (which nobody should!).
With this change, we will simply pack the packages as-is without moving any folder relativity. This means we do not need a
prepackstep anymore.Instead, we define which files should be included in the tarball via
filesin thepackage.json.Fixes #12642
There are some tiny fluctuations in the comparison table but as far as I can tell nothing serious/bad.