@kaupang/core 0.1.0 → 0.1.1

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
@@ -1,5 +1,5 @@
1
- import { K as KaupangConfig, E as EnvironmentDefinition, P as Pipeline, S as ServiceSpec, a as SolutionRecipe, b as SecretRef, C as CatalogRef } from './types-CNSMXHRO.js';
2
- export { B as BackendName, c as BuildConfig, d as CatalogConfig, e as CatalogSourceConfig, D as Dependable, f as EnvMap, g as EnvValue, H as HealthcheckConfig, h as HookCommand, i as Hooks, j as PipelineStep, k as PullPolicy, l as ServiceDefinition, m as ServiceInput, T as TargetConfig, W as WaitSpec } from './types-CNSMXHRO.js';
1
+ import { K as KaupangConfig, E as EnvironmentDefinition, P as Pipeline, S as ServiceSpec, a as SolutionRecipe, b as SecretRef, C as CatalogRef } from './types-33zDl_9c.js';
2
+ export { B as BackendName, c as BuildConfig, d as CatalogConfig, e as CatalogSourceConfig, D as Dependable, f as EnvMap, g as EnvValue, H as HealthcheckConfig, h as HookCommand, i as Hooks, j as PipelineStep, k as PullPolicy, l as ServiceDefinition, m as ServiceInput, T as TargetConfig, W as WaitSpec } from './types-33zDl_9c.js';
3
3
 
4
4
  /** Identity helper with full type-checking + autocomplete in kaupang.config.ts. */
5
5
  declare function defineConfig(config: KaupangConfig): KaupangConfig;
@@ -1,5 +1,5 @@
1
- import { S as ServiceSpec, a as SolutionRecipe, d as CatalogConfig, l as ServiceDefinition, f as EnvMap, i as Hooks, E as EnvironmentDefinition, k as PullPolicy, D as Dependable, K as KaupangConfig, B as BackendName, g as EnvValue, b as SecretRef, h as HookCommand } from './types-CNSMXHRO.js';
2
- export { c as BuildConfig, C as CatalogRef, e as CatalogSourceConfig, H as HealthcheckConfig, P as Pipeline, j as PipelineStep, m as ServiceInput, T as TargetConfig, W as WaitSpec } from './types-CNSMXHRO.js';
1
+ import { S as ServiceSpec, a as SolutionRecipe, d as CatalogConfig, l as ServiceDefinition, f as EnvMap, i as Hooks, E as EnvironmentDefinition, k as PullPolicy, D as Dependable, K as KaupangConfig, B as BackendName, g as EnvValue, b as SecretRef, h as HookCommand } from './types-33zDl_9c.js';
2
+ export { c as BuildConfig, C as CatalogRef, e as CatalogSourceConfig, H as HealthcheckConfig, P as Pipeline, j as PipelineStep, m as ServiceInput, T as TargetConfig, W as WaitSpec } from './types-33zDl_9c.js';
3
3
 
4
4
  /** A catalog manifest: reusable service presets and/or solution recipes. */
5
5
  interface CatalogManifest {
package/dist/internal.js CHANGED
@@ -503,6 +503,9 @@ function toComposeService(def, opts, envVars, completing) {
503
503
  if (def.ports?.length) svc.ports = def.ports;
504
504
  if (def.volumes?.length) svc.volumes = def.volumes;
505
505
  if (def.networks?.length) svc.networks = def.networks;
506
+ if (def.capAdd?.length) svc.cap_add = def.capAdd;
507
+ if (def.entrypoint) svc.entrypoint = def.entrypoint;
508
+ if (def.workingDirectory) svc.working_dir = def.workingDirectory;
506
509
  if (def.labels) svc.labels = def.labels;
507
510
  if (def.pull && !opts.swarm) svc.pull_policy = def.pull;
508
511
  const merged = mergeEnv(opts.baseEnv, envVars, opts.targetEnv, def.env);
@@ -32,6 +32,9 @@ interface ServiceDefinition {
32
32
  image?: string;
33
33
  build?: string | BuildConfig;
34
34
  command?: string | string[];
35
+ entrypoint?: string | string[];
36
+ workingDirectory?: string;
37
+ capAdd?: string[];
35
38
  ports?: string[];
36
39
  env?: EnvMap;
37
40
  volumes?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaupang/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "kaupang's engine + config-authoring API (defineConfig/defineEnvironment/secret/use + types). The CLI lives in @kaupang/cli.",
5
5
  "license": "MIT",
6
6
  "author": "Andreas Quist Batista",