@awsless/awsless 0.0.352 → 0.0.354

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.
Files changed (2) hide show
  1. package/dist/bin.js +6 -4
  2. package/package.json +8 -8
package/dist/bin.js CHANGED
@@ -14323,7 +14323,7 @@ import { unwrap as unwrap3 } from "@awsless/formation";
14323
14323
  import { note as note3 } from "@clack/prompts";
14324
14324
  import { spawn } from "child_process";
14325
14325
  var bind = (program2) => {
14326
- program2.command("bind").argument("<command...>", "The command to execute").option("--configs <string...>", "List of config values that will be accessable").description(`Bind your site environment variables to a command`).action(async (commands7) => {
14326
+ program2.command("bind").argument("<command...>", "The command to execute").option("--configs <string...>", "List of config values that will be accessable", []).description(`Bind your site environment variables to a command`).action(async (commands7, opts) => {
14327
14327
  await layout("bind", async ({ appConfig, stackConfigs }) => {
14328
14328
  const region = appConfig.region;
14329
14329
  const credentials = getCredentials(appConfig.profile);
@@ -14351,9 +14351,11 @@ var bind = (program2) => {
14351
14351
  ...process.env,
14352
14352
  // Pass the site bind env vars
14353
14353
  ...env,
14354
- // Pass in
14355
- CONFIG: (program2.opts().configs ?? []).join(","),
14356
- // Basic info
14354
+ // Pass the app config name
14355
+ APP: appConfig.name,
14356
+ // Pass in the config values to load
14357
+ CONFIG: opts.configs.join(","),
14358
+ // Basic AWS info
14357
14359
  AWS_REGION: appConfig.region,
14358
14360
  AWS_ACCOUNT_ID: accountId,
14359
14361
  // Give AWS access
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.352",
3
+ "version": "0.0.354",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -31,13 +31,13 @@
31
31
  "@awsless/iot": "^0.0.2",
32
32
  "@awsless/lambda": "^0.0.26",
33
33
  "@awsless/open-search": "^0.0.15",
34
- "@awsless/redis": "^0.0.12",
35
- "@awsless/s3": "^0.0.18",
36
34
  "@awsless/sns": "^0.0.7",
35
+ "@awsless/s3": "^0.0.18",
37
36
  "@awsless/sqs": "^0.0.7",
37
+ "@awsless/redis": "^0.0.12",
38
38
  "@awsless/ssm": "^0.0.7",
39
- "@awsless/validate": "^0.0.15",
40
- "@awsless/weak-cache": "^0.0.1"
39
+ "@awsless/weak-cache": "^0.0.1",
40
+ "@awsless/validate": "^0.0.15"
41
41
  },
42
42
  "dependencies": {
43
43
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -108,12 +108,12 @@
108
108
  "zod": "^3.21.4",
109
109
  "zod-to-json-schema": "^3.22.3",
110
110
  "@awsless/code": "^0.0.10",
111
- "@awsless/duration": "^0.0.1",
112
111
  "@awsless/formation": "^0.0.53",
112
+ "@awsless/duration": "^0.0.1",
113
113
  "@awsless/graphql": "^0.0.9",
114
- "@awsless/size": "^0.0.1",
114
+ "@awsless/validate": "^0.0.15",
115
115
  "@awsless/ts-file-cache": "^0.0.9",
116
- "@awsless/validate": "^0.0.15"
116
+ "@awsless/size": "^0.0.1"
117
117
  },
118
118
  "scripts": {
119
119
  "test": "pnpm code test",