@catladder/pipeline 0.0.0-refactor-untangle-gitlab-api-requests-from-vorpal-57cf3cf2 → 0.0.0-reference-database-url-1befbbee

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.
Files changed (181) hide show
  1. package/dist/build/artifacts/createBuildJobArtifact.js +1 -1
  2. package/dist/build/base/index.d.ts +2 -3
  3. package/dist/build/cache/getAllCacheConfigsFromConfig.js +2 -2
  4. package/dist/build/custom/buildJob.d.ts +2 -2
  5. package/dist/build/custom/index.d.ts +2 -2
  6. package/dist/build/custom/testJob.d.ts +2 -2
  7. package/dist/build/docker.d.ts +4 -4
  8. package/dist/build/docker.js +1 -1
  9. package/dist/build/index.d.ts +2 -2
  10. package/dist/build/index.js +2 -3
  11. package/dist/build/node/buildJob.d.ts +5 -3
  12. package/dist/build/node/index.d.ts +4 -4
  13. package/dist/build/node/meteor.d.ts +2 -2
  14. package/dist/build/node/yarn.d.ts +1 -1
  15. package/dist/build/node/yarn.js +1 -1
  16. package/dist/build/rails/build.d.ts +2 -2
  17. package/dist/build/rails/build.js +1 -1
  18. package/dist/build/rails/index.d.ts +2 -2
  19. package/dist/build/rails/test.js +13 -2
  20. package/dist/build/sbom.d.ts +2 -2
  21. package/dist/build/sbom.js +4 -1
  22. package/dist/build/types.d.ts +8 -0
  23. package/dist/constants.js +1 -1
  24. package/dist/context/createComponentContext.js +11 -4
  25. package/dist/context/getLabels.js +1 -1
  26. package/dist/deploy/cloudRun/createJobs/cloudRunJobs.js +2 -2
  27. package/dist/deploy/cloudRun/createJobs/cloudRunServices.js +34 -12
  28. package/dist/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +2 -3
  29. package/dist/deploy/cloudRun/createJobs/execute/onDeploy.js +4 -9
  30. package/dist/deploy/cloudRun/createJobs/healthCheck.d.ts +5 -0
  31. package/dist/deploy/cloudRun/createJobs/healthCheck.js +82 -0
  32. package/dist/deploy/cloudRun/index.js +7 -5
  33. package/dist/deploy/cloudRun/utils/database.d.ts +21 -2
  34. package/dist/deploy/cloudRun/utils/database.js +27 -6
  35. package/dist/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +2 -0
  36. package/dist/deploy/cloudRun/utils/getJobOrServiceArgs.js +12 -0
  37. package/dist/deploy/kubernetes/kubeValues.d.ts +2 -2
  38. package/dist/deploy/kubernetes/kubeValues.js +1 -1
  39. package/dist/deploy/sbom.js +1 -1
  40. package/dist/deploy/types/googleCloudRun.d.ts +100 -0
  41. package/dist/deploy/types/googleCloudRun.js +25 -0
  42. package/dist/pipeline/createJobsForComponent.js +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/dist/types/config.d.ts +1 -1
  45. package/dist/types/context.d.ts +6 -1
  46. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +1394 -0
  47. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +1394 -0
  48. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +1394 -0
  49. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +20 -8
  50. package/examples/__snapshots__/cloud-run-llama.test.ts.snap +624 -0
  51. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +20 -8
  52. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +24 -12
  53. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +20 -8
  54. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +20 -8
  55. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +20 -8
  56. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +20 -8
  57. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +20 -8
  58. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +20 -8
  59. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +20 -8
  60. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +20 -8
  61. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +20 -8
  62. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +20 -8
  63. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +20 -8
  64. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +1394 -0
  65. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +20 -8
  66. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +20 -8
  67. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +4515 -0
  68. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +40 -16
  69. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +20 -8
  70. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +20 -8
  71. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +20 -8
  72. package/examples/__snapshots__/custom-build-job.test.ts.snap +20 -8
  73. package/examples/__snapshots__/custom-deploy.test.ts.snap +20 -8
  74. package/examples/__snapshots__/custom-envs.test.ts.snap +24 -6
  75. package/examples/__snapshots__/custom-sbom-java.test.ts.snap +4 -4
  76. package/examples/__snapshots__/custom-verify-job.test.ts.snap +20 -8
  77. package/examples/__snapshots__/git-submodule.test.ts.snap +20 -8
  78. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +20 -8
  79. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +20 -8
  80. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +40 -16
  81. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +20 -8
  82. package/examples/__snapshots__/local-dot-env.test.ts.snap +20 -8
  83. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +20 -8
  84. package/examples/__snapshots__/multiline-var.test.ts.snap +60 -24
  85. package/examples/__snapshots__/native-app.test.ts.snap +36 -12
  86. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +20 -8
  87. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +20 -8
  88. package/examples/__snapshots__/override-secrets.test.ts.snap +20 -8
  89. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +30 -17
  90. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +38 -29
  91. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +60 -24
  92. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +32 -8
  93. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +40 -16
  94. package/examples/__snapshots__/workspace-api-www.test.ts.snap +40 -16
  95. package/examples/cloud-run-health-check-defaults.test.ts +11 -0
  96. package/examples/cloud-run-health-check-defaults.ts +28 -0
  97. package/examples/cloud-run-health-check-only-startup.test.ts +11 -0
  98. package/examples/cloud-run-health-check-only-startup.ts +38 -0
  99. package/examples/cloud-run-health-check.test.ts +11 -0
  100. package/examples/cloud-run-health-check.ts +45 -0
  101. package/examples/cloud-run-http2.ts +2 -2
  102. package/examples/cloud-run-llama.test.ts +11 -0
  103. package/examples/cloud-run-llama.ts +40 -0
  104. package/examples/cloud-run-memory-limit.ts +2 -2
  105. package/examples/cloud-run-meteor-with-worker.ts +7 -3
  106. package/examples/cloud-run-nextjs.ts +2 -2
  107. package/examples/cloud-run-no-cpu-throttling.ts +2 -2
  108. package/examples/cloud-run-no-service.ts +2 -2
  109. package/examples/cloud-run-non-public.ts +2 -2
  110. package/examples/cloud-run-post-stop-job.ts +2 -2
  111. package/examples/cloud-run-service-custom-vpc-connector.ts +2 -2
  112. package/examples/cloud-run-service-custom-vpc.ts +2 -2
  113. package/examples/cloud-run-service-gen2.ts +2 -2
  114. package/examples/cloud-run-service-increase-timout.ts +2 -2
  115. package/examples/cloud-run-service-with-volumes.ts +2 -2
  116. package/examples/cloud-run-storybook.ts +2 -2
  117. package/examples/cloud-run-with-gpu.test.ts +11 -0
  118. package/examples/cloud-run-with-gpu.ts +30 -0
  119. package/examples/cloud-run-with-ngnix.ts +2 -2
  120. package/examples/cloud-run-with-sql-legacy-jobs.ts +2 -2
  121. package/examples/cloud-run-with-sql-multiple-dbs.test.ts +11 -0
  122. package/examples/cloud-run-with-sql-multiple-dbs.ts +87 -0
  123. package/examples/cloud-run-with-sql-reuse-db.ts +2 -2
  124. package/examples/cloud-run-with-sql.ts +2 -2
  125. package/examples/cloud-run-with-worker.ts +2 -2
  126. package/examples/custom-build-job-with-tests.ts +2 -2
  127. package/examples/custom-build-job.ts +2 -2
  128. package/examples/custom-deploy.ts +2 -2
  129. package/examples/custom-envs.ts +2 -2
  130. package/examples/custom-sbom-java.ts +2 -2
  131. package/examples/custom-verify-job.ts +2 -2
  132. package/examples/git-submodule.ts +2 -2
  133. package/examples/kubernetes-application-customization.ts +2 -2
  134. package/examples/kubernetes-with-cloud-sql.ts +2 -2
  135. package/examples/kubernetes-with-jobs.ts +2 -2
  136. package/examples/kubernetes-with-mongodb.ts +2 -2
  137. package/examples/local-dot-env.ts +2 -2
  138. package/examples/meteor-kubernetes.ts +2 -2
  139. package/examples/multiline-var.ts +2 -2
  140. package/examples/native-app.ts +2 -2
  141. package/examples/node-build-with-custom-image.ts +2 -2
  142. package/examples/node-build-with-docker-additions.ts +2 -2
  143. package/examples/override-secrets.ts +2 -2
  144. package/examples/rails-k8s-with-worker.ts +2 -2
  145. package/examples/referencing-other-vars.ts +2 -2
  146. package/examples/wait-for-other-deploy.ts +1 -1
  147. package/examples/workspace-api-www-turbo-cache.ts +2 -2
  148. package/examples/workspace-api-www.ts +2 -2
  149. package/package.json +1 -1
  150. package/src/build/artifacts/createBuildJobArtifact.ts +3 -1
  151. package/src/build/base/index.ts +5 -2
  152. package/src/build/cache/getAllCacheConfigsFromConfig.ts +7 -6
  153. package/src/build/custom/buildJob.ts +2 -2
  154. package/src/build/custom/index.ts +4 -2
  155. package/src/build/custom/testJob.ts +2 -2
  156. package/src/build/docker.ts +9 -5
  157. package/src/build/index.ts +7 -5
  158. package/src/build/node/buildJob.ts +5 -2
  159. package/src/build/node/index.ts +9 -4
  160. package/src/build/node/meteor.ts +5 -2
  161. package/src/build/node/yarn.ts +4 -2
  162. package/src/build/rails/build.ts +3 -8
  163. package/src/build/rails/index.ts +4 -2
  164. package/src/build/rails/test.ts +19 -0
  165. package/src/build/sbom.ts +8 -3
  166. package/src/build/types.ts +8 -0
  167. package/src/context/createComponentContext.ts +22 -9
  168. package/src/context/getLabels.ts +4 -1
  169. package/src/deploy/cloudRun/createJobs/cloudRunJobs.ts +2 -2
  170. package/src/deploy/cloudRun/createJobs/cloudRunServices.ts +30 -3
  171. package/src/deploy/cloudRun/createJobs/execute/onDeploy.ts +3 -13
  172. package/src/deploy/cloudRun/createJobs/healthCheck.ts +64 -0
  173. package/src/deploy/cloudRun/index.ts +14 -5
  174. package/src/deploy/cloudRun/utils/database.ts +93 -8
  175. package/src/deploy/cloudRun/utils/getJobOrServiceArgs.ts +18 -0
  176. package/src/deploy/kubernetes/kubeValues.ts +13 -4
  177. package/src/deploy/sbom.ts +4 -3
  178. package/src/deploy/types/googleCloudRun.ts +135 -0
  179. package/src/pipeline/createJobsForComponent.ts +10 -2
  180. package/src/types/config.ts +1 -1
  181. package/src/types/context.ts +10 -1
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -28,7 +28,7 @@ const config: Config = {
28
28
  },
