Skip to content

Commit 2518fd4

Browse files
authored
Merge pull request #15 from urcomputeringpal/use
use exported types
2 parents 2898eca + 5a59469 commit 2518fd4

File tree

18 files changed

+5005
-32
lines changed

18 files changed

+5005
-32
lines changed
File renamed without changes.

.github/package-lock.json

Lines changed: 4879 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "ts-scripts",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"format": "prettier --write .",
7+
"format:check": "prettier --check .",
8+
"build": "tsc",
9+
"test": "jest"
10+
},
11+
"dependencies": {
12+
"@urcomputeringpal/github-script-ts": "0.0.1"
13+
},
14+
"devDependencies": {
15+
"@types/jest": "29.5.1",
16+
"@types/node": "16.18.30",
17+
"jest": "29.5.0",
18+
"prettier": "2.8.8",
19+
"ts-jest": "29.1.0",
20+
"ts-loader": "9.4.2",
21+
"typescript": "4.9.5"
22+
}
23+
}
File renamed without changes.

src/getLabel.test.ts renamed to .github/src/getLabel.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitHubScriptArguments } from "./types";
1+
import { GitHubScriptArguments } from "@urcomputeringpal/github-script-ts";
22
import { getLabel } from "./getLabel";
33
import { Context } from "@actions/github/lib/context";
44
import * as core from "./__mocks__/core";

src/getLabel.ts renamed to .github/src/getLabel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitHubScriptArguments } from "./types";
1+
import { GitHubScriptArguments } from "@urcomputeringpal/github-script-ts";
22

33
export async function getLabel(args: GitHubScriptArguments): Promise<String> {
44
const { github, context, core } = args;

.github/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { prNumber } from "./prNumber";
2+
export { getLabel } from "./getLabel";

src/prNumber.test.ts renamed to .github/src/prNumber.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitHubScriptArguments } from "./types";
1+
import { GitHubScriptArguments } from "@urcomputeringpal/github-script-ts";
22
import { prNumber } from "./prNumber";
33
import { Context } from "@actions/github/lib/context";
44
import * as core from "./__mocks__/core";

src/prNumber.ts renamed to .github/src/prNumber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitHubScriptArguments } from "./types";
1+
import { GitHubScriptArguments } from "@urcomputeringpal/github-script-ts";
22

33
export async function prNumber(args: GitHubScriptArguments): Promise<String> {
44
const { github, context, core } = args;

.github/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"declaration": true,
5+
"target": "es5",
6+
"strict": true
7+
},
8+
"include": ["src/*.ts"],
9+
"exclude": ["node_modules", "**/*.test.ts"]
10+
}

0 commit comments

Comments
 (0)