sentry-upload
v0.1.3
Published
## usage:
Downloads
1
Readme
sentry uploader
usage:
const uploader = require('sentry-upload');
const releaseId = process.env.GIT_COMMIT_SHORT_SHA || new Date().toISOString();
const options = {
organization: 'sentry',
project: 'YOUR_PROJECT',
apiKey: 'YOUR_SENTRY_API_KEY',
include: /.*\.js($|.map)/,
timeout: 10000,
// Release version name/hash is required
suppressConflictError: true,
uploadFilesConcurrency: 2,
release: releaseId,
baseSentryURL: 'https://sentry.com/api/0',
deleteAfterCompile: true,
dir: './prod',
onsuccess: () => {
process.exit(0);
},
onerror: () => {
console.error('failed');
process.exit(-1)
}
}
uploader(options)