29
29
  },
30
30
  },
31
- };
31
+ } satisfies Config;
32
32
 
33
33
  export default config;
34
34
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -30,7 +30,7 @@ const config: Config = {
30
30
  },
31
31
  },
32
32
  },
33
- };
33
+ } satisfies Config;
34
34
 
35
35
  export default config;
36
36
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -20,7 +20,7 @@ const config: Config = {
20
20
  },
21
21
  },
22
22
  },
23
- };
23
+ } satisfies Config;
24
24
 
25
25
  export default config;
26
26
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -20,7 +20,7 @@ const config: Config = {
20
20
  },
21
21
  },
22
22
  },
23
- };
23
+ } satisfies Config;
24
24
 
25
25
  export default config;
26
26
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -55,7 +55,7 @@ const config: Config = {
55
55
  },
56
56
  },
57
57
  },
58
- };
58
+ } satisfies Config;
59
59
 
60
60
  export default config;
61
61
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -24,7 +24,7 @@ const config: Config = {
24
24
  },
25
25
  },
26
26
  },
27
- };
27
+ } satisfies Config;
28
28
 
29
29
  export default config;
30
30
 
@@ -0,0 +1,11 @@
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
+ import config from "./cloud-run-with-gpu";
3
+
4
+ /**
5
+ * This test is auto-generated.
6
+ * Modifications will be overwritten on every `yarn test` run!
7
+ */
8
+
9
+ it("matches snapshot for cloud-run-with-gpu local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
11
+ });
@@ -0,0 +1,30 @@
1
+ import type { Config } from "../src";
2
+
3
+ const config = {
4
+ appName: "test-app",
5
+ customerName: "pan",
6
+ components: {
7
+ api: {
8
+ dir: "api",
9
+ build: {
10
+ type: "node",
11
+ },
12
+ deploy: {
13
+ type: "google-cloudrun",
14
+ projectId: "google-project-id",
15
+ region: "europe-west4", // verify in which regions GPUs are available, europe-west6 is not supported as of time of writing
16
+ service: {
17
+ gpu: 1,
18
+ gpuType: "nvidia-l4",
19
+ memory: "32Gi",
20
+ },
21
+ },
22
+ },
23
+ },
24
+ } satisfies Config;
25
+
26
+ export default config;
27
+
28
+ export const information = {
29
+ title: "Cloud Run: With GPU",
30
+ };
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -20,7 +20,7 @@ const config: Config = {
20
20
  },
