@dsmrt/axiom-cli 1.2.0 → 1.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @dsmrt/axiom-cli
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c941d5d: fix init cli command; fix loadConfigByEnv to allow undefined env
8
+ - Updated dependencies [c941d5d]
9
+ - @dsmrt/axiom-config@1.2.1
10
+
11
+ ## 1.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 5edaee0: load config by env
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [5edaee0]
20
+ - @dsmrt/axiom-config@1.2.0
21
+
3
22
  ## 1.2.0
4
23
 
5
24
  ### Minor Changes
package/dist/bin/axiom.js CHANGED
@@ -237,8 +237,9 @@ const config: Config = {`;
237
237
  account: "${config.account}",
238
238
  region: "${config.region}",
239
239
  profile: "${config.profile}",
240
+ baseParameterPath: "/${config.name}",
240
241
  },
241
- baseParameterPath: "/${config.name}/prod",${hasCustomTypes ? `
242
+ ${hasCustomTypes ? `
242
243
 
243
244
  // Add your custom config properties here
244
245
  // Example:
@@ -260,7 +261,10 @@ const config: Partial<AxiomConfig> = {` : `import type { Config } from "@dsmrt/a
260
261
  const config: Partial<Config> = {`;
261
262
  return `${importStatement}
262
263
  env: "dev",
263
- baseParameterPath: undefined, // Will be auto-generated as /{name}/dev${hasCustomTypes ? `,
264
+ aws: {
265
+ account: "xxx",
266
+ },
267
+ ${hasCustomTypes ? `,
264
268
 
265
269
  // Override custom config properties for dev environment
266
270
  // Example:
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import "../chunk-QRHY3BEA.mjs";
2
+ import "../chunk-ZPJRBDWY.mjs";
@@ -212,8 +212,9 @@ const config: Config = {`;
212
212
  account: "${config.account}",
213
213
  region: "${config.region}",
214
214
  profile: "${config.profile}",
215
+ baseParameterPath: "/${config.name}",
215
216
  },
216
- baseParameterPath: "/${config.name}/prod",${hasCustomTypes ? `
217
+ ${hasCustomTypes ? `
217
218
 
218
219
  // Add your custom config properties here
219
220
  // Example:
@@ -235,7 +236,10 @@ const config: Partial<AxiomConfig> = {` : `import type { Config } from "@dsmrt/a
235
236
  const config: Partial<Config> = {`;
236
237
  return `${importStatement}
237
238
  env: "dev",
238
- baseParameterPath: undefined, // Will be auto-generated as /{name}/dev${hasCustomTypes ? `,
239
+ aws: {
240
+ account: "xxx",
241
+ },
242
+ ${hasCustomTypes ? `,
239
243
 
240
244
  // Override custom config properties for dev environment
241
245
  // Example:
package/dist/index.js CHANGED
@@ -255,8 +255,9 @@ const config: Config = {`;
255
255
  account: "${config.account}",
256
256
  region: "${config.region}",
257
257
  profile: "${config.profile}",
258
+ baseParameterPath: "/${config.name}",
258
259
  },
259
- baseParameterPath: "/${config.name}/prod",${hasCustomTypes ? `
260
+ ${hasCustomTypes ? `
260
261
 
261
262
  // Add your custom config properties here
262
263
  // Example:
@@ -278,7 +279,10 @@ const config: Partial<AxiomConfig> = {` : `import type { Config } from "@dsmrt/a
278
279
  const config: Partial<Config> = {`;
279
280
  return `${importStatement}
280
281
  env: "dev",
281
- baseParameterPath: undefined, // Will be auto-generated as /{name}/dev${hasCustomTypes ? `,
282
+ aws: {
283
+ account: "xxx",
284
+ },
285
+ ${hasCustomTypes ? `,
282
286
 
283
287
  // Override custom config properties for dev environment
284
288
  // Example:
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  SetCommand,
8
8
  awsOptions,
9
9
  commonOptions
10
- } from "./chunk-QRHY3BEA.mjs";
10
+ } from "./chunk-ZPJRBDWY.mjs";
11
11
  export {
12
12
  Config,
13
13
  DeleteCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmrt/axiom-cli",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "axiom cli for managing configs including secrets",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -49,7 +49,7 @@
49
49
  "inquirer": "^8.2.6",
50
50
  "yargs": "^17.7.2",
51
51
  "@dsmrt/axiom-aws-sdk": "^1.0.0",
52
- "@dsmrt/axiom-config": "^1.1.0"
52
+ "@dsmrt/axiom-config": "^1.2.1"
53
53
  },
54
54
  "scripts": {
55
55
  "lint": "biome lint",