@awsless/awsless 0.0.559 → 0.0.560

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
@@ -6931,9 +6931,10 @@ import { createHash as createHash4 } from "crypto";
6931
6931
  import { readFile as readFile4 } from "fs/promises";
6932
6932
  import { join as join15 } from "path";
6933
6933
  import { exec as exec2 } from "promisify-child-process";
6934
- var buildExecutable = async (input, outputPath) => {
6934
+ var buildExecutable = async (input, outputPath, architecture) => {
6935
6935
  const filePath = join15(outputPath, "program");
6936
- const args = ["build", input, "--compile", "--target", "bun-linux-x64-modern", "--outfile", filePath];
6936
+ const target = architecture === "x86_64" ? "bun-linux-x64-modern" : "bun-linux-arm64-modern";
6937
+ const args = ["build", input, "--compile", "--target", target, "--outfile", filePath];
6937
6938
  try {
6938
6939
  await exec2(`bun ${args.join(" ")}`);
6939
6940
  } catch (error) {
@@ -6961,7 +6962,7 @@ var createFargateTask = (parentGroup, ctx, ns, id, local) => {
6961
6962
  const fingerprint = await generateFileHash2(workspace, local.code.file);
6962
6963
  return build3(fingerprint, async (write) => {
6963
6964
  const temp = await createTempFolder(`instance--${name}`);
6964
- const executable = await buildExecutable(local.code.file, temp.path);
6965
+ const executable = await buildExecutable(local.code.file, temp.path, props.architecture);
6965
6966
  await Promise.all([
6966
6967
  //
6967
6968
  write("HASH", executable.hash),
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.559",
3
+ "version": "0.0.560",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -34,22 +34,22 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.1.3",
37
+ "@awsless/cloudwatch": "^0.0.1",
37
38
  "@awsless/clui": "^0.0.7",
38
39
  "@awsless/duration": "^0.0.3",
39
- "@awsless/cloudwatch": "^0.0.1",
40
40
  "@awsless/dynamodb": "^0.2.10",
41
- "@awsless/json": "^0.0.10",
42
41
  "@awsless/iot": "^0.0.3",
43
- "@awsless/s3": "^0.0.21",
44
- "@awsless/redis": "^0.0.14",
45
- "@awsless/validate": "^0.0.19",
42
+ "@awsless/json": "^0.0.10",
46
43
  "@awsless/mqtt": "^0.0.2",
47
- "@awsless/lambda": "^0.0.33",
48
- "@awsless/weak-cache": "^0.0.1",
49
44
  "@awsless/open-search": "^0.0.21",
45
+ "@awsless/lambda": "^0.0.33",
46
+ "@awsless/s3": "^0.0.21",
47
+ "@awsless/redis": "^0.0.14",
50
48
  "@awsless/sqs": "^0.0.8",
51
49
  "@awsless/sns": "^0.0.10",
52
- "@awsless/ssm": "^0.0.7"
50
+ "@awsless/weak-cache": "^0.0.1",
51
+ "@awsless/ssm": "^0.0.7",
52
+ "@awsless/validate": "^0.0.19"
53
53
  },
54
54
  "dependencies": {
55
55
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -134,16 +134,16 @@
134
134
  "zod": "^3.24.2",
135
135
  "zod-to-json-schema": "^3.24.3",
136
136
  "@awsless/big-float": "^0.1.3",
137
+ "@awsless/cloudwatch": "^0.0.1",
137
138
  "@awsless/duration": "^0.0.3",
139
+ "@awsless/clui": "^0.0.7",
138
140
  "@awsless/formation": "^0.0.80",
139
141
  "@awsless/json": "^0.0.10",
142
+ "@awsless/scheduler": "^0.0.4",
140
143
  "@awsless/size": "^0.0.2",
144
+ "@awsless/ts-file-cache": "^0.0.12",
141
145
  "@awsless/graphql": "^0.0.9",
142
- "@awsless/cloudwatch": "^0.0.1",
143
- "@awsless/validate": "^0.0.19",
144
- "@awsless/clui": "^0.0.7",
145
- "@awsless/scheduler": "^0.0.4",
146
- "@awsless/ts-file-cache": "^0.0.12"
146
+ "@awsless/validate": "^0.0.19"
147
147
  },
148
148
  "devDependencies": {
149
149
  "@node-rs/bcrypt": "^1.10.5",