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:
@@ -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` re‑exports API and types
|
||||
- `bin/cli.js` – simple CLI for quick checks
|
||||
- `bin/cli.mjs` – simple CLI for quick checks
|
||||
|
||||
## Caveats
|
||||
|
||||
|
||||
@@ -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) {
|
||||
16
package.json
16
package.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user