1
mirror of https://github.com/jakejarvis/rdapper.git synced 2026-01-27 20:35:18 -05:00

fix: update tsdown outputs from .js to .mjs

This commit is contained in:
2025-12-30 12:53:17 -05:00
parent c6da4c1f69
commit e6b2e94614
3 changed files with 10 additions and 10 deletions

View File

@@ -549,7 +549,7 @@ Project layout:
- `src/whois/` WHOIS TCP client, discovery/referral, normalization, exceptions
- `src/lib/` utilities for dates, text parsing, domain processing, async
- `src/types.ts` public types; `src/index.ts` reexports API and types
- `bin/cli.js` simple CLI for quick checks
- `bin/cli.mjs` simple CLI for quick checks
## Caveats

View File

@@ -6,7 +6,7 @@
// echo "example.com" | npx rdapper
import { createInterface } from "node:readline";
import { lookup } from "../dist/index.js";
import { lookup } from "../dist/index.mjs";
async function main() {
if (process.argv.length > 2) {

View File

@@ -19,17 +19,17 @@
"access": "public"
},
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"bin": {
"rdapper": "bin/cli.js"
"rdapper": "bin/cli.mjs"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
}
},
"files": [
@@ -38,7 +38,7 @@
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"cli": "node bin/cli.js",
"cli": "node bin/cli.mjs",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:run": "vitest run",