From fa758ddf57596d3cef6ca5f6043b5ee26b5ff629 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Sun, 10 Mar 2024 06:57:45 +0800 Subject: [PATCH] try without pkg --- .github/workflows/jsr.yml | 3 ++- deno.json | 3 +++ package.json => package-json | 0 src/mod.ts | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) rename package.json => package-json (100%) diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml index fddb498..9635df9 100644 --- a/.github/workflows/jsr.yml +++ b/.github/workflows/jsr.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - pkg jobs: @@ -19,5 +20,5 @@ jobs: - uses: actions/checkout@v4 - - run: npx jsr publish + - run: npx jsr publish --dry-run diff --git a/deno.json b/deno.json index b367d4d..01bc256 100644 --- a/deno.json +++ b/deno.json @@ -2,6 +2,9 @@ "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", "name": "@key/gen-ssh-ed25519", "version": "0.1.0", + "imports": { + "ed25519-keygen/ssh": "npm:ed25519-keygen@~0.4.11/ssh" + }, "publish": { "include": [ "deno.json", diff --git a/package.json b/package-json similarity index 100% rename from package.json rename to package-json diff --git a/src/mod.ts b/src/mod.ts index e7664ca..7b4690a 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -1,4 +1,4 @@ -import ssh from 'npm:ed25519-keygen@~0.4.11/ssh'; +import ssh from 'ed25519-keygen/ssh'; import { PBKDF2 } from './pbkdf2.ts';