Skip to content

Commit 3758d79

Browse files
committed
fix: 🐛 wrong folder name for types
1 parent 556d6d2 commit 3758d79

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Dangerfile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { danger, schedule } from "danger";
1+
import { schedule } from "danger";
22

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

55
schedule(
66
jiraPrValidation("baseUrl", "username", "token", "projectKey", "fail"),

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"version": "1.1.1",
2323
"main": "dist/index.js",
24-
"types": "types/index.d.ts",
24+
"types": "dist/index.d.ts",
2525
"scripts": {
2626
"precommit": "lint-staged",
2727
"commit": "git-cz",

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 async function jiraPrValidation(
12+
export default async function jiraPrValidation(
1313
baseUrl: string,
1414
username: string,
1515
token: string,

0 commit comments

Comments
 (0)