21
21
  },
22
22
  },
23
- };
23
+ } satisfies Config;
24
24
 
25
25
  export default config;
26
26
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -40,7 +40,7 @@ const config: Config = {
40
40
  },
41
41
  },
42
42
  },
43
- };
43
+ } satisfies Config;
44
44
 
45
45
  export default config;
46
46
 
@@ -0,0 +1,11 @@
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
+ import config from "./cloud-run-with-sql-multiple-dbs";
3
+
4
+ /**
5
+ * This test is auto-generated.
6
+ * Modifications will be overwritten on every `yarn test` run!
7
+ */
8
+
9
+ it("matches snapshot for cloud-run-with-sql-multiple-dbs local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
11
+ });
@@ -0,0 +1,87 @@
1
+ import type {
2
+ ComponentConfig,
3
+ Config,
4
+ DeployConfigCloudRunCloudSql,
5
+ } from "../src";
6
+
7
+ // both dbs currently need to run on the same instance
8
+ const CLOUD_SQL_BASE: DeployConfigCloudRunCloudSql = {
9
+ type: "unmanaged",
10
+ instanceConnectionName: "projectId:region:instancename",
11
+ dbUser: "my-user",
12
+ };
13
+
14
+ const DbComponent = (name: string): ComponentConfig => ({
15
+ dir: "packages/" + name,
16
+ build: {
17
+ type: "node",
18
+ },
19
+ deploy: {
20
+ type: "google-cloudrun",
21
+ projectId: "google-project-id",
22
+ region: "europe-west6",
23
+ cloudSql: {
24
+ ...CLOUD_SQL_BASE,
25
+ /*
26
+ there is a flaw in the current implementation,
27
+ that the db-url does not embed the env vars like DB_NAME, DB_USER, DB_PASSWORD, etc,
28
+ This leads to the problem that if you reference the DATABASE_URL from another component,
29
+ it will not work properly, as it only contains var names instead of the actual values.
30
+ Setting this to "embedded" will embed the actual values into the db-url, which solves this problem.
31
+ */
32
+ dbConnectionStringVariablesMode: "embedded",
33
+ },
34
+ service: false,
35
+ jobs: {
36
+ migrate: {
37
+ command: "yarn migrate",
38
+ },
39
+ },
40
+ execute: {
41
+ migrate: {
42
+ type: "job",
43
+ job: "migrate",
44
+ when: "preDeploy",
45
+ },
46
+ },
47
+ },
48
+ });
49
+ const config = {
50
+ appName: "test-app",
51
+ customerName: "pan",
52
+ components: {
53
+ // its good practise to have separated db components
54
+ db1: DbComponent("db1"),
55
+ db2: DbComponent("db2"),
56
+
57
+ api: {
58
+ dir: "api",
59
+ build: {
60
+ type: "node",
61
+ buildCommand: "yarn build:worker",
62
+ },
63
+ deploy: {
64
+ type: "google-cloudrun",
65
+ projectId: "google-project-id",
66
+ region: "europe-west6",
67
+ cloudSql: {
68
+ // currently one db is the default, as it injects additional env vars
69
+ ...CLOUD_SQL_BASE,
70
+ dbBaseName: "db1",
71
+ },
72
+ },
73
+ vars: {
74
+ public: {
75
+ // we reference the second db-url
76
+ DATABASE_URL_2: "${db2:DATABASE_URL}",
77
+ },
78
+ },
79
+ },
80
+ },
81
+ } satisfies Config;
82
+
83
+ export default config;
84
+
85
+ export const information = {
86
+ title: "Cloud Run: With SQL Reuse DB",
87
+ };
@@ -5,7 +5,7 @@ const CLOUD_SQL: DeployConfigCloudRunCloudSql = {
5
5
  instanceConnectionName: "projectId:region:instancename",
6
6
  dbUser: "my-user",
7
7
  };
