diff --git a/package.json b/package.json index 13f12b4..6960c4c 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" + "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.13" + "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 4ccd86b..7ee17a5 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -31,6 +31,7 @@ "eslintConfig": { "extends": "ipfs", "parserOptions": { + "project": true, "sourceType": "module" } }, @@ -54,7 +55,7 @@ "@helia/unixfs": "^1.0.0", "@libp2p/tcp": "^8.0.6", "@libp2p/websockets": "^7.0.6", - "aegir": "^40.0.13", + "aegir": "^41.0.0", "blockstore-core": "^4.0.1", "datastore-core": "^9.0.3", "go-ipfs": "^0.22.0", diff --git a/packages/unixfs/package.json b/packages/unixfs/package.json index b827cdc..5c1bcc9 100644 --- a/packages/unixfs/package.json +++ b/packages/unixfs/package.json @@ -51,6 +51,7 @@ "eslintConfig": { "extends": "ipfs", "parserOptions": { + "project": true, "sourceType": "module" } }, @@ -173,7 +174,7 @@ "sparse-array": "^1.3.2" }, "devDependencies": { - "aegir": "^40.0.13", + "aegir": "^41.0.0", "blockstore-core": "^4.0.1", "delay": "^6.0.0", "iso-url": "^1.2.1", diff --git a/packages/unixfs/src/index.ts b/packages/unixfs/src/index.ts index 84f96ff..6019dff 100644 --- a/packages/unixfs/src/index.ts +++ b/packages/unixfs/src/index.ts @@ -363,7 +363,7 @@ export interface UnixFS { * } * ``` */ - addAll: (source: ImportCandidateStream, options?: Partial) => AsyncIterable + addAll(source: ImportCandidateStream, options?: Partial): AsyncIterable /** * Add a single `Uint8Array` to your Helia node as a file. @@ -376,7 +376,7 @@ export interface UnixFS { * console.info(cid) * ``` */ - addBytes: (bytes: Uint8Array, options?: Partial) => Promise + addBytes(bytes: Uint8Array, options?: Partial): Promise /** * Add a stream of `Uint8Array` to your Helia node as a file. @@ -392,7 +392,7 @@ export interface UnixFS { * console.info(cid) * ``` */ - addByteStream: (bytes: ByteStream, options?: Partial) => Promise + addByteStream(bytes: ByteStream, options?: Partial): Promise /** * Add a file to your Helia node with optional metadata. @@ -413,7 +413,7 @@ export interface UnixFS { * console.info(cid) * ``` */ - addFile: (file: FileCandidate, options?: Partial) => Promise + addFile(file: FileCandidate, options?: Partial): Promise /** * Add a directory to your Helia node. @@ -426,7 +426,7 @@ export interface UnixFS { * console.info(cid) * ``` */ - addDirectory: (dir?: Partial, options?: Partial) => Promise + addDirectory(dir?: Partial, options?: Partial): Promise /** * Retrieve the contents of a file from your Helia node. @@ -439,7 +439,7 @@ export interface UnixFS { * } * ``` */ - cat: (cid: CID, options?: Partial) => AsyncIterable + cat(cid: CID, options?: Partial): AsyncIterable /** * Change the permissions on a file or directory in a DAG @@ -457,7 +457,7 @@ export interface UnixFS { * console.info(afterCid, afterStats) * ``` */ - chmod: (cid: CID, mode: number, options?: Partial) => Promise + chmod(cid: CID, mode: number, options?: Partial): Promise /** * Add a file or directory to a target directory. @@ -473,7 +473,7 @@ export interface UnixFS { * console.info(updatedCid) * ``` */ - cp: (source: CID, target: CID, name: string, options?: Partial) => Promise + cp(source: CID, target: CID, name: string, options?: Partial): Promise /** * List directory contents. @@ -486,7 +486,7 @@ export interface UnixFS { * } * ``` */ - ls: (cid: CID, options?: Partial) => AsyncIterable + ls(cid: CID, options?: Partial): AsyncIterable /** * Make a new directory under an existing directory. @@ -501,7 +501,7 @@ export interface UnixFS { * console.info(updatedCid) * ``` */ - mkdir: (cid: CID, dirname: string, options?: Partial) => Promise + mkdir(cid: CID, dirname: string, options?: Partial): Promise /** * Remove a file or directory from an existing directory. @@ -517,7 +517,7 @@ export interface UnixFS { * console.info(finalCid) * ``` */ - rm: (cid: CID, path: string, options?: Partial) => Promise + rm(cid: CID, path: string, options?: Partial): Promise /** * Return statistics about a UnixFS DAG. @@ -532,7 +532,7 @@ export interface UnixFS { * console.info(stats) * ``` */ - stat: (cid: CID, options?: Partial) => Promise + stat(cid: CID, options?: Partial): Promise /** * Update the mtime of a UnixFS DAG @@ -550,7 +550,7 @@ export interface UnixFS { * console.info(afterCid, afterStats) * ``` */ - touch: (cid: CID, options?: Partial) => Promise + touch(cid: CID, options?: Partial): Promise } class DefaultUnixFS implements UnixFS {