silgi 0.10.1 → 0.10.3

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,4 +1,4 @@
1
- const version = "0.10.1";
1
+ const version = "0.10.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
package/dist/cli/env.mjs CHANGED
@@ -80,7 +80,7 @@ async function prepareEnv(silgiConfig) {
80
80
  return;
81
81
  initialized = true;
82
82
  const customEnvironments = silgiConfig.environments;
83
- const environment = await p.select({
83
+ const environment = silgiConfig.activeEnvironment ? silgiConfig.activeEnvironment : await p.select({
84
84
  message: "Select an environment",
85
85
  options: customEnvironments?.length > 0 ? customEnvironments.map((env) => ({
86
86
  label: env.fileName,
@@ -54,6 +54,10 @@ const prepare = defineCommand({
54
54
  stub: {
55
55
  type: "boolean",
56
56
  description: "Run in silgi development mode"
57
+ },
58
+ env: {
59
+ type: "string",
60
+ description: "The environment to use"
57
61
  }
58
62
  },
59
63
  async run({ args }) {
@@ -63,7 +67,8 @@ const prepare = defineCommand({
63
67
  dev: args.stub,
64
68
  stub: args.stub,
65
69
  preset: args.preset,
66
- commandType: "prepare"
70
+ commandType: "prepare",
71
+ activeEnvironment: args.env
67
72
  });
68
73
  await prepare$1();
69
74
  await writeTypesAndFiles(silgi);
@@ -1511,6 +1511,7 @@ async function createSilgiCLI(config = {}, opts = {}) {
1511
1511
  await silgi.unimport.init();
1512
1512
  }
1513
1513
  await registerModuleExportScan(silgi);
1514
+ await writeScanFiles(silgi);
1514
1515
  return silgi;
1515
1516
  }
1516
1517
 
@@ -1,4 +1,4 @@
1
- const version = "0.10.1";
1
+ const version = "0.10.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.10.1";
1
+ const version = "0.10.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -556,6 +556,7 @@ interface SilgiCLIOptions extends PresetOptions {
556
556
  };
557
557
  commandType: CommandType;
558
558
  environments: DotenvOptions$1[];
559
+ activeEnvironment: string;
559
560
  envOptions: EnvOptions$1;
560
561
  runtimeConfig: SilgiRuntimeOptions & {
561
562
  [key: string]: any;
@@ -556,6 +556,7 @@ interface SilgiCLIOptions extends PresetOptions {
556
556
  };
557
557
  commandType: CommandType;
558
558
  environments: DotenvOptions$1[];
559
+ activeEnvironment: string;
559
560
  envOptions: EnvOptions$1;
560
561
  runtimeConfig: SilgiRuntimeOptions & {
561
562
  [key: string]: any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.10.1",
4
+ "version": "0.10.3",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {