Skip to content

Commit

Permalink
continue
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Dec 16, 2024
1 parent d0093db commit 2b4fe55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/tools/github_actions_deno_deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ core.setOutput("include", config.deploy.include.join(","))
core.setOutput("exclude", config.deploy.exclude.join(","))
core.setOutput("import_map", ".imports_map.json")

await Deno.writeTextFile(".imports_map.json", JSON.stringify({ imports: config.imports }))
const imports = config.imports
for (const [key, value] of Object.entries(config.imports)) {
if ((key.startsWith("@")) && (!key.endsWith("/"))) {
imports[`${key}/`] = `${value}/`
}
}

await Deno.writeTextFile(".imports_map.json", JSON.stringify({ imports }, null, 2))
1 change: 0 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
"jsdom": "npm:jsdom@^25.0.1",
// Deno deploy dependencies
"@esbuild/linux-x64": "npm:@esbuild/linux-x64@^0.24.0",
"@std/http/unstable-route": "jsr:@std/http@^1.0.12",
// Development dependencies
"@dprint/formatter": "jsr:@dprint/formatter@^0.4.1",
"@libs/testing": "jsr:@libs/testing@^4.0.1",
Expand Down
2 changes: 2 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 2b4fe55

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 2b4fe55 Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Failed to resolve the specifier ""@std/http/unstable-route"" as its after-prefix
            portion ""unstable-route"" could not be URL-parsed relative to the URL prefix
            "jsr:@std/http@^1.0.12/" mapped to by the prefix "@std/http/"

Please sign in to comment.