Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
feat: Add function to download CLI binary (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Nov 15, 2023
1 parent 3628137 commit 57b7f34
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

- "Would I rather be feared or loved? Easy. Both. I want people to be afraid of how much they love me." — Michael Scott
- "Would I rather be feared or loved? Easy. Both. I want people to be afraid of
how much they love me." — Michael Scott

## Unreleased

- feat: Add function to download CLI binary (#456)

## 1.20.1

Expand All @@ -25,16 +30,19 @@

## 1.18.9

- ref: Update sentry-cli to latest v1 version and refresh GH actions (#368) by @kamilogorek
- docs: Update dryRun documentation to reflect auto-configuration. (#366) by @fiveable-jferg
- ref: Update sentry-cli to latest v1 version and refresh GH actions (#368) by
@kamilogorek
- docs: Update dryRun documentation to reflect auto-configuration. (#366) by
@fiveable-jferg

## 1.18.8

- deps: Bump sentry-cli to 1.73.0 (#356) by @kamilogorek

## 1.18.7

- deps: Remove webpack from peerDep and move info about ver to readme (#354) by @kamilogorek
- deps: Remove webpack from peerDep and move info about ver to readme (#354) by
@kamilogorek
- misc: Correct 1.18.6 changelog (#353) by @kamilogorek

## 1.18.6
Expand Down
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ declare namespace SentryCliPlugin {
declare class SentryCliPlugin implements WebpackPluginInstance {
options: SentryCliPlugin.SentryCliPluginOptions;
constructor(options: SentryCliPlugin.SentryCliPluginOptions);
static cliBinaryExists(): string;
static cliBinaryExists(): boolean;
static downloadCliBinary(logger: { log(...args: unknown[]) }): Promise<void>;
apply(compiler: Compiler): void;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"node": ">= 8"
},
"dependencies": {
"@sentry/cli": "^1.75.1",
"@sentry/cli": "^1.77.1",
"webpack-sources": "^2.0.0 || ^3.0.0"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ class SentryCliPlugin {
return fs.existsSync(SentryCli.getPath());
}

static downloadCliBinary(logger) {
return SentryCli.downloadBinary(logger);
}

/** Creates a new Sentry CLI instance. */
getSentryCli() {
const cli = new SentryCli(this.options.configFile, {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@
"@types/istanbul-reports" "^1.1.1"
"@types/yargs" "^13.0.0"

"@sentry/cli@^1.75.1":
version "1.75.1"
resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-1.75.1.tgz#49fd43a0619de1c1fa802522a741c42171bf6d2a"
integrity sha512-LjVmzeiyJyHQH/0ZKeaYwHSrUcgh+FV1fYlkf+fSSRQiuvijB7vln0CisbxJnMgp4k8qoQ/ZSmTcfv6FGMKIEA==
"@sentry/cli@^1.77.1":
version "1.77.1"
resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-1.77.1.tgz#ebcf884712ef6c3c75443f491ec16f6a22148aec"
integrity sha512-OtJ7U9LeuPUAY/xow9wwcjM9w42IJIpDtClTKI/RliE685vd/OJUIpiAvebHNthDYpQynvwb/0iuF4fonh+CKw==
dependencies:
https-proxy-agent "^5.0.0"
mkdirp "^0.5.5"
Expand Down

0 comments on commit 57b7f34

Please sign in to comment.