GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(build): Drop prepack step & directly pack `/build` directory by mydea · Pull Request #12656 · getsentry/sentry-javascript

Conversation

@mydea

@mydea mydea commented Jun 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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 prepack step anymore.

Instead, we define which files should be included in the tarball via files in the package.json.

image

Fixes #12642

There are some tiny fluctuations in the comparison table but as far as I can tell nothing serious/bad.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mydea
mydea requested review from AbhiPrasad, andreiborza and lforst June 26, 2024 09:28
@mydea mydea self-assigned this Jun 26, 2024
@mydea
mydea requested review from a team as code owners June 26, 2024 09:28
@mydea

mydea commented Jun 26, 2024

Copy link
Copy Markdown
Member Author

cc @nicohrubec we should also do this for the nest package right away!

nicohrubec reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nicohrubec
nicohrubec reviewed Jun 26, 2024
View reviewed changes
Comment thread packages/svelte/package.json Outdated
"types",
"types-ts3.8"
"/build",
"LICENCE",

@nicohrubec nicohrubec Jun 26, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

should this be LICENSE maybe?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mydea mydea Jun 26, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

oops, yes it should! 🤦 good catch!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nicohrubec reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@lforst lforst Jun 26, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

some files including the license are added by default: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mydea mydea Jun 26, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

ah, nice, then I'll just remove this overall

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexandersorokin alexandersorokin Jun 26, 2024

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

README.* is also included by default.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mydea reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
andreiborza
andreiborza reviewed Jun 26, 2024
View reviewed changes
Comment thread packages/angular/package.json Outdated
@@ -14,8 +14,8 @@
"/build/fesm2015",
"/build/fesm2020",
"/build/*.d.ts",

@andreiborza andreiborza Jun 26, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

What about the *.d.ts.map files?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mydea reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@mydea mydea Jun 26, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

there are none here, actually! But I'll still add this, to be future-safe!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

andreiborza reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
andreiborza
andreiborza approved these changes Jun 26, 2024
View reviewed changes

@andreiborza andreiborza left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

nice reducing complexity!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
AbhiPrasad
AbhiPrasad reviewed Jun 26, 2024
View reviewed changes

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Can we remove/update https://github.com/getsentry/sentry-javascript/blob/develop/scripts/prepack.ts?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions

github-actions Bot commented Jun 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
@sentry/browser 22.22 KB (0%)
@sentry/browser (incl. Tracing) 33.31 KB (0%)
@sentry/browser (incl. Tracing, Replay) 69.09 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.42 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 73.15 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 85.75 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.61 KB (0%)
@sentry/browser (incl. metrics) 26.5 KB (0%)
@sentry/browser (incl. Feedback) 38.86 KB (0%)
@sentry/browser (incl. sendFeedback) 26.85 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.45 KB (0%)
@sentry/react 24.97 KB (0%)
@sentry/react (incl. Tracing) 36.36 KB (0%)
@sentry/vue 26.33 KB (0%)
@sentry/vue (incl. Tracing) 35.17 KB (0%)
@sentry/svelte 22.36 KB (0%)
CDN Bundle 23.42 KB (0%)
CDN Bundle (incl. Tracing) 35.05 KB (0%)
CDN Bundle (incl. Tracing, Replay) 69.18 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 74.38 KB (0%)
CDN Bundle - uncompressed 68.8 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 103.66 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 214.13 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.84 KB (0%)
@sentry/nextjs (client) 36.24 KB (0%)
@sentry/sveltekit (client) 33.95 KB (0%)
@sentry/node 132.43 KB (0%)
@sentry/node - without tracing 91.87 KB (+0.01% 🔺)
@sentry/aws-serverless 118.45 KB (+0.01% 🔺)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mydea

mydea commented Jun 26, 2024

Copy link
Copy Markdown
Member Author

Can we remove/update https://github.com/getsentry/sentry-javascript/blob/develop/scripts/prepack.ts?

That is removed in this PR! 😅

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mydea

mydea commented Jun 26, 2024

Copy link
Copy Markdown
Member Author

For reference, in Angular we still pack from ./build, but that is the way to go there - the angular build command does some magic itself for this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

AbhiPrasad
AbhiPrasad approved these changes Jun 26, 2024
View reviewed changes

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

That is removed in this PR

well that's embarrassing

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lforst reacted with heart emoji
All reactions
  • ❤️ 1 reaction
mydea added 14 commits June 27, 2024 09:32
@mydea
feat: Drop prepack step & directly pack /build directory
8d543cd
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!).
@mydea
fix angular
ce178c4
@mydea
fix typo & angular caching
9e28c39
@mydea
fix angular build
b1b8eb4
@mydea
remove license
8674757
@mydea
ensure we are future-safe
7cda396
@mydea
build solidrouter types into root
4affc2e
@mydea
fix solid types...
8ba2985
@mydea
add comments
3cee219
@mydea
remove readme from files list
b47ca4a
@mydea
fix angular (mostly reverting)
a59b7a9
@mydea
properly ignore
6dad0da
@mydea
fix caching for types in solid
9f54189
@mydea
remove unneeded from nest
dba98d7
@mydea
mydea force-pushed the fn/no-more-prepack branch from cda71bf to dba98d7 Compare June 27, 2024 07:33
@mydea
mydea merged commit 2a7c22b into develop Jun 27, 2024
@mydea
mydea deleted the fn/no-more-prepack branch June 27, 2024 08:57
@AbhiPrasad AbhiPrasad mentioned this pull request Jun 28, 2024
fix(deno): Add prepack for deno build #12700
Merged
AbhiPrasad added a commit that referenced this pull request Jul 2, 2024
@AbhiPrasad
fix(deno): Add prepack for deno build (#12700)
840dd8f
fixes #12698

Adds back prepack script just for deno which was removed in
#12656 because it's a
breaking change for the deno package which relies on the directory
structure for their import path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nicohrubec nicohrubec nicohrubec left review comments
@andreiborza andreiborza andreiborza approved these changes
@lforst lforst Awaiting requested review from lforst
+2 more reviewers
@alexandersorokin alexandersorokin alexandersorokin left review comments
@AbhiPrasad AbhiPrasad AbhiPrasad approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mydea mydea

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

npm packages @sentry/core and @sentry/utils have invalid 'sources' path in *.js.map files

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@mydea @lforst @alexandersorokin @AbhiPrasad @nicohrubec @andreiborza
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.