Converted go-roots-ws to typescript.
This commit is contained in:
50
package.json
Normal file
50
package.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "@wisehodl/roots-ws",
|
||||
"version": "0.1.0",
|
||||
"description": "Nostr WebSocket transport primitives for TypeScript",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./envelope": {
|
||||
"import": "./dist/envelope/index.js",
|
||||
"types": "./dist/envelope/index.d.ts"
|
||||
},
|
||||
"./errors": {
|
||||
"import": "./dist/errors/index.js",
|
||||
"types": "./dist/errors/index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"lint": "tsc --noEmit",
|
||||
"format": "prettier -w src",
|
||||
"test": "vitest",
|
||||
"test:run": "vitest run"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
||||
"@types/node": "^24.9.1",
|
||||
"prettier": "^3.5.3",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.1.12",
|
||||
"vitest": "^4.0.2"
|
||||
},
|
||||
"prettier": {
|
||||
"importOrder": [
|
||||
"^@(/)(.*)",
|
||||
"^[./]"
|
||||
],
|
||||
"importOrderSeparation": true,
|
||||
"importOrderSortSpecifiers": true,
|
||||
"plugins": [
|
||||
"@trivago/prettier-plugin-sort-imports"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user