Skip to content

Commit

Permalink
fix: 🐛 use named export
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavotr committed Oct 23, 2023
1 parent ceb1f83 commit 556d6d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Dangerfile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { danger, schedule } from "danger";

import { jiraPrValidation } from "./src/index";

schedule(
jiraPrValidation("baseUrl", "username", "token", "projectKey", "fail"),
);
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import nock from "nock";

import jiraPrValidation from "./index";
import { jiraPrValidation } from "./index";

declare const global: any;

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export declare function markdown(message: string): void;
/**
* Import metadata from the issue on Jira and perform validations
*/
export default async function jiraPrValidation(
export async function jiraPrValidation(
baseUrl: string,
username: string,
token: string,
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"pretty": true,
"strictNullChecks": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
"allowSyntheticDefaultImports": true
},
"lib": ["es2023"],
"include": ["src/**/*.ts", "src/**/*.tsx", "dangerfile.ts"],
Expand Down

0 comments on commit 556d6d2

Please sign in to comment.