koatty_serve
Version:
Provide http1/2/3, websocket, gRPC server for Koatty.
146 lines (123 loc) • 11.6 kB
Plain Text
> koatty_serve@3.2.0 build /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve
> pnpm run build:js && pnpm run build:dts && pnpm run build:doc && pnpm run build:cp
> koatty_serve@3.2.0 build:js /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve
> tsup
[34mCLI[39m Building entry: src/index.ts
[34mCLI[39m Using tsconfig: tsconfig.json
[34mCLI[39m tsup v8.5.1
[34mCLI[39m Using tsup config: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve/tsup.config.ts
[34mCLI[39m Target: node18
[34mCLI[39m Cleaning output folder
[34mCJS[39m Build start
[34mESM[39m Build start
[32mESM[39m [1mdist/index.mjs [22m[32m312.86 KB[39m
[32mESM[39m [1mdist/index.mjs.map [22m[32m768.31 KB[39m
[32mESM[39m ⚡️ Build success in 893ms
[32mCJS[39m [1mdist/index.js [22m[32m314.49 KB[39m
[32mCJS[39m [1mdist/index.js.map [22m[32m768.38 KB[39m
[32mCJS[39m ⚡️ Build success in 893ms
> koatty_serve@3.2.0 build:dts /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve
> bash ../../scripts/build-dts.sh
🔨 Building type declarations for koatty-serve...
⏳ Waiting for dependencies to be ready...
🔍 Checking dependencies: koatty_container, koatty_core, koatty_exception, koatty_lib, koatty_logger, koatty_proto, koatty_validation
✓ koatty_container type declarations ready
✓ koatty_core type declarations ready
✓ koatty_exception type declarations ready
✓ koatty_lib type declarations ready
✓ koatty_logger type declarations ready
✓ koatty_proto type declarations ready
✓ koatty_validation type declarations ready
✅ All dependencies ready (waited 1ms)
📝 Running TypeScript compiler...
[1G[0K⠙[1G[0K[96msrc/server/grpc.ts[0m:[93m510[0m:[93m21[0m - [91merror[0m[90m TS2339: [0mProperty 'emit' does not exist on type 'Server'.
[7m510[0m this.server.emit('error', err);
[7m [0m [91m ~~~~[0m
[96msrc/server/http2.ts[0m:[93m50[0m:[93m32[0m - [91merror[0m[90m TS2345: [0mArgument of type 'Http2ServerRequest' is not assignable to parameter of type 'IncomingMessage'.
Type 'Http2ServerRequest' is missing the following properties from type 'IncomingMessage': headersDistinct, trailersDistinct
[7m50[0m await healthMiddleware(req, res, async () => {
[7m [0m [91m ~~~[0m
Found 2 errors in 2 files.
Errors Files
1 src/server/grpc.ts[90m:510[0m
1 src/server/http2.ts[90m:50[0m
[1G[0K⠙[1G[0K⚠️ TypeScript compilation had errors, but continuing...
📦 Running API Extractor...
[1G[0K⠙[1G[0K
[1mapi-extractor 7.55.2 [36m - https://api-extractor.com/[39m
[22m
Using configuration from ./api-extractor.json
Analysis will use the bundled TypeScript version 5.8.2
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
[36mWriting: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve/temp/koatty_serve.api.json[39m
[36mWriting package typings: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve/dist/index.d.ts[39m
[33mWarning: src/ServeComponent.ts:104:38 - (tsdoc-characters-after-block-tag) The token "@OnEvent" looks like a TSDoc tag but contains an invalid character "("; if it is not a tag, use a backslash to escape the "@"[39m
[33mWarning: src/config/config.ts:83:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration[39m
[33mWarning: src/config/config.ts:90:3 - (ae-forgotten-export) The symbol "BaseSSLConfig" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/config/config.ts:103:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
[33mWarning: src/config/config.ts:104:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration[39m
[33mWarning: src/pools/http3.ts:75:7 - (tsdoc-at-sign-in-word) The "@" character looks like part of a TSDoc tag; use a backslash to escape it[39m
[33mWarning: src/pools/pool-metrics-integration.ts:12:11 - (tsdoc-param-tag-with-invalid-type) The block should not include a JSDoc-style '{type}'[39m
[33mWarning: src/pools/pool-metrics-integration.ts:13:18 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
[33mWarning: src/pools/pool-metrics-integration.ts:13:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
[33mWarning: src/pools/pool-metrics-integration.ts:26:11 - (tsdoc-param-tag-with-invalid-type) The block should not include a JSDoc-style '{type}'[39m
[33mWarning: src/pools/pool-metrics-integration.ts:27:18 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
[33mWarning: src/pools/pool-metrics-integration.ts:27:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
[33mWarning: src/server/base.ts:52:4 - (tsdoc-undefined-tag) The TSDoc tag "@template" is not defined in this configuration[39m
[33mWarning: src/server/base.ts:53:4 - (tsdoc-undefined-tag) The TSDoc tag "@template" is not defined in this configuration[39m
[33mWarning: src/server/grpc.ts:32:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration[39m
[33mWarning: src/server/grpc.ts:42:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration[39m
[33mWarning: src/server/grpc.ts:48:1 - (ae-forgotten-export) The symbol "BaseServer" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/grpc.ts:48:1 - (ae-forgotten-export) The symbol "GrpcServerOptions" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/grpc.ts:49:3 - (ae-forgotten-export) The symbol "GrpcConnectionPoolManager" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/grpc.ts:113:3 - (ae-forgotten-export) The symbol "ConfigChangeAnalysis" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/grpc.ts:412:6 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration[39m
[33mWarning: src/server/grpc.ts:559:6 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration[39m
[33mWarning: src/server/grpc.ts:571:3 - (ae-forgotten-export) The symbol "ServiceImplementation" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/grpc.ts:765:3 - (ae-forgotten-export) The symbol "ConnectionStats" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/grpc.ts:779:3 - (ae-forgotten-export) The symbol "ConnectionPoolHealth" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/grpc.ts:786:3 - (ae-forgotten-export) The symbol "ConnectionPoolMetrics" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http.ts:22:1 - (ae-forgotten-export) The symbol "HttpServerOptions" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http.ts:23:3 - (ae-forgotten-export) The symbol "HttpConnectionPoolManager" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http2.ts:22:1 - (ae-forgotten-export) The symbol "Http2ServerOptions" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http2.ts:23:3 - (ae-forgotten-export) The symbol "Http2ConnectionPoolManager" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http2.ts:556:7 - (ae-forgotten-export) The symbol "ConnectionPoolConfig" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http3.ts:50:1 - (ae-forgotten-export) The symbol "Http3ServerOptions" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http3.ts:51:3 - (ae-forgotten-export) The symbol "Http3ConnectionPoolManager" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/http3.ts:73:23 - (tsdoc-characters-after-block-tag) The token "@matrixai" looks like a TSDoc tag but contains an invalid character "/"; if it is not a tag, use a backslash to escape the "@"[39m
[33mWarning: src/server/http3.ts:74:9 - (tsdoc-at-sign-in-word) The "@" character looks like part of a TSDoc tag; use a backslash to escape it[39m
[33mWarning: src/server/https.ts:23:1 - (ae-forgotten-export) The symbol "HttpsServerOptions" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/https.ts:24:3 - (ae-forgotten-export) The symbol "HttpsConnectionPoolManager" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/serve.ts:483:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
[33mWarning: src/server/serve.ts:484:11 - (tsdoc-param-tag-with-invalid-type) The block should not include a JSDoc-style '{type}'[39m
[33mWarning: src/server/serve.ts:485:30 - (tsdoc-param-tag-with-invalid-optional-name) The should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.[39m
[33mWarning: src/server/serve.ts:485:11 - (tsdoc-param-tag-with-invalid-type) The block should not include a JSDoc-style '{type}'[39m
[33mWarning: src/server/serve.ts:486:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
[33mWarning: src/server/serve.ts:486:31 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
[33mWarning: src/server/serve.ts:486:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
[33mWarning: src/server/serve.ts:486:18 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
[33mWarning: src/server/ws.ts:24:1 - (ae-forgotten-export) The symbol "WebSocketServerOptions" needs to be exported by the entry point index.d.ts[39m
[33mWarning: src/server/ws.ts:25:3 - (ae-forgotten-export) The symbol "WebSocketConnectionPoolManager" needs to be exported by the entry point index.d.ts[39m
API Extractor completed successfully
[1G[0K⠙[1G[0K✅ Type declarations built successfully
> koatty_serve@3.2.0 build:doc /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve
> api-documenter markdown --input temp --output docs/api
[1mapi-documenter 7.28.2 [36m - https://api-extractor.com/[39m
[22m
Reading koatty_serve.api.json
Deleting old output from docs/api
Writing koatty_serve package
Unsupported block tag:
Unsupported block tag:
Unsupported block tag:
Unsupported block tag:
> koatty_serve@3.2.0 build:cp /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve
> node ../../scripts/postBuild.js
📦 postBuild: koatty-serve
✓ Copied package.json to dist/
✓ Copied LICENSE to dist/
✓ Copied README.md to dist/
✓ Fixed paths in dist/package.json
✓ Cleaned DTS declarations
✅ Done