diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f311efa..b8ef50c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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 @@ -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 diff --git a/deno.json b/deno.json index 5267f1e..b284c7b 100644 --- a/deno.json +++ b/deno.json @@ -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": [ @@ -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", diff --git a/main.ts b/src/main.ts similarity index 91% rename from main.ts rename to src/main.ts index adb4181..43f89a0 100644 --- a/main.ts +++ b/src/main.ts @@ -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,