Uh oh!
There was an error while loading. Please reload this page.
feat(remix): Add release / sourcemap upload script. - #5312
Conversation
size-limit report 📦
|
AbhiPrasad
left a comment
There was a problem hiding this comment.
Can we add a note that if they need more advanced config to set up sentry-cli themselves?
Also any way we can unit test this script?
| .option('buildPath', { type: 'string', describe: 'The path to the build directory' }) | ||
| .usage('Usage: $0 --release RELEASE [--urlPrefix URL_PREFIX] [--buildPath BUILD_PATH]').argv; | ||
| const RELEASE = argv.release; |
There was a problem hiding this comment.
Can we default the release to use propose-version? (https://docs.sentry.io/product/cli/releases/#creating-releases)
f3a6fc4 to
9d87ae7Compareonurtemizkan
commented
Jun 27, 2022
@AbhiPrasad, |
| // This is a workaround for that. | ||
| // | ||
| // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
| const SentryCli = require('@sentry/cli') as typeof SentryCliModule; |
There was a problem hiding this comment.
IMO, I’d rather just make this a javascript file and not have the workaround for TS. The unit tests should be enough to make sure we are enforcing correct behaviour.
3ebf2e7 to
524d4e0Compare524d4e0 to
b710150CompareThere was a problem hiding this comment.
Nice, great work @onurtemizkan to bring this to the finish line.
I can take care of the release registry work + unprivating the package + cutting an alpha release so we can test. We'll probably release this with 7.4.0-alpha.0.
In the meantime, do you mind getting started on the README/docs?
Ref: #4894
Adds a mini CLI tool to create releases and upload Remix sourcemaps with a default path / prefix.
Uses
sentry-cliunder the hood and requires a valid.sentryclircto work.Usage:
Also removed
webpack-related dependencies from Remix SDK, as we don't need them.