diff --git a/Makefile b/Makefile index 184dabb7b..be866f3eb 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,6 @@ dist: export WEBPACK_ARGS=-p dist: prereqs webpack ## Creates a distribution echo $(HASH) > out/dist/git_hash -SENTRY := ./node_modules/.bin/sentry-cli travis-dist: dist ## Creates a distribution as if we were running on travis echo $(TRAVIS_BUILD_NUMBER) > out/dist/travis_build rm -rf out/dist-bin @@ -98,8 +97,8 @@ travis-dist: dist ## Creates a distribution as if we were running on travis du -ch out/**/* # Create and set commits for a sentry release if and only if we have the secure token set # External GitHub PRs etc won't have the variable set. - @[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(SENTRY) releases new -p compiler-explorer $(TRAVIS_BUILD_NUMBER) - @[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(SENTRY) releases set-commits --auto $(TRAVIS_BUILD_NUMBER) + @[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(NPM) run sentry releases new -p compiler-explorer $(TRAVIS_BUILD_NUMBER) + @[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(NPM) run sentry releases set-commits --auto $(TRAVIS_BUILD_NUMBER) install-git-hooks: ## Install git hooks that will ensure code is linted and tests are run before allowing a check in mkdir -p "$(shell git rev-parse --git-dir)/hooks" diff --git a/package-lock.json b/package-lock.json index 0ca5fa818..d47649362 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1204,46 +1204,6 @@ "tslib": "^1.9.3" } }, - "@sentry/cli": { - "version": "1.58.0", - "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-1.58.0.tgz", - "integrity": "sha512-bUBKBYyKVzjNhQpAfPJ3XAvAyNNvrD2Rtpo6B0MR3Okw3prdLFgv9Ta8TN19IXT7u9w13B2EdMnNA6dQDtrD4g==", - "dev": true, - "requires": { - "https-proxy-agent": "^5.0.0", - "mkdirp": "^0.5.5", - "node-fetch": "^2.6.0", - "progress": "^2.0.3", - "proxy-from-env": "^1.1.0" - }, - "dependencies": { - "debug": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", - "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "https-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", - "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, "@sentry/core": { "version": "5.25.0", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.25.0.tgz", @@ -11844,12 +11804,6 @@ "ipaddr.js": "1.9.0" } }, - "proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true - }, "prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", diff --git a/package.json b/package.json index fed548918..28bc67710 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,6 @@ "yaml": "^1.10.0" }, "devDependencies": { - "@sentry/cli": "^1.58.0", "aws-sdk-mock": "^5.1.0", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", @@ -127,7 +126,8 @@ "dev": "cross-env NODE_ENV=DEV node -r esm app.js", "debug": "cross-env NODE_ENV=DEV node -r esm app.js --debug", "start": "npx webpack && cross-env NODE_ENV=LOCAL node -r esm app.js", - "codecov": "codecov --disable=gcov" + "codecov": "codecov --disable=gcov", + "sentry": "npx @sentry/cli" }, "license": "BSD-2-Clause" }