diff --git a/package.json b/package.json index 20cf7f17..e9b39b85 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,15 @@ "generate": "aegir run generate", "build": "aegir run build", "lint": "aegir run lint", - "docs": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs -- --exclude packages/interop", - "docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs --publish false -- --exclude packages/interop", "dep-check": "aegir run dep-check", - "release": "npm run docs:no-publish && aegir run release && npm run docs -- --exclude packages/interop" + "release": "run-s build docs:no-publish npm:release docs", + "npm:release": "aegir run release", + "docs": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs -- --exclude packages/interop --excludeExternals", + "docs:no-publish": "NODE_OPTIONS=--max_old_space_size=8192 aegir docs --publish false -- --exclude packages/interop" }, "devDependencies": { - "aegir": "^40.0.8" + "aegir": "^41.0.0", + "npm-run-all": "^4.1.5" }, "type": "module", "workspaces": [ diff --git a/packages/interop/package.json b/packages/interop/package.json index 936a55d4..8b13403c 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -31,6 +31,7 @@ "eslintConfig": { "extends": "ipfs", "parserOptions": { + "project": true, "sourceType": "module" } }, @@ -59,7 +60,7 @@ "@libp2p/peer-id-factory": "^3.0.3", "@libp2p/tcp": "^8.0.4", "@libp2p/websockets": "^7.0.4", - "aegir": "^40.0.8", + "aegir": "^41.0.0", "blockstore-core": "^4.0.1", "datastore-core": "^9.0.3", "go-ipfs": "^0.22.0", diff --git a/packages/interop/typedoc.json b/packages/interop/typedoc.json deleted file mode 100644 index f599dc72..00000000 --- a/packages/interop/typedoc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "entryPoints": [ - "./src/index.ts" - ] -} diff --git a/packages/ipns/package.json b/packages/ipns/package.json index cc347576..42fb6a77 100644 --- a/packages/ipns/package.json +++ b/packages/ipns/package.json @@ -51,6 +51,7 @@ "eslintConfig": { "extends": "ipfs", "parserOptions": { + "project": true, "sourceType": "module" } }, @@ -169,7 +170,7 @@ }, "devDependencies": { "@libp2p/peer-id-factory": "^3.0.3", - "aegir": "^40.0.8", + "aegir": "^41.0.0", "datastore-core": "^9.0.3", "sinon": "^16.0.0", "sinon-ts": "^1.0.0" diff --git a/packages/ipns/src/index.ts b/packages/ipns/src/index.ts index ecbf0eaa..dedc2277 100644 --- a/packages/ipns/src/index.ts +++ b/packages/ipns/src/index.ts @@ -128,23 +128,23 @@ export interface IPNS { * * If the valid is a PeerId, a recursive IPNS record will be created. */ - publish: (key: PeerId, value: CID | PeerId, options?: PublishOptions) => Promise + publish(key: PeerId, value: CID | PeerId, options?: PublishOptions): Promise /** * Accepts a public key formatted as a libp2p PeerID and resolves the IPNS record * corresponding to that public key until a value is found */ - resolve: (key: PeerId, options?: ResolveOptions) => Promise + resolve(key: PeerId, options?: ResolveOptions): Promise /** * Resolve a CID from a dns-link style IPNS record */ - resolveDns: (domain: string, options?: ResolveDNSOptions) => Promise + resolveDns(domain: string, options?: ResolveDNSOptions): Promise /** * Periodically republish all IPNS records found in the datastore */ - republish: (options?: RepublishOptions) => void + republish(options?: RepublishOptions): void } export type { IPNSRouting } from './routing/index.js' diff --git a/packages/ipns/src/routing/index.ts b/packages/ipns/src/routing/index.ts index d7021d50..232c2212 100644 --- a/packages/ipns/src/routing/index.ts +++ b/packages/ipns/src/routing/index.ts @@ -13,8 +13,8 @@ export interface GetOptions extends AbortOptions, ProgressOptions { } export interface IPNSRouting { - put: (routingKey: Uint8Array, marshaledRecord: Uint8Array, options?: PutOptions) => Promise - get: (routingKey: Uint8Array, options?: GetOptions) => Promise + put(routingKey: Uint8Array, marshaledRecord: Uint8Array, options?: PutOptions): Promise + get(routingKey: Uint8Array, options?: GetOptions): Promise } export type IPNSRoutingEvents = diff --git a/packages/ipns/src/routing/local-store.ts b/packages/ipns/src/routing/local-store.ts index 9b80a460..06302129 100644 --- a/packages/ipns/src/routing/local-store.ts +++ b/packages/ipns/src/routing/local-store.ts @@ -15,7 +15,7 @@ export type DatastoreProgressEvents = ProgressEvent<'ipns:routing:datastore:error', Error> export interface LocalStore extends IPNSRouting { - has: (routingKey: Uint8Array, options?: AbortOptions) => Promise + has(routingKey: Uint8Array, options?: AbortOptions): Promise } /**