chore(nostr-client): move dev scripts to dev/ folder

Move 9 development/testing .mjs scripts out of the package root into
dev/ to keep the published package clean. Update relative imports
and dev.sh reference.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-02-16 17:48:49 -05:00
commit 5448a620a9
10 changed files with 3 additions and 3 deletions

View file

@ -861,7 +861,7 @@ cmd_fund() {
VITE_LIGHTNING_PUB_PUBKEY="$lp_pubkey" \ VITE_LIGHTNING_PUB_PUBKEY="$lp_pubkey" \
VITE_RELAY_URL="ws://localhost:7777" \ VITE_RELAY_URL="ws://localhost:7777" \
VITE_APP_ID="$app_id" \ VITE_APP_ID="$app_id" \
node fund-dev.mjs "$amount" 2>&1) node dev/fund-dev.mjs "$amount" 2>&1)
# Extract just the invoice (last line, starts with lnbc) # Extract just the invoice (last line, starts with lnbc)
local bolt11=$(echo "$invoice" | grep -E "^lnbc") local bolt11=$(echo "$invoice" | grep -E "^lnbc")

View file

@ -8,7 +8,7 @@
* Usage: * Usage:
* VITE_ATM_PRIVATE_KEY=xxx VITE_LIGHTNING_PUB_PUBKEY=yyy node fund-dev.mjs [amount] * VITE_ATM_PRIVATE_KEY=xxx VITE_LIGHTNING_PUB_PUBKEY=yyy node fund-dev.mjs [amount]
*/ */
import { NostrClient, loadIdentityFromHex, encryptContent, decryptJSON } from './dist/index.js' import { NostrClient, loadIdentityFromHex, encryptContent, decryptJSON } from '../dist/index.js'
import { finalizeEvent } from 'nostr-tools' import { finalizeEvent } from 'nostr-tools'
import { randomUUID } from 'crypto' import { randomUUID } from 'crypto'

View file

@ -1,4 +1,4 @@
import { NostrClient, loadIdentityFromHex, encryptContent, decryptJSON } from './dist/index.js' import { NostrClient, loadIdentityFromHex, encryptContent, decryptJSON } from '../dist/index.js'
import { Relay } from 'nostr-tools/relay' import { Relay } from 'nostr-tools/relay'
import { finalizeEvent } from 'nostr-tools' import { finalizeEvent } from 'nostr-tools'
import { randomUUID } from 'crypto' import { randomUUID } from 'crypto'