@vroskus/upload-sourcemaps 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  #! /usr/bin/env node
2
2
 
3
+ /* eslint-disable no-console */
4
+
3
5
  const fs = require('fs');
4
6
  const path = require('path');
5
7
  const SentryCli = require('@sentry/cli');
@@ -67,7 +69,7 @@ async function createReleaseAndUpload() {
67
69
  const filesPath = path.join(
68
70
  process.cwd(),
69
71
  uploadSourcemapsConfig.filesPath || './dist',
70
- )
72
+ );
71
73
 
72
74
  await cli.releases.uploadSourceMaps(
73
75
  version,
@@ -0,0 +1,10 @@
1
+ import eslintConfig from '@vroskus/eslint-config';
2
+
3
+ export default eslintConfig.node({
4
+ configs: [{
5
+ files: ['bin/*'],
6
+ rules: {
7
+ '@typescript-eslint/no-require-imports': [0],
8
+ },
9
+ }],
10
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vroskus/upload-sourcemaps",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,11 +19,16 @@
19
19
  "upload-sourcemaps": "bin/index.js"
20
20
  },
21
21
  "scripts": {
22
- "test": "echo 'No tests yet'",
22
+ "test": "npm run test:eslint",
23
+ "test:eslint": "eslint bin --fix",
23
24
  "build": "echo 'Nothing to build'"
24
25
  },
25
26
  "dependencies": {
26
- "@sentry/cli": "2.28.6"
27
+ "@sentry/cli": "^2.33.1"
28
+ },
29
+ "devDependencies": {
30
+ "@vroskus/eslint-config": "^1.0.6",
31
+ "eslint": "^9.9.0"
27
32
  },
28
33
  "bugs": {
29
34
  "url": "https://github.com/vroskus/upload-sourcemaps/issues"