8
- const config: Config = {
8
+ const config = {
9
9
  appName: "test-app",
10
10
  customerName: "pan",
11
11
  components: {
@@ -46,7 +46,7 @@ const config: Config = {
46
46
  },
47
47
  },
48
48
  },
49
- };
49
+ } satisfies Config;
50
50
 
51
51
  export default config;
52
52
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -74,7 +74,7 @@ const config: Config = {
74
74
  },
75
75
  },
76
76
  },
77
- };
77
+ } satisfies Config;
78
78
 
79
79
  export default config;
80
80
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -28,7 +28,7 @@ const config: Config = {
28
28
  },
29
29
  },
30
30
  },
31
- };
31
+ } satisfies Config;
32
32
 
33
33
  export default config;
34
34
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -47,7 +47,7 @@ const config: Config = {
47
47
  },
48
48
  },
49
49
  },
50
- };
50
+ } satisfies Config;
51
51
 
52
52
  export default config;
53
53
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -20,7 +20,7 @@ const config: Config = {
20
20
  },
21
21
  },
22
22
  },
23
- };
23
+ } satisfies Config;
24
24
 
25
25
  export default config;
26
26
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -34,7 +34,7 @@ const config: Config = {
34
34
  },
35
35
  },
36
36
  },
37
- };
37
+ } satisfies Config;
38
38
 
