Skip to content

Commit

Permalink
refactor: move main.ts to src/main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Aug 3, 2024
1 parent bd3c9de commit b2a1163
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
cache-key-suffix: ${{ hashFiles('deno.lock') }}
pull-request: false
root: 'test/fixtures'
script: 'main.ts'
script: 'src/main.ts'

- name: Check updated dependencies
uses: nick-fields/assert-action@v2
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
config: false
pull-request: false
root: 'test/fixtures'
script: 'main.ts'
script: 'src/main.ts'

- name: Check updated dependencies
uses: nick-fields/assert-action@v2
Expand Down
5 changes: 2 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "@molt/action",
"version": "1.0.0-rc.14",
"exports": "./main.ts",
"exports": "./src/main.ts",
"publish": {
"include": [
"README.md",
"LICENSE",
"main.ts",
"src/*.ts"
],
"exclude": [
Expand All @@ -31,7 +30,7 @@
},
"tasks": {
"act": "act -j integration",
"cache": "deno cache ./main.ts ./src/*.ts",
"cache": "deno cache ./src/*.ts",
"check": "deno check **/*.ts",
"pre-commit": "deno fmt && deno lint && deno task check && deno task test",
"test": "deno test --allow-env --allow-read --allow-write=. --allow-net --allow-run=deno --env --no-check --unstable-kv",
Expand Down
10 changes: 5 additions & 5 deletions main.ts → src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { collect } from "@molt/core";
import { distinct } from "@std/collections";
import { expandGlob } from "@std/fs";
import { join, relative } from "@std/path";
import { getInputs } from "./src/inputs.ts";
import { fromInputs } from "./src/params.ts";
import { createReport } from "./src/report.ts";
import { parseGitUser } from "./src/strings.ts";
import { createSummary } from "./src/summary.ts";
import { getInputs } from "./inputs.ts";
import { fromInputs } from "./params.ts";
import { createReport } from "./report.ts";
import { parseGitUser } from "./strings.ts";
import { createSummary } from "./summary.ts";

async function run(
command: string,
Expand Down

0 comments on commit b2a1163

Please sign in to comment.