@stacksjs/ts-cloud-types 0.1.7 → 0.1.9

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/index.d.ts CHANGED
@@ -171,6 +171,7 @@ export declare interface InfrastructureConfig {
171
171
  vpc?: VpcConfig
172
172
  network?: NetworkConfig
173
173
  compute?: ComputeConfig
174
+ containers?: Record<string, ContainerItemConfig>
174
175
  storage?: Record<string, StorageItemConfig & ResourceConditions>
175
176
  functions?: Record<string, FunctionConfig & ResourceConditions>
176
177
  servers?: Record<string, ServerItemConfig & ResourceConditions>
@@ -516,6 +517,19 @@ export declare interface InstanceConfig {
516
517
  * ],
517
518
  * }
518
519
  */
520
+ export declare interface ContainerItemConfig {
521
+ cpu?: number
522
+ memory?: number
523
+ port?: number
524
+ healthCheck?: string
525
+ desiredCount?: number
526
+ autoScaling?: {
527
+ min?: number
528
+ max?: number
529
+ targetCpuUtilization?: number
530
+ targetMemoryUtilization?: number
531
+ }
532
+ }
519
533
  export declare interface ComputeConfig {
520
534
  mode?: 'server' | 'serverless'
521
535
  instances?: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/ts-cloud-types",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "Shared TypeScript types for ts-cloud",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
@@ -15,15 +15,16 @@
15
15
  },
16
16
  "exports": {
17
17
  ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
18
+ "import": "./dist/index.js",
19
+ "types": "./dist/index.d.ts"
20
20
  }
21
21
  },
22
22
  "main": "./dist/index.js",
23
23
  "module": "./dist/index.js",
24
24
  "types": "./dist/index.d.ts",
25
25
  "files": [
26
- "dist"
26
+ "dist",
27
+ "src"
27
28
  ],
28
29
  "scripts": {
29
30
  "build": "bun --bun build.ts",