Skip to content

Commit 556d6d2

Browse files
committed
fix: 🐛 use named export
1 parent ceb1f83 commit 556d6d2

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Dangerfile.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { danger, schedule } from "danger";
2+
3+
import { jiraPrValidation } from "./src/index";
4+
5+
schedule(
6+
jiraPrValidation("baseUrl", "username", "token", "projectKey", "fail"),
7+
);

src/index.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import nock from "nock";
22

3-
import jiraPrValidation from "./index";
3+
import { jiraPrValidation } from "./index";
44

55
declare const global: any;
66

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export declare function markdown(message: string): void;
99
/**
1010
* Import metadata from the issue on Jira and perform validations
1111
*/
12-
export default async function jiraPrValidation(
12+
export async function jiraPrValidation(
1313
baseUrl: string,
1414
username: string,
1515
token: string,

tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"pretty": true,
99
"strictNullChecks": true,
1010
"declaration": true,
11-
"allowSyntheticDefaultImports": true,
12-
"esModuleInterop": true
11+
"allowSyntheticDefaultImports": true
1312
},
1413
"lib": ["es2023"],
1514
"include": ["src/**/*.ts", "src/**/*.tsx", "dangerfile.ts"],

0 commit comments

Comments
 (0)