@saws/hono-service 2.0.0-beta.3 → 2.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -0
- package/dist/HonoService.d.ts +44 -0
- package/dist/HonoService.js +296 -0
- package/dist/index.js +1 -0
- package/package.json +10 -3
- package/src/HonoService.ts +0 -357
- package/tsconfig.json +0 -8
- /package/{src/index.ts → dist/index.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/typescript/lib/lib.es2025.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/typescript/lib/lib.es2025.collection.d.ts","../../../node_modules/typescript/lib/lib.es2025.float16.d.ts","../../../node_modules/typescript/lib/lib.es2025.intl.d.ts","../../../node_modules/typescript/lib/lib.es2025.iterator.d.ts","../../../node_modules/typescript/lib/lib.es2025.promise.d.ts","../../../node_modules/typescript/lib/lib.es2025.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.temporal.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../core/dist/utils/stage-outputs.d.ts","../../core/dist/secrets-manager.d.ts","../../core/dist/ServiceDefinition.d.ts","../../core/dist/find-service-definition.d.ts","../../core/dist/get-saws-config.d.ts","../../core/dist/host-readiness.d.ts","../../core/dist/Host.d.ts","../../core/dist/index.d.ts","../../core/dist/utils/dependency-management.d.ts","../../core/dist/utils/file-exists.d.ts","../../core/dist/utils/shell-quote.d.ts","../../docker-service/dist/DockerService.d.ts","../../docker-service/dist/index.d.ts","../src/HonoService.ts","../src/index.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/blob.d.ts","../../../node_modules/@types/node/web-globals/console.d.ts","../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/encoding.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/undici-types/utility.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client-stats.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/round-robin-pool.d.ts","../../../node_modules/undici-types/h2c-client.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/dispatcher1-wrapper.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/snapshot-agent.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/socks5-proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/web-globals/importmeta.d.ts","../../../node_modules/@types/node/web-globals/messaging.d.ts","../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/@types/node/web-globals/performance.d.ts","../../../node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/@types/node/web-globals/timers.d.ts","../../../node_modules/@types/node/web-globals/url.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/ffi.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/@types/node/inspector/promises.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/path/posix.d.ts","../../../node_modules/@types/node/path/win32.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/quic.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/iter.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/test/reporters.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/util/types.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/zlib/iter.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/find-package-json/package-json.d.ts","../../../node_modules/@types/find-package-json/index.d.ts"],"fileIdsList":[[96,161,169,174,177,179,180,181,193,220,221],[96,161,169,174,177,179,180,181,193],[96,158,159,161,169,174,177,179,180,181,193],[96,160,161,169,174,177,179,180,181,193],[161,169,174,177,179,180,181,193],[96,161,169,174,177,179,180,181,193,202],[96,161,162,167,169,172,174,177,179,180,181,183,193,198,211],[96,161,162,163,169,172,174,177,179,180,181,193],[96,161,164,169,174,177,179,180,181,193,212],[96,161,165,166,169,174,177,179,180,181,184,193],[96,161,166,169,174,177,179,180,181,193,198,208],[96,161,167,169,172,174,177,179,180,181,183,193],[96,160,161,168,169,174,177,179,180,181,193],[96,161,169,170,174,177,179,180,181,193],[96,161,169,171,172,174,177,179,180,181,193],[96,160,161,169,172,174,177,179,180,181,193],[96,161,169,172,174,175,177,179,180,181,193,198,211],[96,161,169,172,174,175,177,179,180,181,193,198,200,202],[96,148,161,169,172,174,176,177,179,180,181,183,193,198,211],[96,161,169,172,174,176,177,179,180,181,183,193,198,208,211],[96,161,169,174,176,177,178,179,180,181,193,198,208,211],[95,96,97,98,99,100,101,102,103,104,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219],[96,161,169,172,174,177,179,180,181,193],[96,161,169,174,177,179,181,193],[96,161,169,174,177,179,180,181,182,193,211],[96,161,169,172,174,177,179,180,181,183,193,198],[96,161,169,174,177,179,180,181,184,193],[96,161,169,174,177,179,180,181,185,193],[96,161,169,172,174,177,179,180,181,188,193],[96,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218],[96,161,169,174,177,179,180,181,190,193],[96,161,169,174,177,179,180,181,191,193],[96,161,166,169,174,177,179,180,181,183,193,202],[96,161,169,172,174,177,179,180,181,193,194],[96,161,169,174,177,179,180,181,193,195,212,215],[96,161,169,172,174,177,179,180,181,193,198,200,201,202],[96,161,169,174,177,179,180,181,193,199,202],[96,161,169,172,174,177,179,180,181,193,198,200],[96,161,169,172,174,177,179,180,181,193,198,201,202],[96,161,169,174,177,179,180,181,193,202,212],[96,161,169,174,177,179,180,181,193,203],[96,158,161,169,174,177,179,180,181,193,198,205,211],[96,161,169,174,177,179,180,181,193,198,204],[96,161,169,172,174,177,179,180,181,193,206,207],[96,161,169,174,177,179,180,181,193,206,207],[96,161,166,169,174,177,179,180,181,183,193,198,208],[96,161,169,174,177,179,180,181,193,209],[96,161,169,174,177,179,180,181,183,193,210],[96,161,169,174,176,177,179,180,181,191,193,211],[96,161,169,174,177,179,180,181,193,212,213],[96,161,166,169,174,177,179,180,181,193,213],[96,161,169,174,177,179,180,181,193,198,214],[96,161,169,174,177,179,180,181,182,193,215],[96,161,169,174,177,179,180,181,193,216],[96,161,164,169,174,177,179,180,181,193],[96,161,166,169,174,177,179,180,181,193],[96,161,169,174,177,179,180,181,193,212],[96,148,161,169,174,177,179,180,181,193],[96,161,169,174,177,179,180,181,193,211],[96,161,169,174,177,179,180,181,193,217],[96,161,169,174,177,179,180,181,188,193],[96,161,169,174,177,179,180,181,193,207],[96,148,161,169,172,174,175,177,179,180,181,188,193,198,202,211,214,215,217],[96,161,169,174,177,179,180,181,193,198,218],[96,161,169,174,177,179,180,181,193,200,219],[96,111,114,117,118,161,169,174,177,179,180,181,193,211],[96,114,161,169,174,177,179,180,181,193,198,211],[96,114,118,161,169,174,177,179,180,181,193,211],[96,161,169,174,177,179,180,181,193,198],[96,108,161,169,174,177,179,180,181,193],[96,112,161,169,174,177,179,180,181,193],[96,110,111,114,161,169,174,177,179,180,181,193,211],[96,161,169,174,177,179,180,181,183,193,208],[96,161,169,174,177,179,180,181,193,220],[96,108,161,169,174,177,179,180,181,193,220],[96,110,114,161,169,174,177,179,180,181,183,193,211],[96,105,106,107,109,113,161,169,172,174,177,179,180,181,193,198,211],[96,114,161,169,174,177,179,180,181,193],[96,114,123,132,161,169,174,177,179,180,181,193],[96,106,112,161,169,174,177,179,180,181,193],[96,114,142,143,161,169,174,177,179,180,181,193],[96,106,109,114,161,169,174,177,179,180,181,193,202,211,220],[96,110,114,161,169,174,177,179,180,181,193,211],[96,105,161,169,174,177,179,180,181,193],[96,108,109,110,112,113,114,115,116,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,143,144,145,146,147,161,169,174,177,179,180,181,193],[96,114,135,138,161,169,174,177,179,180,181,193],[96,114,123,125,126,161,169,174,177,179,180,181,193],[96,112,114,125,127,161,169,174,177,179,180,181,193],[96,113,161,169,174,177,179,180,181,193],[96,106,108,114,161,169,174,177,179,180,181,193],[96,114,118,125,127,161,169,174,177,179,180,181,193],[96,118,161,169,174,177,179,180,181,193],[96,112,114,117,161,169,174,177,179,180,181,193,211],[96,106,110,114,123,161,169,174,177,179,180,181,193],[96,114,135,161,169,174,177,179,180,181,193],[96,127,161,169,174,177,179,180,181,193],[96,106,110,114,118,161,169,174,177,179,180,181,193],[96,108,114,142,161,169,174,177,179,180,181,193,202,217,220],[81,85,96,161,169,174,177,179,180,181,193],[80,81,96,161,169,174,177,179,180,181,193,198],[82,96,161,169,174,177,179,180,181,193],[81,82,83,84,85,86,96,161,169,174,177,179,180,181,193],[87,96,161,162,169,174,177,179,180,181,193],[91,96,161,169,174,177,179,180,181,193],[87,88,89,90,92,96,161,162,169,174,175,177,179,180,181,185,193],[93,96,161,169,174,177,179,180,181,193]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"1e9332c23e9a907175e0ffc6a49e236f97b48838cc8aec9ce7e4cec21e544b65","impliedFormat":1},{"version":"3753fbc1113dc511214802a2342280a8b284ab9094f6420e7aa171e868679f91","impliedFormat":1},{"version":"999ca32883495a866aa5737fe1babc764a469e4cde6ee6b136a4b9ae68853e4b","impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"0bd714129fca875f7d4c477a1a392200b0bcd13fb2e80928cd334b63830ea047","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2c9037ae6cd2c52d80ceef0b3c5ffdb488627d71529cf4f63776daf11161c9a","affectsGlobalScope":true,"impliedFormat":1},{"version":"135d5cf4d345f59f1a9caadfafcd858d3d9cc68290db616cc85797224448cccc","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc238c3f81c2984751932b6aab223cd5b830e0ac6cad76389e5e9d2ffc03287d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a07f9b76d361f572620927e5735b77d6d2101c23cdd94383eb5b706e7b36357","affectsGlobalScope":true,"impliedFormat":1},{"version":"7c4e8dc6ab834cc6baa0227e030606d29e3e8449a9f67cdf5605ea5493c4db29","affectsGlobalScope":true,"impliedFormat":1},{"version":"de7ba0fd02e06cd9a5bd4ab441ed0e122735786e67dde1e849cced1cd8b46b78","affectsGlobalScope":true,"impliedFormat":1},{"version":"6148e4e88d720a06855071c3db02069434142a8332cf9c182cda551adedf3156","affectsGlobalScope":true,"impliedFormat":1},{"version":"d63dba625b108316a40c95a4425f8d4294e0deeccfd6c7e59d819efa19e23409","affectsGlobalScope":true,"impliedFormat":1},{"version":"0568d6befee03dd435bed4fc25c4e46865b24bdcb8c563fdc21f580a2c301904","affectsGlobalScope":true,"impliedFormat":1},{"version":"30d62269b05b584741f19a5369852d5d34895aa2ac4fd948956f886d15f9cc0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f128dae7c44d8f35ee42e0a437000a57c9f06cc04f8b4fb42eebf44954d53dc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"ffbe6d7b295306b2ba88030f65b74c107d8d99bdcf596ea99c62a02f606108b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"996fb27b15277369c68a4ba46ed138b4e9e839a02fb4ec756f7997629242fd9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"79b712591b270d4778c89706ca2cfc56ddb8c3f895840e477388f1710dc5eda9","affectsGlobalScope":true,"impliedFormat":1},{"version":"20884846cef428b992b9bd032e70a4ef88e349263f63aeddf04dda837a7dba26","affectsGlobalScope":true,"impliedFormat":1},{"version":"db59a81f070c1880ad645b2c0275022baa6a0c4f0acdc58d29d349c6efcf0903","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ecb8e347cb6b2a8927c09b86263663289418df375f5e68e11a0ae683776978f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ffedae1d1c2d53fdbca1c96d3c7dda544281f7d262f99b6880634f8fd8d9820","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"b507173a7718609bb52011f33e6fc61b0f3de62ec38c935b38dcfbb68223dea9","impliedFormat":99},{"version":"b9d885dfb75202756c7faa24450a3ea7060f90fc117304d795259e2d5efe005f","impliedFormat":99},{"version":"c2c45e23c9ade84835e6589a92f4b1e0d959f4aad517ca2b9f306d505c8c186b","impliedFormat":99},{"version":"d5f72b73663996558032aae95128fd1c003dbc2a3c7c9616a4b9582885554547","impliedFormat":99},{"version":"e57056025ca2a90d0a3af80fca4a0b31e83e5325c80b4207cee4546521bad645","impliedFormat":99},{"version":"d096b43d56e50a815348abdc7f505bff20b7326edd25d5ceab70be8ae550b216","impliedFormat":99},{"version":"f4b14039ec5893b0c7691e5695493a13207b5a6e7ea07e9d58fe3f112e9e87fd","impliedFormat":99},{"version":"b83a9041067ced394f3cd30aa56868504af4110a549c98f236671c6d2d9e08b6","impliedFormat":99},{"version":"f65327e250d4fbac1ad1b516c28c5ec07e112cde36839a71ff88712c0bf67a9e","impliedFormat":99},{"version":"cb5c7d71525f231186e6533d1777efaca83cc03f270ba9f723ee8e4eb6e502d2","impliedFormat":99},{"version":"3fdb492c7902b3162a9fa765e5ce843a831b87bf6a47c1aa4b73056e39a2eb17","impliedFormat":99},{"version":"6ea4541b3262486e583afb3e554fca8e5b8b0d3ed4c3fe299ff9508795d72934","impliedFormat":99},{"version":"41c2effc93c4a7c1143353cdd450d9f8b91c091630764c5654727bcb5af3cfce","impliedFormat":99},{"version":"d12a79476adf3053f34c9537c2b471c9c88ee1024c6ddfae76331431a04e1416","signature":"5f4dd669a64c3a3b616e84e893cc62c5972d8bb5240324e93025803f3d944747","impliedFormat":99},{"version":"12ddc63c1518dd6e0cd6d23b4a952a282b8c6ae18379784fd0d079da2889234b","impliedFormat":99},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc2110f7decca6bfb9392e30421cfa1436479e4a6756e8fec6cbc22625d4f881","affectsGlobalScope":true,"impliedFormat":1},{"version":"f53a7652392cf26ebbe4e29fd0672aa87c93bd6d0241289c13fab87b9ac35c8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"b00a630557d1622ad312633bdbfbdb9c6b7220d948dca9f899db30679f160074","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"88809d6c1b9c78d04a133646a6feb926def05a8774c308c7c93bc32ee163d271","impliedFormat":1},{"version":"156a859e21ef3244d13afeeba4e49760a6afa035c149dda52f0c45ea8903b338","impliedFormat":1},{"version":"3ac40516c33b87f751f7507346933081a26cdb8a3e11a6b3aa07d23f803c85db","impliedFormat":1},{"version":"615754924717c0b1e293e083b83503c0a872717ad5aa60ed7f1a699eb1b4ea5c","impliedFormat":1},{"version":"14e9acf826baba0ef4b5665704084896e7bcc06f65a9ab13af7e93d27d6b7069","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"829bc57ee8f287b490ab5bbc5a962fca57e432c1e38ec680ecd3ecaf12800613","impliedFormat":1},{"version":"eec76bf6b9346f3f95fa402621b889489e96930e72295b0369022f332e9b4a6a","impliedFormat":1},{"version":"3a3ff14da53d5013f3e6d8c4ad55225e3649c08786c4421ce639c00d8d589b7d","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"38004e6801340cb890afb8cb5a9fc8972297e7f88ab94026e4b0b3c61fb32f8a","impliedFormat":1},{"version":"d243db6b25788f439e7e2f03c05688e92f46764351673bb0e7b2f3631232e186","impliedFormat":1},{"version":"4d327f7d72ad0918275cea3eee49a6a8dc8114ae1d5b7f3f5d0774de75f7439a","impliedFormat":1},{"version":"149f9a9e7f04e67afa0e2a49fc0ff421035c01d6b793cfcae7d2e9f6819431e2","impliedFormat":1},{"version":"e8a9dfa4c75ef6d25df8b40eaa9c31e0a69452aaf2ced4a3f4215dbdbaa876f4","impliedFormat":1},{"version":"a70af845a2eb9dd6e2723e319e14ea7fb28b129ec1361c21509b49305448c323","impliedFormat":1},{"version":"b53dc572d4f187904207ae1166652de47aab8eeb00c254d009cb226863076b56","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"f501234c5aeeeb5d7659412335227466aaacf30b952372d60afeb21c02c96348","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"9ac977503f15bf13ca7c82ad9a32a782f42d43e474824e8b3bffe228fd5f2639","impliedFormat":1},{"version":"8b91ff5bb912be3ea213cbcf0075aace1f5d4ff249a0d227ed673868cb7bfabc","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"8aee8b6d4f9f62cf3776cda1305fb18763e2aade7e13cea5bbe699112df85214","impliedFormat":1},{"version":"98498b101803bb3dde9f76a56e65c14b75db1cc8bec5f4db72be541570f74fc5","impliedFormat":1},{"version":"7cb4f431a4591b0e23002bed805dc871a874dfed6b9a3994dce68a6df73e6739","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"436d7b4543b340b0f3eef4310d524242e41369b9652aa9c70428767c4dcac455","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"12950411eeab8563b349cb7959543d92d8d02c289ed893d78499a19becb5a8cc","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"e99963ae1e3a48ca7a7958c02f3e88bb963eb7978c28b68ae6b8c9f03309d83c","impliedFormat":1},{"version":"c3f5289820990ab66b70c7fb5b63cb674001009ff84b13de40619619a9c8175f","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"594ae90cacd813fa392ff80d2e0a8eff4e41f4a136329a940e321399dd8895b4","impliedFormat":1},{"version":"d1f333ade8ff35a409b4984e1f11956fe11c61855b0c7e9b59f0313e48b40c4a","impliedFormat":1},{"version":"0224aa4b3464895d69c413a640a19ac2166778a74eb5eb3b36b021c72d42b274","impliedFormat":1},{"version":"2e6fca0024dd8a076a886d9ec031a936ea59ad878a25b944820495d92f8381dd","affectsGlobalScope":true,"impliedFormat":1},{"version":"177459cba484e2f1e08872a3d2fdbca3162d9d43ca5ec9dc0c946835b55f74be","impliedFormat":1},{"version":"2fbf504c4791f9d32cd766cfe6b605bcda63289b925401953a7900db9af85348","impliedFormat":1},{"version":"ed0fb633cae35948d9e144004299a4bdf1ab912667c787b7fbffcd6d8c7b92a2","impliedFormat":1},{"version":"1678b04557dca52feab73cc67610918a7f5e25bfdba3e7fa081acd625d93106d","impliedFormat":1},{"version":"0e312260895afc9de021ce9de3c8a857392f0ccc7f19d3a030e4d6136a4ac91e","impliedFormat":1},{"version":"2ea729503db9793f2691162fec3dd1118cab62e96d025f8eeb376d43ec293395","impliedFormat":1},{"version":"98fc7231d6c846a8ed19bdef026ddffe5e2182cc818be74899287421ad370a87","impliedFormat":1},{"version":"3a40b5d34e014017539acb92f04cf2bc0aa71e49efb33c66039df93be97842a1","impliedFormat":1},{"version":"2bc7aa4fba46df0bd495425a7c8201437a7d465f83854fac859df2d67f664df3","impliedFormat":1},{"version":"41d17e1ad9a002feb11c8cdd2777e5bbc0cdb1e3f595d237e4dded0b6949983b","impliedFormat":1},{"version":"8c7e618c2a91ea7f6b5cca272a295864e92c16413be8fc56a943e8c7d5320011","affectsGlobalScope":true,"impliedFormat":1},{"version":"79a85c64bf083c5f4dd7074e804d1000c0c47301b84d48417a224decd681be30","impliedFormat":1},{"version":"9f1e3a76d5f509b5579e567de522b402cb79e201c4f47dcd014451c0580b290d","impliedFormat":1},{"version":"2ddab5b6932f9a6327f71baeb82a1d6b0824e0d23a4c7a5de5d355857113c22f","impliedFormat":1},{"version":"70f3f8b2dcaf7388f26731a59c79437813e3620b594903525a303cb2a7901016","impliedFormat":1},{"version":"62e8f884c3bc6dff6189b6e662ebe8b238a645938f2df7a97b8a82fca56773a4","impliedFormat":1},{"version":"2c2bdaa1d8ead9f68628d6d9d250e46ee8e81aa4898b4769a36956ae15e060fe","impliedFormat":1},{"version":"57a0d1b3d59063d4af2d3f8aac27cfe3c20a0f5d1faf0f8598ccf0b779637939","impliedFormat":1},{"version":"5ff4433a2deae4f85ab1377e90a7554ce6b47ae51c69a84ca30a6e22fae85834","impliedFormat":1},{"version":"82b91e4e42e6c41bc7fc1b6c2dc5eba6a2ba98375eb1f210e6ff6bba2d54177e","impliedFormat":1},{"version":"97234c5303866576f913d0ccae7d58d6322d9e803c7bf1228a3fda46ab8087b2","affectsGlobalScope":true,"impliedFormat":1},{"version":"93ecf87143cac7b9d05cffc1d6bdc075b7e4fdd48ff05f1fad85043f6ae678d3","impliedFormat":1},{"version":"6f200afcb82b3e9a54bed6db23f2edf2508cd266801257312c0f124b47f2bdb9","impliedFormat":1},{"version":"ec501101c2a96133a6c695f934c8f6642149cc728571b29cbb7b770984c1088e","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"39338f84e8c4d0e3de7b3c4a7024fb3925f42100eed5cbe73be58902799dff4d","impliedFormat":1},{"version":"fbf83eb33bf5e329527add92acc65da59323876c702ddccf5f4bf1e848c92369","affectsGlobalScope":true,"impliedFormat":1},{"version":"230763250f20449fa7b3c9273e1967adb0023dc890d4be1553faca658ee65971","impliedFormat":1},{"version":"c3e9078b60cb329d1221f5878e88cecfa3e74460550e605a58fcfb41a66029ff","impliedFormat":1},{"version":"515318bc6e656f75e9e34db625316bfafbafd800dfb1642574af93735a24ad38","impliedFormat":1},{"version":"441b9bb09013654aa3d050e68b06464d8959b473e85868249d9d18f692acd35b","impliedFormat":1},{"version":"bc18a1991ba681f03e13285fa1d7b99b03b67ee671b7bc936254467177543890","impliedFormat":1},{"version":"55246f15e33ff1e2e9e679b25fa9790a48db55dc63d567fe25fac8b6a0efe911","impliedFormat":1},{"version":"fa94bbf532b7af8f394b95fa310980d6e20bd2d4c871c6a6cb9f70f03750a44b","impliedFormat":1},{"version":"03b7804d69cecd66850abada858ed6d4a59001f8c228a9fe212306ee860a4ff6","impliedFormat":1},{"version":"5b26c4dd672d88336bb929787c9bfb55119e80ba89ec6dc923da1c063892843e","affectsGlobalScope":true,"impliedFormat":1},{"version":"7fa2214bb0d64701bc6f9ce8cde2fd2ff8c571e0b23065fa04a8a5a6beb91511","impliedFormat":1},{"version":"987fd1f85dc36f4b2c927aa3db814ac6b452e970f4f55d24ed4ecbb7df09be00","impliedFormat":1},{"version":"f12624a4a8d042b68914eac1b0a16571fc1c523173fcdf2517c65d191bd5a86c","impliedFormat":1},{"version":"b4769767f13a1692a66186e01c3aa186ff808d5ff72ed36eda8c37738fb2ac92","impliedFormat":1},{"version":"841983e39bd4cbb463be385e92fda11057cab368bf27100a801c492f1d86cbaa","impliedFormat":1},{"version":"683edfc4f2b411ebe04729cb6dc09ddd26fbac2c57771a6d7c55964af776e176","impliedFormat":1},{"version":"1ec3f3a5f04cc42df33274fbe5c0937d9a9e06f249a7a26288d7d54f0763ffd4","impliedFormat":1},{"version":"e4156ddb25aa0e3b5303d372f26957b36778f0f6bbd4326359269873295e3058","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc1b433a84cae05ddc5672d4823170af78606ad21ecef60dbc4570190cbf1357","impliedFormat":1},{"version":"e47f532d6e1617833f13a5b0710c0089d402c89c2f2b54f324e5a20e418d287a","impliedFormat":1},{"version":"7f78cfb2b343838612c192cb251746e3a7c62ac7675726a47e130d9b213f6580","impliedFormat":1},{"version":"201db9cf1687fab1adf5282fcba861f382b32303dc4f67c89d59655e78a25461","impliedFormat":1},{"version":"8e2577e7262051fd3c5bd6ca2b2056d358ff8853565720f92455860824c25188","impliedFormat":1},{"version":"7ec8d7d483f7394f9da611b10d3a0e402f76ff5c991261e6ce43a15f81ca4258","impliedFormat":1},{"version":"bb9dbb4b2ad81e3e71ec5ba4314973718555b9d04ba2a17dfbf875efecb8e2c0","impliedFormat":1},{"version":"82c3cc48c692438e41b94d936b8acd75ca97b18c50fa1af8a0715eb9d07d18cd","impliedFormat":1},{"version":"045a210189ec63c5488410b33f9fca53d77d051599d0d6506d8048551399c5f3","impliedFormat":1},{"version":"99ab6d0d660ce4d21efb52288a39fd35bb3f556980ec5463b1ae8f304a3bbc85","impliedFormat":1},{"version":"632c45ccb4cdc2c3a80c7a36a63dd7763016e59cac5e07bfb3e37e3548957028","impliedFormat":1},{"version":"c9a2daf6cd1eb854cd5b9e424247c5e306692055738c2effd35f7871d942b76e","impliedFormat":1},{"version":"afa1c49f8e559e413d57343339db857d2a8159435cf9cf7d4deb41718fff1b88","impliedFormat":1},{"version":"e50a7130339a951e6da9e968ed5521b0997a5b0479e148914087213839b5474c","impliedFormat":1},{"version":"990db7c9743d636fd3b2820ec8c40b512879da4c82e00488e7a352e2d005fc39","impliedFormat":1},{"version":"f091ed534c92e6408336f94323ecfe1890c0b5e0166154120712ed97ac9754a1","impliedFormat":1}],"root":[93,94],"options":{"composite":true,"esModuleInterop":true,"module":199,"outDir":"./","rootDir":"../src","skipLibCheck":true,"target":12,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[222,1],[221,2],[158,3],[159,3],[160,4],[96,5],[161,6],[162,7],[163,8],[164,9],[165,10],[166,11],[167,12],[168,13],[169,14],[170,14],[171,15],[172,16],[173,2],[174,17],[175,18],[97,2],[95,2],[176,19],[177,20],[178,21],[220,22],[179,23],[180,24],[181,23],[182,25],[183,26],[184,27],[185,28],[186,28],[187,28],[188,29],[189,30],[190,31],[191,32],[192,33],[193,34],[194,34],[195,35],[196,2],[197,2],[198,36],[199,37],[200,38],[201,39],[202,40],[203,41],[204,42],[205,43],[206,44],[207,45],[208,46],[209,47],[210,48],[211,49],[212,50],[213,51],[214,52],[215,53],[216,54],[98,23],[99,2],[100,55],[101,56],[102,2],[103,57],[104,2],[149,58],[150,59],[151,60],[152,60],[153,61],[154,2],[155,6],[156,62],[157,59],[217,63],[218,64],[219,65],[78,2],[79,2],[14,2],[13,2],[2,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[3,2],[23,2],[24,2],[4,2],[25,2],[29,2],[26,2],[27,2],[28,2],[30,2],[31,2],[32,2],[5,2],[33,2],[34,2],[35,2],[36,2],[6,2],[40,2],[37,2],[38,2],[39,2],[41,2],[7,2],[42,2],[47,2],[48,2],[43,2],[44,2],[45,2],[46,2],[8,2],[52,2],[49,2],[50,2],[51,2],[53,2],[9,2],[54,2],[55,2],[56,2],[58,2],[57,2],[59,2],[60,2],[10,2],[61,2],[62,2],[63,2],[11,2],[64,2],[65,2],[66,2],[67,2],[68,2],[69,2],[12,2],[70,2],[71,2],[72,2],[73,2],[74,2],[1,2],[75,2],[76,2],[77,2],[123,66],[137,67],[120,68],[138,69],[147,70],[111,71],[112,72],[110,73],[146,74],[141,75],[145,76],[114,77],[124,78],[134,79],[113,80],[144,81],[108,82],[109,75],[115,78],[116,2],[122,83],[119,78],[106,84],[148,85],[139,86],[127,87],[126,78],[128,88],[131,89],[125,90],[129,91],[142,74],[117,92],[118,93],[132,94],[107,69],[136,95],[135,78],[121,93],[130,96],[133,97],[140,2],[105,2],[143,98],[86,99],[82,100],[83,101],[84,101],[85,2],[87,102],[81,2],[88,101],[89,2],[90,2],[80,2],[91,103],[92,104],[93,105],[94,106]],"latestChangedDtsFile":"./index.d.ts","version":"6.0.3"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DockerService, type DockerServiceConfig } from "@saws/docker-service";
|
|
2
|
+
export interface HonoServiceConfig extends Omit<DockerServiceConfig, "image" | "dockerfile" | "buildContext" | "ports" | "command" | "healthCheck"> {
|
|
3
|
+
/** Port the Hono app listens on. Defaults to PORT or 3000. */
|
|
4
|
+
port?: number;
|
|
5
|
+
/** Public host name routed by Traefik during remote deploys. */
|
|
6
|
+
domain?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class HonoService extends DockerService {
|
|
9
|
+
readonly port?: number;
|
|
10
|
+
readonly domain?: string;
|
|
11
|
+
protected readonly serviceType = "hono";
|
|
12
|
+
private honoDevProcess?;
|
|
13
|
+
constructor(config: HonoServiceConfig);
|
|
14
|
+
init(): Promise<void>;
|
|
15
|
+
dev(): Promise<void>;
|
|
16
|
+
deploy(stage: string): Promise<void>;
|
|
17
|
+
exit(): void;
|
|
18
|
+
protected getContainerEnvironment(stage: string): Promise<Record<string, string>>;
|
|
19
|
+
protected getDockerRunConfig(stage: string, deploy: boolean): Promise<{
|
|
20
|
+
ports: string[];
|
|
21
|
+
name: string;
|
|
22
|
+
image: string;
|
|
23
|
+
network: string;
|
|
24
|
+
env?: Record<string, string>;
|
|
25
|
+
envFiles?: string[];
|
|
26
|
+
volumes?: string[];
|
|
27
|
+
command?: string[];
|
|
28
|
+
labels?: Record<string, string>;
|
|
29
|
+
restart?: import("@saws/docker-service").RestartConfig;
|
|
30
|
+
healthCheck?: import("@saws/docker-service").DockerHealthCheckConfig | false;
|
|
31
|
+
pull?: boolean;
|
|
32
|
+
configHash?: string;
|
|
33
|
+
}>;
|
|
34
|
+
private getPort;
|
|
35
|
+
private traefikRouterName;
|
|
36
|
+
private traefikServiceName;
|
|
37
|
+
private getTraefikRule;
|
|
38
|
+
private installTraefik;
|
|
39
|
+
private deployBlueGreen;
|
|
40
|
+
private withConfigHash;
|
|
41
|
+
private withColor;
|
|
42
|
+
private waitForHealthyScript;
|
|
43
|
+
private observeHonoDevProcess;
|
|
44
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { ServiceDefinition } from "@saws/core";
|
|
5
|
+
import { installDependencies } from "@saws/core/utils/dependency-management";
|
|
6
|
+
import { fileExists } from "@saws/core/utils/file-exists";
|
|
7
|
+
import { shellQuote } from "@saws/core/utils/shell-quote";
|
|
8
|
+
import { DockerService, } from "@saws/docker-service";
|
|
9
|
+
export class HonoService extends DockerService {
|
|
10
|
+
port;
|
|
11
|
+
domain;
|
|
12
|
+
serviceType = "hono";
|
|
13
|
+
honoDevProcess;
|
|
14
|
+
constructor(config) {
|
|
15
|
+
super({
|
|
16
|
+
...config,
|
|
17
|
+
dockerfile: path.join(config.name, "Dockerfile"),
|
|
18
|
+
buildContext: ".",
|
|
19
|
+
healthCheck: {
|
|
20
|
+
command: "node -e \"fetch('http://localhost:${PORT:-3000}/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))\"",
|
|
21
|
+
interval: "5s",
|
|
22
|
+
timeout: "2s",
|
|
23
|
+
retries: 12,
|
|
24
|
+
startPeriod: "5s",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
this.port = config.port;
|
|
28
|
+
this.domain = config.domain;
|
|
29
|
+
}
|
|
30
|
+
async init() {
|
|
31
|
+
await super.init();
|
|
32
|
+
await mkdir(path.resolve(this.name, "src"), { recursive: true });
|
|
33
|
+
await writeFileIfMissing(path.resolve(this.name, "package.json"), JSON.stringify({ name: this.name, type: "module" }, null, 2) + "\n");
|
|
34
|
+
await writeFileIfMissing(path.resolve(this.name, "tsconfig.json"), JSON.stringify({
|
|
35
|
+
extends: "@tsconfig/node26/tsconfig.json",
|
|
36
|
+
compilerOptions: {
|
|
37
|
+
composite: true,
|
|
38
|
+
outDir: "./dist",
|
|
39
|
+
rootDir: "./src",
|
|
40
|
+
types: ["node"],
|
|
41
|
+
},
|
|
42
|
+
}, null, 2) + "\n");
|
|
43
|
+
await writeFileIfMissing(path.resolve(this.name, "src", "index.ts"), honoIndexTemplate());
|
|
44
|
+
await writeFileIfMissing(path.resolve(this.name, "Dockerfile"), dockerfileTemplate(this.name));
|
|
45
|
+
await addWorkspace(this.name);
|
|
46
|
+
await addTsconfigReference(`./${this.name}/tsconfig.json`);
|
|
47
|
+
await installDependencies(["hono", "@hono/node-server"], {
|
|
48
|
+
workspace: this.name,
|
|
49
|
+
logSink: this.getRuntimeLogSink(),
|
|
50
|
+
serviceName: this.name,
|
|
51
|
+
});
|
|
52
|
+
await installDependencies(["typescript", "tsx", "@tsconfig/node26", "@types/node"], {
|
|
53
|
+
workspace: this.name,
|
|
54
|
+
development: true,
|
|
55
|
+
logSink: this.getRuntimeLogSink(),
|
|
56
|
+
serviceName: this.name,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async dev() {
|
|
60
|
+
await ServiceDefinition.prototype.dev.call(this);
|
|
61
|
+
const port = String(this.getPort());
|
|
62
|
+
const environment = {
|
|
63
|
+
...(await this.getDependenciesEnvironmentVariables("local", "host")),
|
|
64
|
+
...(await this.getStageEnvironmentVariables("local")),
|
|
65
|
+
PORT: port,
|
|
66
|
+
};
|
|
67
|
+
this.writeRuntimeLog(`Start Hono dev server ${this.name} on port ${port}\n`);
|
|
68
|
+
this.honoDevProcess = spawn("npx", ["tsx", "watch", "src/index.ts"], {
|
|
69
|
+
cwd: path.resolve(this.name),
|
|
70
|
+
env: {
|
|
71
|
+
...process.env,
|
|
72
|
+
...environment,
|
|
73
|
+
NODE_ENV: "development",
|
|
74
|
+
},
|
|
75
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
76
|
+
});
|
|
77
|
+
this.observeHonoDevProcess(this.honoDevProcess);
|
|
78
|
+
}
|
|
79
|
+
async deploy(stage) {
|
|
80
|
+
await DockerService.prototype.deploy.call(this, stage);
|
|
81
|
+
}
|
|
82
|
+
exit() {
|
|
83
|
+
super.exit();
|
|
84
|
+
this.honoDevProcess?.kill();
|
|
85
|
+
this.honoDevProcess = undefined;
|
|
86
|
+
}
|
|
87
|
+
async getContainerEnvironment(stage) {
|
|
88
|
+
return {
|
|
89
|
+
...(await super.getContainerEnvironment(stage)),
|
|
90
|
+
PORT: String(this.getPort()),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
async getDockerRunConfig(stage, deploy) {
|
|
94
|
+
const config = await super.getDockerRunConfig(stage, deploy);
|
|
95
|
+
const port = this.getPort();
|
|
96
|
+
return {
|
|
97
|
+
...config,
|
|
98
|
+
ports: [`${port}:${port}`],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
getPort() {
|
|
102
|
+
return this.port ?? Number(process.env["PORT"] ?? 3000);
|
|
103
|
+
}
|
|
104
|
+
traefikRouterName(stage) {
|
|
105
|
+
return `${stage}-${this.name}`.replaceAll(/[^a-zA-Z0-9-]/g, "-").toLowerCase();
|
|
106
|
+
}
|
|
107
|
+
traefikServiceName(stage) {
|
|
108
|
+
return this.traefikRouterName(stage);
|
|
109
|
+
}
|
|
110
|
+
getTraefikRule() {
|
|
111
|
+
if (this.domain != null)
|
|
112
|
+
return `Host(\`${this.domain}\`)`;
|
|
113
|
+
return `PathPrefix(\`/\`)`;
|
|
114
|
+
}
|
|
115
|
+
async installTraefik(stage, host) {
|
|
116
|
+
await this.assertRemoteHostReady();
|
|
117
|
+
await this.prepareRemote(stage, this.getNetwork(stage));
|
|
118
|
+
const runTraefik = [
|
|
119
|
+
"docker run -d",
|
|
120
|
+
"--name saws-traefik",
|
|
121
|
+
"--restart unless-stopped",
|
|
122
|
+
`--network ${shellQuote(this.getNetwork(stage))}`,
|
|
123
|
+
"-p 80:80",
|
|
124
|
+
"-v /var/run/docker.sock:/var/run/docker.sock:ro",
|
|
125
|
+
"traefik:v3.6",
|
|
126
|
+
"--providers.docker=true",
|
|
127
|
+
"--providers.docker.exposedbydefault=false",
|
|
128
|
+
"--entrypoints.web.address=:80",
|
|
129
|
+
].join(" ");
|
|
130
|
+
await host.exec([
|
|
131
|
+
"if ! docker inspect saws-traefik >/dev/null 2>&1; then",
|
|
132
|
+
runTraefik,
|
|
133
|
+
"fi",
|
|
134
|
+
`docker network connect ${shellQuote(this.getNetwork(stage))} saws-traefik >/dev/null 2>&1 || true`,
|
|
135
|
+
].join("\n"));
|
|
136
|
+
}
|
|
137
|
+
async deployBlueGreen(stage, config) {
|
|
138
|
+
await this.prepareRemote(stage, config.network);
|
|
139
|
+
await this.host.exec(`docker pull ${shellQuote(config.image)}`);
|
|
140
|
+
let environmentFile;
|
|
141
|
+
try {
|
|
142
|
+
environmentFile = await this.writeRemoteEnvironmentFile(stage, config);
|
|
143
|
+
const blueConfig = this.withColor(config, "blue", true);
|
|
144
|
+
const greenConfig = this.withColor(config, "green", true);
|
|
145
|
+
const blueRun = this.getDockerRunCommand(this.withConfigHash(blueConfig, config), true);
|
|
146
|
+
const greenRun = this.getDockerRunCommand(this.withConfigHash(greenConfig, config), true);
|
|
147
|
+
await this.host.exec([
|
|
148
|
+
`ACTIVE_COLOR=$(docker ps --filter label=saws.service=${shellQuote(this.name)} --filter label=saws.stage=${shellQuote(stage)} --filter label=traefik.enable=true --format '{{.Label "saws.deploymentColor"}}' | head -n 1)`,
|
|
149
|
+
'if [ "$ACTIVE_COLOR" = "blue" ]; then',
|
|
150
|
+
`NEXT_CONTAINER=${shellQuote(greenConfig.name)}`,
|
|
151
|
+
`OLD_CONTAINER=${shellQuote(blueConfig.name)}`,
|
|
152
|
+
`docker rm -f ${shellQuote(greenConfig.name)} >/dev/null 2>&1 || true`,
|
|
153
|
+
greenRun,
|
|
154
|
+
"else",
|
|
155
|
+
`NEXT_CONTAINER=${shellQuote(blueConfig.name)}`,
|
|
156
|
+
`OLD_CONTAINER=${shellQuote(greenConfig.name)}`,
|
|
157
|
+
`docker rm -f ${shellQuote(blueConfig.name)} >/dev/null 2>&1 || true`,
|
|
158
|
+
blueRun,
|
|
159
|
+
"fi",
|
|
160
|
+
this.waitForHealthyScript("$NEXT_CONTAINER"),
|
|
161
|
+
'docker rm -f "$OLD_CONTAINER" >/dev/null 2>&1 || true',
|
|
162
|
+
].join("\n"));
|
|
163
|
+
}
|
|
164
|
+
finally {
|
|
165
|
+
if (environmentFile != null) {
|
|
166
|
+
await this.removeRemoteRuntimeFile(environmentFile);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
withConfigHash(config, baseConfig) {
|
|
171
|
+
return {
|
|
172
|
+
...config,
|
|
173
|
+
labels: {
|
|
174
|
+
...config.labels,
|
|
175
|
+
"saws.configHash": baseConfig.configHash ?? this.getContainerConfigHash(baseConfig),
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
withColor(config, color, enabled) {
|
|
180
|
+
return {
|
|
181
|
+
...config,
|
|
182
|
+
name: `${config.name}-${color}`,
|
|
183
|
+
labels: {
|
|
184
|
+
...config.labels,
|
|
185
|
+
"saws.deploymentColor": color,
|
|
186
|
+
"traefik.enable": enabled ? "true" : "false",
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
waitForHealthyScript(containerNameExpression) {
|
|
191
|
+
return [
|
|
192
|
+
"for i in $(seq 1 60); do",
|
|
193
|
+
`status=$(docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}running{{end}}' ${containerNameExpression} 2>/dev/null || true)`,
|
|
194
|
+
'if [ "$status" = "healthy" ] || [ "$status" = "running" ]; then break; fi',
|
|
195
|
+
'if [ "$i" = "60" ]; then',
|
|
196
|
+
`docker logs ${containerNameExpression} --tail 100 || true`,
|
|
197
|
+
'echo "Container did not become healthy"',
|
|
198
|
+
"exit 1",
|
|
199
|
+
"fi",
|
|
200
|
+
"sleep 1",
|
|
201
|
+
"done",
|
|
202
|
+
].join("\n");
|
|
203
|
+
}
|
|
204
|
+
observeHonoDevProcess(process) {
|
|
205
|
+
process.stdout?.on("data", (chunk) => this.writeRuntimeLog(chunk.toString("utf8")));
|
|
206
|
+
process.stderr?.on("data", (chunk) => this.writeRuntimeLog(chunk.toString("utf8"), "stderr"));
|
|
207
|
+
process.once("error", (error) => {
|
|
208
|
+
this.writeRuntimeLog(`${error.stack ?? error.message}\n`, "stderr");
|
|
209
|
+
});
|
|
210
|
+
process.once("exit", (code, signal) => {
|
|
211
|
+
if (this.honoDevProcess === process)
|
|
212
|
+
this.honoDevProcess = undefined;
|
|
213
|
+
if (code !== 0 && signal !== "SIGTERM" && signal !== "SIGINT") {
|
|
214
|
+
this.writeRuntimeLog(`Hono dev server exited with code ${code ?? "unknown"}${signal == null ? "" : ` (${signal})`}\n`, "stderr");
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
async function writeFileIfMissing(filePath, contents) {
|
|
220
|
+
if (await fileExists(filePath))
|
|
221
|
+
return;
|
|
222
|
+
await writeFile(filePath, contents);
|
|
223
|
+
}
|
|
224
|
+
async function addWorkspace(workspace) {
|
|
225
|
+
const packageJsonPath = path.resolve("package.json");
|
|
226
|
+
const packageJson = JSON.parse(await readFile(packageJsonPath, "utf8"));
|
|
227
|
+
if (Array.isArray(packageJson.workspaces)) {
|
|
228
|
+
if (!packageJson.workspaces.includes(workspace))
|
|
229
|
+
packageJson.workspaces.push(workspace);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
packageJson.workspaces = {
|
|
233
|
+
...packageJson.workspaces,
|
|
234
|
+
packages: [...new Set([...(packageJson.workspaces?.packages ?? []), workspace])],
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
await writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2) + "\n");
|
|
238
|
+
}
|
|
239
|
+
async function addTsconfigReference(reference) {
|
|
240
|
+
const tsconfigPath = path.resolve("tsconfig.json");
|
|
241
|
+
const tsconfig = JSON.parse(await readFile(tsconfigPath, "utf8"));
|
|
242
|
+
tsconfig.references = tsconfig.references ?? [];
|
|
243
|
+
if (!tsconfig.references.some((entry) => entry.path === reference || entry.path === `./${reference}`)) {
|
|
244
|
+
tsconfig.references.push({ path: reference });
|
|
245
|
+
}
|
|
246
|
+
await writeFile(tsconfigPath, JSON.stringify(tsconfig, null, 2) + "\n");
|
|
247
|
+
}
|
|
248
|
+
function honoIndexTemplate() {
|
|
249
|
+
return `import { serve } from "@hono/node-server";
|
|
250
|
+
import { Hono } from "hono";
|
|
251
|
+
|
|
252
|
+
const app = new Hono()
|
|
253
|
+
.get("/health", (c) => c.json({ ok: true }))
|
|
254
|
+
.get("/", (c) => c.text("Hello from Hono"));
|
|
255
|
+
|
|
256
|
+
export type AppType = typeof app;
|
|
257
|
+
|
|
258
|
+
const port = Number(process.env.PORT ?? 3000);
|
|
259
|
+
|
|
260
|
+
serve(
|
|
261
|
+
{
|
|
262
|
+
fetch: app.fetch,
|
|
263
|
+
port,
|
|
264
|
+
},
|
|
265
|
+
(info) => {
|
|
266
|
+
console.log(\`Hono server listening on http://localhost:\${info.port}\`);
|
|
267
|
+
},
|
|
268
|
+
);
|
|
269
|
+
`;
|
|
270
|
+
}
|
|
271
|
+
function dockerfileTemplate(servicePath) {
|
|
272
|
+
const dockerServicePath = servicePath.split(path.sep).join(path.posix.sep);
|
|
273
|
+
return `FROM node:26-slim AS build
|
|
274
|
+
WORKDIR /app
|
|
275
|
+
|
|
276
|
+
COPY package*.json ./
|
|
277
|
+
COPY ${dockerServicePath}/package*.json ./${dockerServicePath}/
|
|
278
|
+
RUN npm ci --workspace ./${dockerServicePath} --include-workspace-root=false
|
|
279
|
+
|
|
280
|
+
COPY ${dockerServicePath} ./${dockerServicePath}
|
|
281
|
+
RUN npx --no-install tsc -p ${dockerServicePath}/tsconfig.json
|
|
282
|
+
|
|
283
|
+
FROM node:26-slim AS runtime
|
|
284
|
+
WORKDIR /app
|
|
285
|
+
ENV NODE_ENV=production
|
|
286
|
+
|
|
287
|
+
COPY package*.json ./
|
|
288
|
+
COPY ${dockerServicePath}/package*.json ./${dockerServicePath}/
|
|
289
|
+
RUN npm ci --omit=dev --workspace ./${dockerServicePath} --include-workspace-root=false
|
|
290
|
+
|
|
291
|
+
COPY --from=build /app/${dockerServicePath}/dist ./${dockerServicePath}/dist
|
|
292
|
+
|
|
293
|
+
WORKDIR /app/${dockerServicePath}
|
|
294
|
+
CMD ["node", "dist/index.js"]
|
|
295
|
+
`;
|
|
296
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./HonoService.js";
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saws/hono-service",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/shichongrui/saws.git"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"./dist"
|
|
13
|
+
],
|
|
7
14
|
"type": "module",
|
|
8
15
|
"types": "./dist/index.d.ts",
|
|
9
16
|
"exports": {
|
|
@@ -13,7 +20,7 @@
|
|
|
13
20
|
}
|
|
14
21
|
},
|
|
15
22
|
"dependencies": {
|
|
16
|
-
"@saws/core": "2.0.0-beta.
|
|
17
|
-
"@saws/docker-service": "2.0.0-beta.
|
|
23
|
+
"@saws/core": "2.0.0-beta.6",
|
|
24
|
+
"@saws/docker-service": "2.0.0-beta.6"
|
|
18
25
|
}
|
|
19
26
|
}
|
package/src/HonoService.ts
DELETED
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import { spawn, type ChildProcess } from "node:child_process";
|
|
2
|
-
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { ServiceDefinition, type Host } from "@saws/core";
|
|
5
|
-
import { installDependencies } from "@saws/core/utils/dependency-management";
|
|
6
|
-
import { fileExists } from "@saws/core/utils/file-exists";
|
|
7
|
-
import { shellQuote } from "@saws/core/utils/shell-quote";
|
|
8
|
-
import {
|
|
9
|
-
DockerService,
|
|
10
|
-
type DockerRunConfig,
|
|
11
|
-
type DockerServiceConfig,
|
|
12
|
-
} from "@saws/docker-service";
|
|
13
|
-
|
|
14
|
-
export interface HonoServiceConfig extends Omit<
|
|
15
|
-
DockerServiceConfig,
|
|
16
|
-
"image" | "dockerfile" | "buildContext" | "ports" | "command" | "healthCheck"
|
|
17
|
-
> {
|
|
18
|
-
/** Port the Hono app listens on. Defaults to PORT or 3000. */
|
|
19
|
-
port?: number;
|
|
20
|
-
/** Public host name routed by Traefik during remote deploys. */
|
|
21
|
-
domain?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export class HonoService extends DockerService {
|
|
25
|
-
readonly port?: number;
|
|
26
|
-
readonly domain?: string;
|
|
27
|
-
protected override readonly serviceType = "hono";
|
|
28
|
-
private honoDevProcess?: ChildProcess;
|
|
29
|
-
|
|
30
|
-
constructor(config: HonoServiceConfig) {
|
|
31
|
-
super({
|
|
32
|
-
...config,
|
|
33
|
-
dockerfile: path.join(config.name, "Dockerfile"),
|
|
34
|
-
buildContext: config.name,
|
|
35
|
-
healthCheck: {
|
|
36
|
-
command:
|
|
37
|
-
"node -e \"fetch('http://localhost:${PORT:-3000}/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))\"",
|
|
38
|
-
interval: "5s",
|
|
39
|
-
timeout: "2s",
|
|
40
|
-
retries: 12,
|
|
41
|
-
startPeriod: "5s",
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
this.port = config.port;
|
|
45
|
-
this.domain = config.domain;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
override async init() {
|
|
49
|
-
await super.init();
|
|
50
|
-
await mkdir(path.resolve(this.name, "src"), { recursive: true });
|
|
51
|
-
await writeFileIfMissing(
|
|
52
|
-
path.resolve(this.name, "package.json"),
|
|
53
|
-
JSON.stringify({ type: "module" }, null, 2) + "\n",
|
|
54
|
-
);
|
|
55
|
-
await writeFileIfMissing(
|
|
56
|
-
path.resolve(this.name, "tsconfig.json"),
|
|
57
|
-
JSON.stringify(
|
|
58
|
-
{
|
|
59
|
-
extends: "@tsconfig/node26/tsconfig.json",
|
|
60
|
-
compilerOptions: {
|
|
61
|
-
composite: true,
|
|
62
|
-
outDir: "./dist",
|
|
63
|
-
rootDir: "./src",
|
|
64
|
-
types: ["node"],
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
null,
|
|
68
|
-
2,
|
|
69
|
-
) + "\n",
|
|
70
|
-
);
|
|
71
|
-
await writeFileIfMissing(path.resolve(this.name, "src", "index.ts"), honoIndexTemplate());
|
|
72
|
-
await writeFileIfMissing(path.resolve(this.name, "Dockerfile"), dockerfileTemplate());
|
|
73
|
-
await addWorkspace(this.name);
|
|
74
|
-
await addTsconfigReference(`./${this.name}/tsconfig.json`);
|
|
75
|
-
await installDependencies(["hono", "@hono/node-server"], {
|
|
76
|
-
workspace: this.name,
|
|
77
|
-
logSink: this.getRuntimeLogSink(),
|
|
78
|
-
serviceName: this.name,
|
|
79
|
-
});
|
|
80
|
-
await installDependencies(["typescript", "tsx", "@tsconfig/node26", "@types/node"], {
|
|
81
|
-
workspace: this.name,
|
|
82
|
-
development: true,
|
|
83
|
-
logSink: this.getRuntimeLogSink(),
|
|
84
|
-
serviceName: this.name,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
override async dev() {
|
|
89
|
-
await ServiceDefinition.prototype.dev.call(this);
|
|
90
|
-
|
|
91
|
-
const port = String(this.getPort());
|
|
92
|
-
const environment = {
|
|
93
|
-
...(await this.getDependenciesEnvironmentVariables("local", "host")),
|
|
94
|
-
...(await this.getStageEnvironmentVariables("local")),
|
|
95
|
-
PORT: port,
|
|
96
|
-
};
|
|
97
|
-
this.writeRuntimeLog(`Start Hono dev server ${this.name} on port ${port}\n`);
|
|
98
|
-
this.honoDevProcess = spawn("npx", ["tsx", "watch", "src/index.ts"], {
|
|
99
|
-
cwd: path.resolve(this.name),
|
|
100
|
-
env: {
|
|
101
|
-
...process.env,
|
|
102
|
-
...environment,
|
|
103
|
-
NODE_ENV: "development",
|
|
104
|
-
},
|
|
105
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
106
|
-
});
|
|
107
|
-
this.observeHonoDevProcess(this.honoDevProcess);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
override async deploy(stage: string) {
|
|
111
|
-
await DockerService.prototype.deploy.call(this, stage);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
override exit() {
|
|
115
|
-
super.exit();
|
|
116
|
-
this.honoDevProcess?.kill();
|
|
117
|
-
this.honoDevProcess = undefined;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
protected override async getContainerEnvironment(stage: string): Promise<Record<string, string>> {
|
|
121
|
-
return {
|
|
122
|
-
...(await super.getContainerEnvironment(stage)),
|
|
123
|
-
PORT: String(this.getPort()),
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
protected override async getDockerRunConfig(stage: string, deploy: boolean) {
|
|
128
|
-
const config = await super.getDockerRunConfig(stage, deploy);
|
|
129
|
-
const port = this.getPort();
|
|
130
|
-
|
|
131
|
-
return {
|
|
132
|
-
...config,
|
|
133
|
-
ports: [`${port}:${port}`],
|
|
134
|
-
} satisfies DockerRunConfig;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
private getPort() {
|
|
138
|
-
return this.port ?? Number(process.env["PORT"] ?? 3000);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
private traefikRouterName(stage: string) {
|
|
142
|
-
return `${stage}-${this.name}`.replaceAll(/[^a-zA-Z0-9-]/g, "-").toLowerCase();
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
private traefikServiceName(stage: string) {
|
|
146
|
-
return this.traefikRouterName(stage);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
private getTraefikRule() {
|
|
150
|
-
if (this.domain != null) return `Host(\`${this.domain}\`)`;
|
|
151
|
-
return `PathPrefix(\`/\`)`;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
private async installTraefik(stage: string, host: Host) {
|
|
155
|
-
await this.assertRemoteHostReady();
|
|
156
|
-
await this.prepareRemote(stage, this.getNetwork(stage));
|
|
157
|
-
const runTraefik = [
|
|
158
|
-
"docker run -d",
|
|
159
|
-
"--name saws-traefik",
|
|
160
|
-
"--restart unless-stopped",
|
|
161
|
-
`--network ${shellQuote(this.getNetwork(stage))}`,
|
|
162
|
-
"-p 80:80",
|
|
163
|
-
"-v /var/run/docker.sock:/var/run/docker.sock:ro",
|
|
164
|
-
"traefik:v3.6",
|
|
165
|
-
"--providers.docker=true",
|
|
166
|
-
"--providers.docker.exposedbydefault=false",
|
|
167
|
-
"--entrypoints.web.address=:80",
|
|
168
|
-
].join(" ");
|
|
169
|
-
|
|
170
|
-
await host.exec(
|
|
171
|
-
[
|
|
172
|
-
"if ! docker inspect saws-traefik >/dev/null 2>&1; then",
|
|
173
|
-
runTraefik,
|
|
174
|
-
"fi",
|
|
175
|
-
`docker network connect ${shellQuote(this.getNetwork(stage))} saws-traefik >/dev/null 2>&1 || true`,
|
|
176
|
-
].join("\n"),
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
private async deployBlueGreen(stage: string, config: DockerRunConfig) {
|
|
181
|
-
await this.prepareRemote(stage, config.network);
|
|
182
|
-
await this.host!.exec(`docker pull ${shellQuote(config.image)}`);
|
|
183
|
-
|
|
184
|
-
let environmentFile;
|
|
185
|
-
try {
|
|
186
|
-
environmentFile = await this.writeRemoteEnvironmentFile(stage, config);
|
|
187
|
-
const blueConfig = this.withColor(config, "blue", true);
|
|
188
|
-
const greenConfig = this.withColor(config, "green", true);
|
|
189
|
-
const blueRun = this.getDockerRunCommand(this.withConfigHash(blueConfig, config), true);
|
|
190
|
-
const greenRun = this.getDockerRunCommand(this.withConfigHash(greenConfig, config), true);
|
|
191
|
-
await this.host!.exec(
|
|
192
|
-
[
|
|
193
|
-
`ACTIVE_COLOR=$(docker ps --filter label=saws.service=${shellQuote(this.name)} --filter label=saws.stage=${shellQuote(stage)} --filter label=traefik.enable=true --format '{{.Label "saws.deploymentColor"}}' | head -n 1)`,
|
|
194
|
-
'if [ "$ACTIVE_COLOR" = "blue" ]; then',
|
|
195
|
-
`NEXT_CONTAINER=${shellQuote(greenConfig.name)}`,
|
|
196
|
-
`OLD_CONTAINER=${shellQuote(blueConfig.name)}`,
|
|
197
|
-
`docker rm -f ${shellQuote(greenConfig.name)} >/dev/null 2>&1 || true`,
|
|
198
|
-
greenRun,
|
|
199
|
-
"else",
|
|
200
|
-
`NEXT_CONTAINER=${shellQuote(blueConfig.name)}`,
|
|
201
|
-
`OLD_CONTAINER=${shellQuote(greenConfig.name)}`,
|
|
202
|
-
`docker rm -f ${shellQuote(blueConfig.name)} >/dev/null 2>&1 || true`,
|
|
203
|
-
blueRun,
|
|
204
|
-
"fi",
|
|
205
|
-
this.waitForHealthyScript("$NEXT_CONTAINER"),
|
|
206
|
-
'docker rm -f "$OLD_CONTAINER" >/dev/null 2>&1 || true',
|
|
207
|
-
].join("\n"),
|
|
208
|
-
);
|
|
209
|
-
} finally {
|
|
210
|
-
if (environmentFile != null) {
|
|
211
|
-
await this.removeRemoteRuntimeFile(environmentFile);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
private withConfigHash(config: DockerRunConfig, baseConfig: DockerRunConfig) {
|
|
217
|
-
return {
|
|
218
|
-
...config,
|
|
219
|
-
labels: {
|
|
220
|
-
...config.labels,
|
|
221
|
-
"saws.configHash": baseConfig.configHash ?? this.getContainerConfigHash(baseConfig),
|
|
222
|
-
},
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
private withColor(config: DockerRunConfig, color: "blue" | "green", enabled: boolean) {
|
|
227
|
-
return {
|
|
228
|
-
...config,
|
|
229
|
-
name: `${config.name}-${color}`,
|
|
230
|
-
labels: {
|
|
231
|
-
...config.labels,
|
|
232
|
-
"saws.deploymentColor": color,
|
|
233
|
-
"traefik.enable": enabled ? "true" : "false",
|
|
234
|
-
},
|
|
235
|
-
} satisfies DockerRunConfig;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
private waitForHealthyScript(containerNameExpression: string) {
|
|
239
|
-
return [
|
|
240
|
-
"for i in $(seq 1 60); do",
|
|
241
|
-
`status=$(docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}running{{end}}' ${containerNameExpression} 2>/dev/null || true)`,
|
|
242
|
-
'if [ "$status" = "healthy" ] || [ "$status" = "running" ]; then break; fi',
|
|
243
|
-
'if [ "$i" = "60" ]; then',
|
|
244
|
-
`docker logs ${containerNameExpression} --tail 100 || true`,
|
|
245
|
-
'echo "Container did not become healthy"',
|
|
246
|
-
"exit 1",
|
|
247
|
-
"fi",
|
|
248
|
-
"sleep 1",
|
|
249
|
-
"done",
|
|
250
|
-
].join("\n");
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
private observeHonoDevProcess(process: ChildProcess) {
|
|
254
|
-
process.stdout?.on("data", (chunk: Buffer) => this.writeRuntimeLog(chunk.toString("utf8")));
|
|
255
|
-
process.stderr?.on("data", (chunk: Buffer) =>
|
|
256
|
-
this.writeRuntimeLog(chunk.toString("utf8"), "stderr"),
|
|
257
|
-
);
|
|
258
|
-
process.once("error", (error) => {
|
|
259
|
-
this.writeRuntimeLog(`${error.stack ?? error.message}\n`, "stderr");
|
|
260
|
-
});
|
|
261
|
-
process.once("exit", (code, signal) => {
|
|
262
|
-
if (this.honoDevProcess === process) this.honoDevProcess = undefined;
|
|
263
|
-
if (code !== 0 && signal !== "SIGTERM" && signal !== "SIGINT") {
|
|
264
|
-
this.writeRuntimeLog(
|
|
265
|
-
`Hono dev server exited with code ${code ?? "unknown"}${signal == null ? "" : ` (${signal})`}\n`,
|
|
266
|
-
"stderr",
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
async function writeFileIfMissing(filePath: string, contents: string) {
|
|
274
|
-
if (await fileExists(filePath)) return;
|
|
275
|
-
await writeFile(filePath, contents);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
async function addWorkspace(workspace: string) {
|
|
279
|
-
const packageJsonPath = path.resolve("package.json");
|
|
280
|
-
const packageJson = JSON.parse(await readFile(packageJsonPath, "utf8")) as {
|
|
281
|
-
workspaces?: string[] | { packages?: string[] };
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
if (Array.isArray(packageJson.workspaces)) {
|
|
285
|
-
if (!packageJson.workspaces.includes(workspace)) packageJson.workspaces.push(workspace);
|
|
286
|
-
} else {
|
|
287
|
-
packageJson.workspaces = {
|
|
288
|
-
...packageJson.workspaces,
|
|
289
|
-
packages: [...new Set([...(packageJson.workspaces?.packages ?? []), workspace])],
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
await writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2) + "\n");
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
async function addTsconfigReference(reference: string) {
|
|
297
|
-
const tsconfigPath = path.resolve("tsconfig.json");
|
|
298
|
-
const tsconfig = JSON.parse(await readFile(tsconfigPath, "utf8")) as {
|
|
299
|
-
references?: Array<{ path: string }>;
|
|
300
|
-
};
|
|
301
|
-
tsconfig.references = tsconfig.references ?? [];
|
|
302
|
-
if (
|
|
303
|
-
!tsconfig.references.some(
|
|
304
|
-
(entry) => entry.path === reference || entry.path === `./${reference}`,
|
|
305
|
-
)
|
|
306
|
-
) {
|
|
307
|
-
tsconfig.references.push({ path: reference });
|
|
308
|
-
}
|
|
309
|
-
await writeFile(tsconfigPath, JSON.stringify(tsconfig, null, 2) + "\n");
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
function honoIndexTemplate() {
|
|
313
|
-
return `import { serve } from "@hono/node-server";
|
|
314
|
-
import { Hono } from "hono";
|
|
315
|
-
|
|
316
|
-
const app = new Hono()
|
|
317
|
-
.get("/health", (c) => c.json({ ok: true }))
|
|
318
|
-
.get("/", (c) => c.text("Hello from Hono"));
|
|
319
|
-
|
|
320
|
-
export type AppType = typeof app;
|
|
321
|
-
|
|
322
|
-
const port = Number(process.env.PORT ?? 3000);
|
|
323
|
-
|
|
324
|
-
serve(
|
|
325
|
-
{
|
|
326
|
-
fetch: app.fetch,
|
|
327
|
-
port,
|
|
328
|
-
},
|
|
329
|
-
(info) => {
|
|
330
|
-
console.log(\`Hono server listening on http://localhost:\${info.port}\`);
|
|
331
|
-
},
|
|
332
|
-
);
|
|
333
|
-
`;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
function dockerfileTemplate() {
|
|
337
|
-
return `FROM node:26-slim AS build
|
|
338
|
-
WORKDIR /app
|
|
339
|
-
|
|
340
|
-
COPY package.json ./
|
|
341
|
-
RUN npm install
|
|
342
|
-
|
|
343
|
-
COPY . .
|
|
344
|
-
RUN npx --no-install tsc -b
|
|
345
|
-
|
|
346
|
-
FROM node:26-slim AS runtime
|
|
347
|
-
WORKDIR /app
|
|
348
|
-
ENV NODE_ENV=production
|
|
349
|
-
|
|
350
|
-
COPY package.json ./
|
|
351
|
-
RUN npm install --omit=dev
|
|
352
|
-
|
|
353
|
-
COPY --from=build /app/dist ./dist
|
|
354
|
-
|
|
355
|
-
CMD ["node", "dist/index.js"]
|
|
356
|
-
`;
|
|
357
|
-
}
|
package/tsconfig.json
DELETED
|
File without changes
|