39
39
  export default config;
40
40
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config<{ CustomEnvs: "asdf" | "bla" }> = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -23,7 +23,7 @@ const config: Config<{ CustomEnvs: "asdf" | "bla" }> = {
23
23
  },
24
24
  },
25
25
  },
26
- };
26
+ } satisfies Config<{ CustomEnvs: "asdf" | "bla" }>;
27
27
 
28
28
  export default config;
29
29
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -29,7 +29,7 @@ const config: Config = {
29
29
  },
30
30
  },
31
31
  },
32
- };
32
+ } satisfies Config;
33
33
 
34
34
  export default config;
35
35
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -56,7 +56,7 @@ const config: Config = {
56
56
  ],
57
57
  },
58
58
  },
59
- };
59
+ } satisfies Config;
60
60
 
61
61
  export default config;
62
62
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  runnerVariables: {
@@ -21,7 +21,7 @@ const config: Config = {
21
21
  },
22
22
  },
23
23
  },
24
- };
24
+ } satisfies Config;
25
25
 
26
26
  export default config;
27
27
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -51,7 +51,7 @@ const config: Config = {
51
51
  },
52
52
  },
53
53
  },
54
- };
54
+ } satisfies Config;
55
55
 
56
56
  export default config;
57
57
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -29,7 +29,7 @@ const config: Config = {
29
29
  },
