everything-dev 1.28.8 → 1.28.10

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.
@@ -57,8 +57,8 @@ declare const BuildOptionsSchema: z.ZodObject<{
57
57
  }, z.core.$strip>;
58
58
  declare const BuildResultSchema: z.ZodObject<{
59
59
  status: z.ZodEnum<{
60
- error: "error";
61
60
  success: "success";
61
+ error: "error";
62
62
  }>;
63
63
  built: z.ZodArray<z.ZodString>;
64
64
  skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -301,20 +301,20 @@ declare const KeyPublishResultSchema: z.ZodObject<{
301
301
  error: z.ZodOptional<z.ZodString>;
302
302
  }, z.core.$strip>;
303
303
  declare const OverrideSectionSchema: z.ZodEnum<{
304
- host: "host";
304
+ plugins: "plugins";
305
305
  ui: "ui";
306
+ host: "host";
306
307
  api: "api";
307
- plugins: "plugins";
308
308
  }>;
309
309
  declare const RuntimeOverrideTargetBaseSchema: z.ZodEnum<{
310
+ plugins: "plugins";
310
311
  ui: "ui";
311
312
  api: "api";
312
- plugins: "plugins";
313
313
  }>;
314
314
  declare const RuntimeOverrideTargetSchema: z.ZodUnion<readonly [z.ZodEnum<{
315
+ plugins: "plugins";
315
316
  ui: "ui";
316
317
  api: "api";
317
- plugins: "plugins";
318
318
  }>, z.ZodString]>;
319
319
  declare const InitOptionsSchema: z.ZodObject<{
320
320
  extends: z.ZodOptional<z.ZodString>;
@@ -324,10 +324,10 @@ declare const InitOptionsSchema: z.ZodObject<{
324
324
  source: z.ZodOptional<z.ZodString>;
325
325
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
326
326
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
327
- host: "host";
327
+ plugins: "plugins";
328
328
  ui: "ui";
329
+ host: "host";
329
330
  api: "api";
330
- plugins: "plugins";
331
331
  }>>>;
332
332
  noInteractive: z.ZodDefault<z.ZodBoolean>;
333
333
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -348,10 +348,10 @@ declare const InitResultSchema: z.ZodObject<{
348
348
  extends: z.ZodString;
349
349
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
350
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
351
- host: "host";
351
+ plugins: "plugins";
352
352
  ui: "ui";
353
+ host: "host";
353
354
  api: "api";
354
- plugins: "plugins";
355
355
  }>>>;
356
356
  filesCopied: z.ZodNumber;
357
357
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -439,15 +439,15 @@ declare const StatusResultSchema: z.ZodObject<{
439
439
  }, z.core.$strip>;
440
440
  declare const TypesGenOptionsSchema: z.ZodObject<{
441
441
  env: z.ZodOptional<z.ZodEnum<{
442
- production: "production";
443
442
  development: "development";
443
+ production: "production";
444
444
  }>>;
445
445
  dryRun: z.ZodDefault<z.ZodBoolean>;
446
446
  }, z.core.$strip>;
447
447
  declare const TypesGenResultSchema: z.ZodObject<{
448
448
  status: z.ZodEnum<{
449
- error: "error";
450
449
  success: "success";
450
+ error: "error";
451
451
  }>;
452
452
  generated: z.ZodArray<z.ZodString>;
453
453
  fetched: z.ZodArray<z.ZodString>;
@@ -512,8 +512,8 @@ declare const bosContract: {
512
512
  deploy: z.ZodDefault<z.ZodBoolean>;
513
513
  }, z.core.$strip>, z.ZodObject<{
514
514
  status: z.ZodEnum<{
515
- error: "error";
516
515
  success: "success";
516
+ error: "error";
517
517
  }>;
518
518
  built: z.ZodArray<z.ZodString>;
519
519
  skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -758,10 +758,10 @@ declare const bosContract: {
758
758
  source: z.ZodOptional<z.ZodString>;
759
759
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
760
760
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
761
- host: "host";
761
+ plugins: "plugins";
762
762
  ui: "ui";
763
+ host: "host";
763
764
  api: "api";
764
- plugins: "plugins";
765
765
  }>>>;
766
766
  noInteractive: z.ZodDefault<z.ZodBoolean>;
767
767
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -777,10 +777,10 @@ declare const bosContract: {
777
777
  extends: z.ZodString;
778
778
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
779
779
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
780
- host: "host";
780
+ plugins: "plugins";
781
781
  ui: "ui";
782
+ host: "host";
782
783
  api: "api";
783
- plugins: "plugins";
784
784
  }>>>;
785
785
  filesCopied: z.ZodNumber;
786
786
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -866,14 +866,14 @@ declare const bosContract: {
866
866
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
867
867
  typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
868
868
  env: z.ZodOptional<z.ZodEnum<{
869
- production: "production";
870
869
  development: "development";
870
+ production: "production";
871
871
  }>>;
872
872
  dryRun: z.ZodDefault<z.ZodBoolean>;
873
873
  }, z.core.$strip>, z.ZodObject<{
874
874
  status: z.ZodEnum<{
875
- error: "error";
876
875
  success: "success";
876
+ error: "error";
877
877
  }>;
878
878
  generated: z.ZodArray<z.ZodString>;
879
879
  fetched: z.ZodArray<z.ZodString>;
@@ -57,8 +57,8 @@ declare const BuildOptionsSchema: z.ZodObject<{
57
57
  }, z.core.$strip>;
58
58
  declare const BuildResultSchema: z.ZodObject<{
59
59
  status: z.ZodEnum<{
60
- error: "error";
61
60
  success: "success";
61
+ error: "error";
62
62
  }>;
63
63
  built: z.ZodArray<z.ZodString>;
64
64
  skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -301,20 +301,20 @@ declare const KeyPublishResultSchema: z.ZodObject<{
301
301
  error: z.ZodOptional<z.ZodString>;
302
302
  }, z.core.$strip>;
303
303
  declare const OverrideSectionSchema: z.ZodEnum<{
304
- host: "host";
304
+ plugins: "plugins";
305
305
  ui: "ui";
306
+ host: "host";
306
307
  api: "api";
307
- plugins: "plugins";
308
308
  }>;
309
309
  declare const RuntimeOverrideTargetBaseSchema: z.ZodEnum<{
310
+ plugins: "plugins";
310
311
  ui: "ui";
311
312
  api: "api";
312
- plugins: "plugins";
313
313
  }>;
314
314
  declare const RuntimeOverrideTargetSchema: z.ZodUnion<readonly [z.ZodEnum<{
315
+ plugins: "plugins";
315
316
  ui: "ui";
316
317
  api: "api";
317
- plugins: "plugins";
318
318
  }>, z.ZodString]>;
319
319
  declare const InitOptionsSchema: z.ZodObject<{
320
320
  extends: z.ZodOptional<z.ZodString>;
@@ -324,10 +324,10 @@ declare const InitOptionsSchema: z.ZodObject<{
324
324
  source: z.ZodOptional<z.ZodString>;
325
325
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
326
326
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
327
- host: "host";
327
+ plugins: "plugins";
328
328
  ui: "ui";
329
+ host: "host";
329
330
  api: "api";
330
- plugins: "plugins";
331
331
  }>>>;
332
332
  noInteractive: z.ZodDefault<z.ZodBoolean>;
333
333
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -348,10 +348,10 @@ declare const InitResultSchema: z.ZodObject<{
348
348
  extends: z.ZodString;
349
349
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
350
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
351
- host: "host";
351
+ plugins: "plugins";
352
352
  ui: "ui";
353
+ host: "host";
353
354
  api: "api";
354
- plugins: "plugins";
355
355
  }>>>;
356
356
  filesCopied: z.ZodNumber;
357
357
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -439,15 +439,15 @@ declare const StatusResultSchema: z.ZodObject<{
439
439
  }, z.core.$strip>;
440
440
  declare const TypesGenOptionsSchema: z.ZodObject<{
441
441
  env: z.ZodOptional<z.ZodEnum<{
442
- production: "production";
443
442
  development: "development";
443
+ production: "production";
444
444
  }>>;
445
445
  dryRun: z.ZodDefault<z.ZodBoolean>;
446
446
  }, z.core.$strip>;
447
447
  declare const TypesGenResultSchema: z.ZodObject<{
448
448
  status: z.ZodEnum<{
449
- error: "error";
450
449
  success: "success";
450
+ error: "error";
451
451
  }>;
452
452
  generated: z.ZodArray<z.ZodString>;
453
453
  fetched: z.ZodArray<z.ZodString>;
@@ -512,8 +512,8 @@ declare const bosContract: {
512
512
  deploy: z.ZodDefault<z.ZodBoolean>;
513
513
  }, z.core.$strip>, z.ZodObject<{
514
514
  status: z.ZodEnum<{
515
- error: "error";
516
515
  success: "success";
516
+ error: "error";
517
517
  }>;
518
518
  built: z.ZodArray<z.ZodString>;
519
519
  skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -758,10 +758,10 @@ declare const bosContract: {
758
758
  source: z.ZodOptional<z.ZodString>;
759
759
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
760
760
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
761
- host: "host";
761
+ plugins: "plugins";
762
762
  ui: "ui";
763
+ host: "host";
763
764
  api: "api";
764
- plugins: "plugins";
765
765
  }>>>;
766
766
  noInteractive: z.ZodDefault<z.ZodBoolean>;
767
767
  noInstall: z.ZodDefault<z.ZodBoolean>;
@@ -777,10 +777,10 @@ declare const bosContract: {
777
777
  extends: z.ZodString;
778
778
  plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
779
779
  overrides: z.ZodOptional<z.ZodArray<z.ZodEnum<{
780
- host: "host";
780
+ plugins: "plugins";
781
781
  ui: "ui";
782
+ host: "host";
782
783
  api: "api";
783
- plugins: "plugins";
784
784
  }>>>;
785
785
  filesCopied: z.ZodNumber;
786
786
  timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -866,14 +866,14 @@ declare const bosContract: {
866
866
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
867
867
  typesGen: _$_orpc_contract0.ContractProcedure<z.ZodObject<{
868
868
  env: z.ZodOptional<z.ZodEnum<{
869
- production: "production";
870
869
  development: "development";
870
+ production: "production";
871
871
  }>>;
872
872
  dryRun: z.ZodDefault<z.ZodBoolean>;
873
873
  }, z.core.$strip>, z.ZodObject<{
874
874
  status: z.ZodEnum<{
875
- error: "error";
876
875
  success: "success";
876
+ error: "error";
877
877
  }>;
878
878
  generated: z.ZodArray<z.ZodString>;
879
879
  fetched: z.ZodArray<z.ZodString>;
package/dist/plugin.cjs CHANGED
@@ -563,6 +563,11 @@ var plugin_default = (0, every_plugin.createPlugin)({
563
563
  hostPort,
564
564
  ssr
565
565
  });
566
+ require_infra.syncGeneratedInfra(deps.configDir, runtimeConfig);
567
+ if (!(0, node_fs.existsSync)((0, node_path.join)(deps.configDir, ".env"))) {
568
+ require_infra.ensureEnvFile(deps.configDir);
569
+ require_infra.loadProjectEnv(deps.configDir);
570
+ }
566
571
  await generateCodeArtifacts(deps.configDir, deps.bosConfig, {
567
572
  env: "development",
568
573
  extendsChain: refreshed?.source.extended,
@@ -640,6 +645,11 @@ var plugin_default = (0, every_plugin.createPlugin)({
640
645
  });
641
646
  require_config.drainConfigWarnings();
642
647
  require_config.resumeWarnings();
648
+ require_infra.syncGeneratedInfra(deps.configDir, runtimeConfig);
649
+ if (!(0, node_fs.existsSync)((0, node_path.join)(deps.configDir, ".env"))) {
650
+ require_infra.ensureEnvFile(deps.configDir);
651
+ require_infra.loadProjectEnv(deps.configDir);
652
+ }
643
653
  pluginEvents.emit("progress", {
644
654
  phase: "generate artifacts",
645
655
  status: "running"