Skip to content

Commit 23da749

Browse files
committed
fixup! feat: Move javascript files to native typescript
1 parent 5d03c1d commit 23da749

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as pkgInfo from '../package.json';
44
import * as helper from './helper';
5-
import Releases from './releases';
5+
import { Releases } from './releases';
66
import type { SentryCliOptions } from './types';
77

88
export type {

lib/releases/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import {
88
} from '../types';
99
import { DEPLOYS_OPTIONS } from './options/deploys';
1010
import { SOURCEMAPS_OPTIONS } from './options/uploadSourcemaps';
11-
12-
const helper = require('../helper');
11+
import * as helper from '../helper';
1312

1413
/**
1514
* Default arguments for the `--ignore` option.
@@ -19,7 +18,7 @@ const DEFAULT_IGNORE: string[] = ['node_modules'];
1918
/**
2019
* Manages releases and release artifacts on Sentry.
2120
*/
22-
export default class Releases {
21+
export class Releases {
2322
constructor(public options: SentryCliOptions = {}, private configFile: string | null) {}
2423

2524
/**

lib/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Options for configuring the Sentry CLI
77
*/
8-
export interface SentryCliOptions {
8+
export type SentryCliOptions = {
99
/**
1010
* The URL of the Sentry instance you are connecting to. Defaults to https://sentry.io/.
1111
* This value will update `SENTRY_URL` env variable.
@@ -64,7 +64,7 @@ export type SourceMapsPathDescriptor = Omit<SentryCliUploadSourceMapsOptions, 'i
6464
/**
6565
* Options for uploading source maps
6666
*/
67-
export interface SentryCliUploadSourceMapsOptions {
67+
export type SentryCliUploadSourceMapsOptions = {
6868
/**
6969
* One or more paths that Sentry CLI should scan recursively for sources.
7070
* It will upload all .map files and match associated .js files.
@@ -150,7 +150,7 @@ export interface SentryCliUploadSourceMapsOptions {
150150
/**
151151
* Options for creating a new deployment
152152
*/
153-
export interface SentryCliNewDeployOptions {
153+
export type SentryCliNewDeployOptions = {
154154
/**
155155
* Environment for this release. Values that make sense here would be `production` or `staging`.
156156
*/
@@ -180,7 +180,7 @@ export interface SentryCliNewDeployOptions {
180180
/**
181181
* Options for setting commits on a release
182182
*/
183-
export interface SentryCliCommitsOptions {
183+
export type SentryCliCommitsOptions = {
184184
/**
185185
* Automatically choose the associated commit (uses the current commit). Overrides other setCommit options.
186186
*/

0 commit comments

Comments
 (0)