diff --git a/deno.json b/deno.json index c0c427b..d42295c 100644 --- a/deno.json +++ b/deno.json @@ -1,9 +1,13 @@ { + "name": "@deno/setup-deno", + "description": "Set up Deno easily in GitHub Actions", + "version": "2.0.3", + "license": "MIT", + "exports": "./src/cache.ts", "lock": { "frozen": true }, "nodeModulesDir": "auto", - "license": "MIT", "compilerOptions": { "lib": ["esnext"] }, @@ -12,5 +16,16 @@ ], "tasks": { "build": "deno run -A scripts/build.ts" + }, + "imports": { + "@actions/cache": "npm:@actions/cache@4.0.3", + "@actions/core": "npm:@actions/core@^1.11.1", + "@actions/glob": "npm:@actions/glob@^0.5.0", + "@actions/tool-cache": "npm:@actions/tool-cache@^2.0.2", + "semver": "npm:semver@^7.7.1", + "undici": "npm:undici@^7.8.0", + "@types/node": "npm:@types/node@^20.16.5", + "@types/semver": "npm:@types/semver@^7.7.0", + "tsdown": "npm:tsdown@0.10.1" } } diff --git a/deno.lock b/deno.lock index 8d46b31..56374ac 100644 --- a/deno.lock +++ b/deno.lock @@ -1081,18 +1081,16 @@ } }, "workspace": { - "packageJson": { - "dependencies": [ - "npm:@actions/cache@4.0.3", - "npm:@actions/core@^1.11.1", - "npm:@actions/glob@0.5", - "npm:@actions/tool-cache@^2.0.2", - "npm:@types/node@^20.16.5", - "npm:@types/semver@^7.7.0", - "npm:semver@^7.7.1", - "npm:tsdown@0.10.1", - "npm:undici@^7.8.0" - ] - } + "dependencies": [ + "npm:@actions/cache@4.0.3", + "npm:@actions/core@^1.11.1", + "npm:@actions/glob@0.5", + "npm:@actions/tool-cache@^2.0.2", + "npm:@types/node@^20.16.5", + "npm:@types/semver@^7.7.0", + "npm:semver@^7.7.1", + "npm:tsdown@0.10.1", + "npm:undici@^7.8.0" + ] } } diff --git a/dist/cache-BG71A93Z.mjs b/dist/cache-BazAhQKr.mjs similarity index 99% rename from dist/cache-BG71A93Z.mjs rename to dist/cache-BazAhQKr.mjs index d15f8ef..c57ba06 100644 --- a/dist/cache-BG71A93Z.mjs +++ b/dist/cache-BazAhQKr.mjs @@ -1,4 +1,4 @@ -import { __commonJS, __require, __toESM, import_core, require_auth, require_core, require_exec, require_io, require_lib, require_semver } from "./semver-C43QPvfi.mjs"; +import { __commonJS, __require, __toESM, import_core, require_auth, require_core, require_exec, require_io, require_lib, require_semver } from "./semver-DmxAwBYV.mjs"; import process$1 from "node:process"; //#region node_modules/.deno/@actions+glob@0.1.2/node_modules/@actions/glob/lib/internal-glob-options-helper.js @@ -43117,7 +43117,7 @@ var require_cache = __commonJS({ "node_modules/.deno/@actions+cache@4.0.3/node_m }); } } }); -var import_cache = __toESM(require_cache(), 1); +var import_cache = __toESM(require_cache()); //#endregion //#region node_modules/.deno/@actions+glob@0.5.0/node_modules/@actions/glob/lib/internal-glob-options-helper.js @@ -44220,7 +44220,7 @@ var require_glob = __commonJS({ "node_modules/.deno/@actions+glob@0.5.0/node_mod } exports.hashFiles = hashFiles; } }); -var import_glob = __toESM(require_glob(), 1); +var import_glob = __toESM(require_glob()); //#endregion //#region src/cache.ts diff --git a/dist/cache-BcT6mm7Q.mjs b/dist/cache-BcT6mm7Q.mjs new file mode 100644 index 0000000..5128282 --- /dev/null +++ b/dist/cache-BcT6mm7Q.mjs @@ -0,0 +1,4 @@ +import "./semver-DmxAwBYV.mjs"; +import { restoreCache, saveCache } from "./cache-BazAhQKr.mjs"; + +export { restoreCache }; \ No newline at end of file diff --git a/dist/cache-CSb2jW5L.mjs b/dist/cache-CSb2jW5L.mjs deleted file mode 100644 index a487599..0000000 --- a/dist/cache-CSb2jW5L.mjs +++ /dev/null @@ -1,4 +0,0 @@ -import "./semver-C43QPvfi.mjs"; -import { restoreCache, saveCache } from "./cache-BG71A93Z.mjs"; - -export { restoreCache }; \ No newline at end of file diff --git a/dist/main.mjs b/dist/main.mjs index d4dc23d..9c50668 100644 --- a/dist/main.mjs +++ b/dist/main.mjs @@ -1,4 +1,4 @@ -import { __commonJS, __require, __toESM, import_core, require_core, require_exec, require_io, require_lib, require_semver } from "./semver-C43QPvfi.mjs"; +import { __commonJS, __require, __toESM, import_core, require_core, require_exec, require_io, require_lib, require_semver } from "./semver-DmxAwBYV.mjs"; import process$1 from "node:process"; import * as path$1 from "node:path"; import path from "node:path"; @@ -1435,7 +1435,7 @@ var require_semver$2 = __commonJS({ "node_modules/.deno/semver@7.7.2/node_module rcompareIdentifiers: identifiers.rcompareIdentifiers }; } }); -var import_semver = __toESM(require_semver$2(), 1); +var import_semver = __toESM(require_semver$2()); //#endregion //#region node_modules/.deno/undici@7.9.0/node_modules/undici/lib/core/symbols.js @@ -19290,7 +19290,7 @@ var require_undici = __commonJS({ "node_modules/.deno/undici@7.9.0/node_modules/ const { EventSource } = require_eventsource(); module.exports.EventSource = EventSource; } }); -var import_undici = __toESM(require_undici(), 1); +var import_undici = __toESM(require_undici()); //#endregion //#region src/version.ts @@ -20248,7 +20248,7 @@ var require_tool_cache = __commonJS({ "node_modules/.deno/@actions+tool-cache@2. return Array.from(new Set(values)); } } }); -var import_tool_cache = __toESM(require_tool_cache(), 1); +var import_tool_cache = __toESM(require_tool_cache()); //#endregion //#region src/install.ts @@ -20334,7 +20334,7 @@ async function main() { import_core.setOutput("release-channel", version.kind); import_core.info("Installation complete."); if (isCachingEnabled()) { - const { restoreCache } = await import("./cache-CSb2jW5L.mjs"); + const { restoreCache } = await import("./cache-BcT6mm7Q.mjs"); await restoreCache(import_core.getInput("cache-hash")); } } catch (err) { diff --git a/dist/post.mjs b/dist/post.mjs index a43377b..ddfe26b 100644 --- a/dist/post.mjs +++ b/dist/post.mjs @@ -1,5 +1,5 @@ -import { import_core } from "./semver-C43QPvfi.mjs"; -import { saveCache } from "./cache-BG71A93Z.mjs"; +import { import_core } from "./semver-DmxAwBYV.mjs"; +import { saveCache } from "./cache-BazAhQKr.mjs"; import process from "node:process"; //#region src/post.ts diff --git a/dist/semver-C43QPvfi.mjs b/dist/semver-DmxAwBYV.mjs similarity index 99% rename from dist/semver-C43QPvfi.mjs rename to dist/semver-DmxAwBYV.mjs index 1fd5d46..a526ca3 100644 --- a/dist/semver-C43QPvfi.mjs +++ b/dist/semver-DmxAwBYV.mjs @@ -17074,7 +17074,7 @@ var require_core = __commonJS({ "node_modules/.deno/@actions+core@1.11.1/node_mo */ exports.platform = __importStar(require_platform()); } }); -var import_core = __toESM(require_core(), 1); +var import_core = __toESM(require_core()); //#endregion //#region node_modules/.deno/semver@6.3.1/node_modules/semver/semver.js diff --git a/package.json b/package.json deleted file mode 100644 index dbe7022..0000000 --- a/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "setup-deno", - "description": "Set up Deno easily in GitHub Actions", - "version": "2.0.3", - "author": "Deno Land Inc", - "license": "MIT", - "type": "module", - "devDependencies": { - "@actions/cache": "4.0.3", - "@actions/core": "^1.11.1", - "@actions/glob": "^0.5.0", - "@actions/tool-cache": "^2.0.2", - "semver": "^7.7.1", - "undici": "^7.8.0", - "@types/node": "^20.16.5", - "@types/semver": "^7.7.0", - "tsdown": "0.10.1" - } -}