@awsless/awsless 0.0.335 → 0.0.337
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 +4 -22
- package/package.json +8 -8
package/dist/bin.js
CHANGED
|
@@ -1532,16 +1532,8 @@ var readConfigWithStage = async (file, stage) => {
|
|
|
1532
1532
|
debug("Load env file:", color.info(stageFile));
|
|
1533
1533
|
const stageConfig = await readConfig(stageFile);
|
|
1534
1534
|
return merge(config2, stageConfig, {
|
|
1535
|
-
arrayMerge: (
|
|
1536
|
-
|
|
1537
|
-
source.forEach((item, index) => {
|
|
1538
|
-
if (typeof destination[index] === "undefined") {
|
|
1539
|
-
destination[index] = item;
|
|
1540
|
-
} else if (target.indexOf(item) === -1) {
|
|
1541
|
-
destination.push(item);
|
|
1542
|
-
}
|
|
1543
|
-
});
|
|
1544
|
-
return destination;
|
|
1535
|
+
arrayMerge: (_, source) => {
|
|
1536
|
+
return source;
|
|
1545
1537
|
}
|
|
1546
1538
|
});
|
|
1547
1539
|
};
|
|
@@ -2231,20 +2223,10 @@ var createLambdaFunction = (group, ctx, ns, id, local2) => {
|
|
|
2231
2223
|
}
|
|
2232
2224
|
});
|
|
2233
2225
|
return build3(version.hash + props.architecture, async (write) => {
|
|
2234
|
-
const repoName = formatGlobalResourceName({
|
|
2235
|
-
appName: ctx.app.name,
|
|
2236
|
-
resourceType: "function",
|
|
2237
|
-
resourceName: "repository",
|
|
2238
|
-
seperator: "-"
|
|
2239
|
-
});
|
|
2240
2226
|
const platform = props.architecture === "arm64" ? "linux/arm64" : "linux/amd64";
|
|
2241
2227
|
await exec(`docker buildx build --platform ${platform} -t ${name} .`, {
|
|
2242
2228
|
cwd: basePath2
|
|
2243
2229
|
});
|
|
2244
|
-
await exec(
|
|
2245
|
-
`docker tag ${name}:latest ${ctx.accountId}.dkr.ecr.${ctx.appConfig.region}.amazonaws.com/${repoName}:${name}`,
|
|
2246
|
-
{ cwd: basePath2 }
|
|
2247
|
-
);
|
|
2248
2230
|
await write("PLATFORM", platform);
|
|
2249
2231
|
await write("HASH", version.hash);
|
|
2250
2232
|
return {
|
|
@@ -2256,7 +2238,7 @@ var createLambdaFunction = (group, ctx, ns, id, local2) => {
|
|
|
2256
2238
|
repository: ctx.shared.get("function-repository-name"),
|
|
2257
2239
|
hash: Asset.fromFile(getBuildPath("function", name, "HASH")),
|
|
2258
2240
|
name,
|
|
2259
|
-
tag:
|
|
2241
|
+
tag: "latest"
|
|
2260
2242
|
});
|
|
2261
2243
|
code = {
|
|
2262
2244
|
imageUri: image.uri
|
|
@@ -2274,7 +2256,7 @@ var createLambdaFunction = (group, ctx, ns, id, local2) => {
|
|
|
2274
2256
|
});
|
|
2275
2257
|
const archive = await zipFiles(bundle.files);
|
|
2276
2258
|
await Promise.all([
|
|
2277
|
-
write("HASH",
|
|
2259
|
+
write("HASH", bundle.hash),
|
|
2278
2260
|
write("bundle.zip", archive),
|
|
2279
2261
|
...bundle.files.map((file) => write(`files/${file.name}`, file.code)),
|
|
2280
2262
|
...bundle.files.map((file) => file.map && write(`files/${file.name}.map`, file.map))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.337",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@awsless/open-search": "^0.0.15",
|
|
32
31
|
"@awsless/lambda": "^0.0.26",
|
|
32
|
+
"@awsless/open-search": "^0.0.15",
|
|
33
33
|
"@awsless/redis": "^0.0.12",
|
|
34
|
-
"@awsless/sns": "^0.0.7",
|
|
35
34
|
"@awsless/s3": "^0.0.18",
|
|
36
|
-
"@awsless/
|
|
35
|
+
"@awsless/sns": "^0.0.7",
|
|
37
36
|
"@awsless/ssm": "^0.0.7",
|
|
38
|
-
"@awsless/
|
|
37
|
+
"@awsless/sqs": "^0.0.7",
|
|
39
38
|
"@awsless/validate": "^0.0.15",
|
|
39
|
+
"@awsless/iot": "^0.0.2",
|
|
40
40
|
"@awsless/weak-cache": "^0.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
@@ -106,13 +106,13 @@
|
|
|
106
106
|
"zip-a-folder": "^3.1.6",
|
|
107
107
|
"zod": "^3.21.4",
|
|
108
108
|
"zod-to-json-schema": "^3.22.3",
|
|
109
|
-
"@awsless/code": "^0.0.10",
|
|
110
|
-
"@awsless/formation": "^0.0.48",
|
|
111
109
|
"@awsless/duration": "^0.0.1",
|
|
110
|
+
"@awsless/code": "^0.0.10",
|
|
112
111
|
"@awsless/size": "^0.0.1",
|
|
112
|
+
"@awsless/ts-file-cache": "^0.0.1",
|
|
113
113
|
"@awsless/graphql": "^0.0.9",
|
|
114
114
|
"@awsless/validate": "^0.0.15",
|
|
115
|
-
"@awsless/
|
|
115
|
+
"@awsless/formation": "^0.0.48"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|
|
118
118
|
"test": "pnpm code test",
|