Loading cli/deno.json +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ ] }, "npm": { "command": "deno run --allow-read --allow-write --allow-run --allow-env npm/pack.ts", "command": "deno run --allow-read --allow-write --allow-run --allow-env scripts/npm.ts", "dependencies": [ "sync-version" ] Loading cli/npm/pack.ts→cli/scripts/npm.ts +3 −3 Original line number Diff line number Diff line import { which } from "jsr:@david/which@0.4.1"; import { dirname, join } from "jsr:@std/path@1.0.0"; import denoJson from "../deno.json" with { type: "json" }; import metadataTemplate from "./package.json" with { type: "json" }; import metadataTemplate from "../npm/package.json" with { type: "json" }; async function main() { const metadata = { Loading @@ -17,11 +17,11 @@ async function main() { JSON.stringify(metadata), ); await Deno.copyFile( join(import.meta.dirname!, "install.mjs"), join(dirname(import.meta.dirname!), "npm", "install.mjs"), join(tempDir, "install.mjs"), ); await Deno.copyFile( join(import.meta.dirname!, "run.mjs"), join(dirname(import.meta.dirname!), "npm", "run.mjs"), join(tempDir, "run.mjs"), ); await Deno.copyFile( Loading Loading
cli/deno.json +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ ] }, "npm": { "command": "deno run --allow-read --allow-write --allow-run --allow-env npm/pack.ts", "command": "deno run --allow-read --allow-write --allow-run --allow-env scripts/npm.ts", "dependencies": [ "sync-version" ] Loading
cli/npm/pack.ts→cli/scripts/npm.ts +3 −3 Original line number Diff line number Diff line import { which } from "jsr:@david/which@0.4.1"; import { dirname, join } from "jsr:@std/path@1.0.0"; import denoJson from "../deno.json" with { type: "json" }; import metadataTemplate from "./package.json" with { type: "json" }; import metadataTemplate from "../npm/package.json" with { type: "json" }; async function main() { const metadata = { Loading @@ -17,11 +17,11 @@ async function main() { JSON.stringify(metadata), ); await Deno.copyFile( join(import.meta.dirname!, "install.mjs"), join(dirname(import.meta.dirname!), "npm", "install.mjs"), join(tempDir, "install.mjs"), ); await Deno.copyFile( join(import.meta.dirname!, "run.mjs"), join(dirname(import.meta.dirname!), "npm", "run.mjs"), join(tempDir, "run.mjs"), ); await Deno.copyFile( Loading