@solid-stack/builder 1.1.4 → 1.1.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/commands/service/commands/up/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,eAAO,MAAM,iBAAiB,QAAS,OAAO,KAAG,IAgDhD,CAAC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/commands/service/commands/up/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,eAAO,MAAM,iBAAiB,QAAS,OAAO,KAAG,IA0DhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/commands/service/commands/up/handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnF,wBAAsB,eAAe,CACnC,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAmCjB"}
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/commands/service/commands/up/handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnF,wBAAsB,eAAe,CACnC,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAqCjB"}
@@ -5,5 +5,6 @@ export type RunOptions = {
5
5
  dryRun?: boolean | undefined;
6
6
  skipBanner?: boolean | undefined;
7
7
  silenceWarnings?: boolean | undefined;
8
+ full?: boolean | undefined;
8
9
  };
9
10
  //# sourceMappingURL=RunOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunOptions.d.ts","sourceRoot":"","sources":["../../src/core/RunOptions.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"RunOptions.d.ts","sourceRoot":"","sources":["../../src/core/RunOptions.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import type { Environment } from "../types/index.js";
2
- export declare const compileEnvironment: (environment: Environment, projectDir?: string, options?: {
2
+ export interface CompileEnvironmentOptions {
3
3
  silenceWarnings?: boolean | undefined;
4
- }) => string;
4
+ full?: boolean | undefined;
5
+ }
6
+ export declare const compileEnvironment: (environment: Environment, projectDir?: string, options?: CompileEnvironmentOptions) => string;
5
7
  //# sourceMappingURL=compileEnvironment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compileEnvironment.d.ts","sourceRoot":"","sources":["../../src/core/compileEnvironment.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAarD,eAAO,MAAM,kBAAkB,gBAChB,WAAW,eACZ,MAAM,YACT;IAAE,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,KACjD,MA4TF,CAAC"}
1
+ {"version":3,"file":"compileEnvironment.d.ts","sourceRoot":"","sources":["../../src/core/compileEnvironment.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAarD,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,gBAChB,WAAW,eACZ,MAAM,YACT,yBAAyB,KACjC,MA6UF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runDev.d.ts","sourceRoot":"","sources":["../../../src/core/runners/runDev.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,eAAO,MAAM,MAAM,YAAmB,UAAU,KAAG,OAAO,CAAC,MAAM,CAkDhE,CAAC"}
1
+ {"version":3,"file":"runDev.d.ts","sourceRoot":"","sources":["../../../src/core/runners/runDev.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,eAAO,MAAM,MAAM,YAAmB,UAAU,KAAG,OAAO,CAAC,MAAM,CAyDhE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./types/index.js";
2
2
  export { createCli, runCli } from "./cli.js";
3
- export { compileEnvironment } from "./core/compileEnvironment.js";
3
+ export { compileEnvironment, type CompileEnvironmentOptions, } from "./core/compileEnvironment.js";
4
4
  export { compileMeshEnvironment } from "./core/mesh/compileMeshEnvironment.js";
5
5
  export { teardownCompose } from "./core/teardownCompose.js";
6
6
  export { runCompose } from "./core/runCompose.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,GAC/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -2621,6 +2621,12 @@ var compileEnvironment = (environment, projectDir = process.cwd(), options = {})
2621
2621
  composeFlags.push("-f", overrides.dev.path);
2622
2622
  filesUsed.push(overrides.dev.path);
2623
2623
  }
2624
+ if (options.full && dependencies.length > 0) {
2625
+ for (const dep of dependencies) {
2626
+ composeFlags.push("-f", dep.path);
2627
+ filesUsed.push(dep.path);
2628
+ }
2629
+ }
2624
2630
  composeFlags.push("-f", standalonePath);
2625
2631
  filesUsed.push(standalonePath);
2626
2632
  break;
@@ -2712,7 +2718,7 @@ ${explanation}`);
2712
2718
  }
2713
2719
  const mergedYamlConfig = result.stdout;
2714
2720
  const yml = parse(mergedYamlConfig);
2715
- if (environment === "prod" || environment === "e2e") {
2721
+ if (environment === "prod" || environment === "e2e" || environment === "dev" && options.full) {
2716
2722
  renameServicesWithDependencies(yml, dependencies);
2717
2723
  addDependenciesToAppService(yml, dependencies);
2718
2724
  }
@@ -2822,6 +2828,10 @@ ${explanation}`);
2822
2828
  }
2823
2829
  }