30
30
  },
31
31
  },
32
- };
32
+ } satisfies Config;
33
33
 
34
34
  export default config;
35
35
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -62,7 +62,7 @@ const config: Config = {
62
62
  },
63
63
  },
64
64
  },
65
- };
65
+ } satisfies Config;
66
66
 
67
67
  export default config;
68
68
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -43,7 +43,7 @@ const config: Config = {
43
43
  },
44
44
  },
45
45
  },
46
- };
46
+ } satisfies Config;
47
47
 
48
48
  export default config;
49
49
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -18,7 +18,7 @@ const config: Config = {
18
18
  },
19
19
  },
20
20
  },
21
- };
21
+ } satisfies Config;
22
22
 
23
23
  export default config;
24
24
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  customerName: "pan",
5
5
  appName: "my-app",
6
6
  components: {
@@ -55,7 +55,7 @@ const config: Config = {
55
55
  },
56
56
  },
57
57
  },
58
- };
58
+ } satisfies Config;
59
59
 
60
60
  export default config;
61
61
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -98,7 +98,7 @@ value from app1:
98
98
  },
99
99
  },
100
100
  },
101
- };
101
+ } satisfies Config;
102
102
 
103
103
  export default config;
104
104
 
@@ -10,7 +10,7 @@ const APP_GEM_CACHE: CacheConfig[] = [
10
10
  },
11
11
  ];
12
12
 
13
- const config: Config = {
13
+ const config = {
14
14
  appName: "test-app",
15
15
  customerName: "pan",
16
16
  components: {
@@ -77,7 +77,7 @@ const config: Config = {
77
77
  },
78
78
  },
79
79
  },
80
- };
80
+ } satisfies Config;
81
81
 
82
82
  export default config;
83
83
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -17,7 +17,7 @@ const config: Config = {
17
17
  },
18
18
  },
19
19
  },
20
- };
20
+ } satisfies Config;
21
21
 
22
22
  export default config;
23
23
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -20,7 +20,7 @@ const config: Config = {
20
20
  },
21
21
  },
22
22
  },
23
- };
23
+ } satisfies Config;
24
24
 
25
25
  export default config;
26
26
 
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../src";
2
2
 
3
- const config: Config = {
3
+ const config = {
4
4
  appName: "test-app",
5
5
  customerName: "pan",
6
6
  components: {
@@ -35,7 +35,7 @@ const config: Config = {
35
35
  },
36
36
  },
37
37
  },
38
- };
38
+ } satisfies Config;
39
39
 
40
40
  export default config;
41
41
 
@@ -3,7 +3,7 @@ import type { Config } from "../src";
3
3
  // the image version should match your `.ruby-version`
4
4
  const RAILS_TEST_STAGE_IMAGE = "ruby:3.2.1";
5
5
 
6
- const config: Config = {
6
+ const config = {
7
7
  appName: "test-app",
8
8
  customerName: "pan",
9
9
  components: {
@@ -92,7 +92,7 @@ const config: Config = {
92
92
  },
93
93
  },
94
94
  },
95
- };
95
+ } satisfies Config;
96
96
 
97
97
  export default config;
98
98