Unverified Commit 33c109ef authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix `@fedify/cli` npm packaging

parent f293aec9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
      ]
+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 = {
@@ -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(