2824
2830
  }
2831
+ if (environment === "dev" && options.full && yml.services?.app) {
2832
+ normalizeEnvironment(yml.services.app);
2833
+ yml.services.app.environment.INFRA_MODE = "integrated";
2834
+ }
2825
2835
  attachName(yml, projectName);
2826
2836
  const finalYamlConfig = stringify(yml);
2827
2837
  return finalYamlConfig;
@@ -3383,9 +3393,14 @@ Examples:
3383
3393
  );
3384
3394
  };
3385
3395
  var runDev = async (options) => {
3386
- console.log(pc22.cyan(`\u{1F680} Starting DEV environment...`));
3396
+ console.log(
3397
+ pc22.cyan(
3398
+ options.full ? `\u{1F680} Starting DEV environment (full / integrated)...` : `\u{1F680} Starting DEV environment...`
3399
+ )
3400
+ );
3387
3401
  const finalYamlConfig = compileEnvironment("dev", options.projectDir, {
3388
- silenceWarnings: options.silenceWarnings
3402
+ silenceWarnings: options.silenceWarnings,
3403
+ full: options.full
3389
3404
  });
3390
3405
  const parsed = parse(finalYamlConfig);
3391
3406
  const projectName = parsed?.name || "dev";
@@ -3473,12 +3488,14 @@ var runProd = async (options) => {
3473
3488
  async function handleServiceUp(rawStage, options = {}) {
3474
3489
  const projectDir = resolveProjectDir(options.projectDir);
3475
3490
  const stage = (rawStage || "dev").toLowerCase();
3491
+ const isFull = Boolean(options.full || options.integrated);
3476
3492
  const runOptions = {
3477
3493
  projectDir,
3478
3494
  debug: Boolean(options.debug),
3479
3495
  detach: Boolean(options.detach),
3480
3496
  dryRun: Boolean(options.dryRun),
3481
- silenceWarnings: Boolean(options.silenceWarnings)
3497
+ silenceWarnings: Boolean(options.silenceWarnings),
3498
+ full: isFull
3482
3499
  };
3483
3500
  if (stage === "dev") {
3484
3501
  return await runDev(runOptions);
@@ -3513,6 +3530,12 @@ var registerUpCommand = (cmd) => {
3513
3530
  ).option(
3514
3531
  "--silence-warnings",
3515
3532
  "Silence non-critical warnings like URL templating hints"
3533
+ ).option(
3534
+ "--full",
3535
+ "Run dev environment with mock dependencies and integrated infra mode"
3536
+ ).option(
3537
+ "--integrated",
3538
+ "Alias for --full"
3516
3539
  ).option(
3517
3540
  "-C, --project-dir <dir>",
3518
3541
  "Service project directory (defaults to cwd)"
@@ -3521,6 +3544,7 @@ var registerUpCommand = (cmd) => {
3521
3544
  `
3522
3545
  Examples:
3523
3546
  $ builder service up dev
3547
+ $ builder service up dev --full
3524
3548
  $ builder service up prod
3525
3549
  $ builder service up test
3526
3550
  $ builder service up test-unit
@@ -3533,7 +3557,8 @@ Examples:
3533
3557
  detach: options.detach,
3534
3558
  dryRun: options.dryRun,
3535
3559
  skipChecks: options.skipChecks,
3536
- silenceWarnings: options.silenceWarnings
3560
+ silenceWarnings: options.silenceWarnings,
3561
+ full: Boolean(options.full || options.integrated)
3537
3562
  });
3538
3563
  if (exitCode !== 0) {
3539
3564
  process.exit(exitCode);