mirror of
https://github.com/jakejarvis/rdapper.git
synced 2026-01-27 21:45:19 -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/whois/` – WHOIS TCP client, discovery/referral, normalization, exceptions
|
||||||
- `src/lib/` – utilities for dates, text parsing, domain processing, async
|
- `src/lib/` – utilities for dates, text parsing, domain processing, async
|
||||||
- `src/types.ts` – public types; `src/index.ts` re‑exports API and types
|
- `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
|
## Caveats
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// echo "example.com" | npx rdapper
|
// echo "example.com" | npx rdapper
|
||||||
|
|
||||||
import { createInterface } from "node:readline";
|
import { createInterface } from "node:readline";
|
||||||
import { lookup } from "../dist/index.js";
|
import { lookup } from "../dist/index.mjs";
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
if (process.argv.length > 2) {
|
if (process.argv.length > 2) {
|
||||||
16
package.json
16
package.json
@@ -19,17 +19,17 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.mjs",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.mts",
|
||||||
"bin": {
|
"bin": {
|
||||||
"rdapper": "bin/cli.js"
|
"rdapper": "bin/cli.mjs"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.mts",
|
||||||
"import": "./dist/index.js",
|
"import": "./dist/index.mjs",
|
||||||
"default": "./dist/index.js"
|
"default": "./dist/index.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsdown",
|
"build": "tsdown",
|
||||||
"dev": "tsdown --watch",
|
"dev": "tsdown --watch",
|
||||||
"cli": "node bin/cli.js",
|
"cli": "node bin/cli.mjs",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"test:run": "vitest run",
|
"test:run": "vitest run",
|
||||||
|
|||||||
Reference in New Issue
Block a user