@awsless/awsless 0.0.605 → 0.0.606

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/dist/bin.js CHANGED
@@ -4087,10 +4087,10 @@ var functionFeature = defineFeature({
4087
4087
  actions: [
4088
4088
  // Allow all lambda's to invoke any lambda inside your app.
4089
4089
  "lambda:InvokeFunction",
4090
- "lambda:InvokeAsync",
4090
+ "lambda:InvokeAsync"
4091
4091
  // Allow listing and getting lambda info.
4092
- "lambda:ListFunctions",
4093
- "lambda:GetFunction"
4092
+ // 'lambda:ListFunctions',
4093
+ // 'lambda:GetFunction',
4094
4094
  ],
4095
4095
  resources: [`arn:aws:lambda:*:*:function:${ctx.appConfig.name}--*`]
4096
4096
  });
@@ -9488,13 +9488,12 @@ var auth = (program2) => {
9488
9488
  // src/cli/command/bind.ts
9489
9489
  import { log as log22 } from "@awsless/clui";
9490
9490
  import { constantCase as constantCase15 } from "change-case";
9491
- import { spawn } from "child_process";
9492
9491
  var bind = (program2) => {
9493
9492
  program2.command("bind").argument("[command...]", "The command to execute").option("--config <string...>", "List of config values that will be accessable", (v) => v.split(",")).description(`Bind your site environment variables to a command`).action(async (commands9 = [], opts) => {
9494
9493
  await layout("bind", async ({ appConfig, stackConfigs }) => {
9495
9494
  const region = appConfig.region;
9496
9495
  const profile = appConfig.profile;
9497
- const credentials = await getCredentials(appConfig.profile);
9496
+ const credentials = await getCredentials(profile);
9498
9497
  const accountId = await getAccountId(credentials, region);
9499
9498
  const { app, binds } = createApp({ appConfig, stackConfigs, accountId });
9500
9499
  const { workspace } = await createWorkSpace({
@@ -9525,7 +9524,8 @@ var bind = (program2) => {
9525
9524
  }
9526
9525
  const command = commands9.join(" ");
9527
9526
  const freshCred = await credentials();
9528
- spawn(command, {
9527
+ console.log("");
9528
+ const instance = Bun.spawn([command], {
9529
9529
  env: {
9530
9530
  // Pass the process env vars
9531
9531
  ...process.env,
@@ -9543,9 +9543,11 @@ var bind = (program2) => {
9543
9543
  AWS_SECRET_ACCESS_KEY: freshCred.secretAccessKey,
9544
9544
  AWS_SESSION_TOKEN: freshCred.sessionToken
9545
9545
  },
9546
- stdio: "inherit",
9547
- shell: true
9546
+ stdout: "inherit",
9547
+ stderr: "inherit"
9548
9548
  });
9549
+ await instance.exited;
9550
+ process.exit(0);
9549
9551
  return;
9550
9552
  });
9551
9553
  });
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.605",
3
+ "version": "0.0.606",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -33,21 +33,21 @@
33
33
  ]
34
34
  },
35
35
  "peerDependencies": {
36
- "@awsless/big-float": "^0.1.5",
37
36
  "@awsless/cloudwatch": "^0.0.1",
37
+ "@awsless/big-float": "^0.1.5",
38
+ "@awsless/clui": "^0.0.8",
38
39
  "@awsless/duration": "^0.0.4",
39
40
  "@awsless/dynamodb": "^0.3.8",
40
- "@awsless/clui": "^0.0.8",
41
- "@awsless/iot": "^0.0.3",
42
- "@awsless/json": "^0.0.10",
43
41
  "@awsless/lambda": "^0.0.35",
44
- "@awsless/open-search": "^0.0.21",
45
- "@awsless/mqtt": "^0.0.2",
42
+ "@awsless/json": "^0.0.10",
46
43
  "@awsless/redis": "^0.0.14",
47
- "@awsless/s3": "^0.0.21",
48
44
  "@awsless/sns": "^0.0.10",
49
45
  "@awsless/sqs": "^0.0.16",
46
+ "@awsless/open-search": "^0.0.21",
47
+ "@awsless/iot": "^0.0.3",
48
+ "@awsless/s3": "^0.0.21",
50
49
  "@awsless/validate": "^0.1.3",
50
+ "@awsless/mqtt": "^0.0.2",
51
51
  "@awsless/ssm": "^0.0.7",
52
52
  "@awsless/weak-cache": "^0.0.1"
53
53
  },
@@ -140,15 +140,15 @@
140
140
  "zod": "^3.24.2",
141
141
  "zod-to-json-schema": "^3.24.3",
142
142
  "@awsless/big-float": "^0.1.5",
143
- "@awsless/clui": "^0.0.8",
144
143
  "@awsless/cloudwatch": "^0.0.1",
145
144
  "@awsless/duration": "^0.0.4",
146
145
  "@awsless/graphql": "^0.0.9",
147
146
  "@awsless/json": "^0.0.10",
148
- "@awsless/size": "^0.0.2",
149
147
  "@awsless/scheduler": "^0.0.4",
150
- "@awsless/ts-file-cache": "^0.0.12",
151
- "@awsless/validate": "^0.1.3"
148
+ "@awsless/validate": "^0.1.3",
149
+ "@awsless/size": "^0.0.2",
150
+ "@awsless/clui": "^0.0.8",
151
+ "@awsless/ts-file-cache": "^0.0.12"
152
152
  },
153
153
  "devDependencies": {
154
154
  "@hono/node-server": "1.19.9",