@awsless/awsless 0.0.588 → 0.0.589
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 +16 -10
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/package.json +11 -11
package/dist/bin.js
CHANGED
|
@@ -8287,23 +8287,29 @@ import { loadWorkspace } from "@awsless/ts-file-cache";
|
|
|
8287
8287
|
import { capitalCase as capitalCase3 } from "change-case";
|
|
8288
8288
|
import wildstring from "wildstring";
|
|
8289
8289
|
var buildAssets = async (builders, stackFilters, showResult = false) => {
|
|
8290
|
-
|
|
8290
|
+
const filteredBuilders = builders.filter((builder) => {
|
|
8291
|
+
if (stackFilters && stackFilters.length > 0) {
|
|
8292
|
+
const found = stackFilters.find((f) => wildstring.match(f, builder.stackName));
|
|
8293
|
+
if (!found) {
|
|
8294
|
+
return false;
|
|
8295
|
+
}
|
|
8296
|
+
}
|
|
8297
|
+
return true;
|
|
8298
|
+
});
|
|
8299
|
+
if (filteredBuilders.length === 0) {
|
|
8291
8300
|
return;
|
|
8292
8301
|
}
|
|
8293
8302
|
const results = [];
|
|
8294
8303
|
await log10.task({
|
|
8295
|
-
initialMessage:
|
|
8304
|
+
initialMessage: `Building (1/${filteredBuilders.length}) assets...`,
|
|
8296
8305
|
successMessage: "Done building assets.",
|
|
8297
8306
|
errorMessage: "Failed building assets.",
|
|
8298
|
-
async task() {
|
|
8307
|
+
async task(ctx) {
|
|
8299
8308
|
const workspace = await loadWorkspace(directories.root);
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
continue;
|
|
8305
|
-
}
|
|
8306
|
-
}
|
|
8309
|
+
let i = 0;
|
|
8310
|
+
for (const builder of filteredBuilders) {
|
|
8311
|
+
ctx.updateMessage(`Building (${++i}/${filteredBuilders.length}) assets...`);
|
|
8312
|
+
await new Promise((r) => setTimeout(r, 2e3));
|
|
8307
8313
|
try {
|
|
8308
8314
|
const result = await build(builder.type, builder.name, builder.builder, {
|
|
8309
8315
|
workspace
|
|
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.
|
|
3
|
+
"version": "0.0.589",
|
|
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.5",
|
|
37
|
-
"@awsless/clui": "^0.0.8",
|
|
38
37
|
"@awsless/cloudwatch": "^0.0.1",
|
|
38
|
+
"@awsless/clui": "^0.0.8",
|
|
39
|
+
"@awsless/duration": "^0.0.4",
|
|
39
40
|
"@awsless/dynamodb": "^0.3.8",
|
|
41
|
+
"@awsless/lambda": "^0.0.35",
|
|
40
42
|
"@awsless/iot": "^0.0.3",
|
|
43
|
+
"@awsless/mqtt": "^0.0.2",
|
|
41
44
|
"@awsless/json": "^0.0.10",
|
|
42
|
-
"@awsless/duration": "^0.0.4",
|
|
43
|
-
"@awsless/s3": "^0.0.21",
|
|
44
|
-
"@awsless/lambda": "^0.0.35",
|
|
45
45
|
"@awsless/open-search": "^0.0.21",
|
|
46
|
-
"@awsless/
|
|
46
|
+
"@awsless/s3": "^0.0.21",
|
|
47
47
|
"@awsless/redis": "^0.0.14",
|
|
48
|
-
"@awsless/
|
|
48
|
+
"@awsless/sns": "^0.0.10",
|
|
49
49
|
"@awsless/validate": "^0.1.3",
|
|
50
|
-
"@awsless/
|
|
51
|
-
"@awsless/
|
|
52
|
-
"@awsless/
|
|
50
|
+
"@awsless/sqs": "^0.0.16",
|
|
51
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
52
|
+
"@awsless/ssm": "^0.0.7"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -141,13 +141,13 @@
|
|
|
141
141
|
"zod-to-json-schema": "^3.24.3",
|
|
142
142
|
"@awsless/big-float": "^0.1.5",
|
|
143
143
|
"@awsless/cloudwatch": "^0.0.1",
|
|
144
|
+
"@awsless/clui": "^0.0.8",
|
|
144
145
|
"@awsless/duration": "^0.0.4",
|
|
145
146
|
"@awsless/graphql": "^0.0.9",
|
|
146
147
|
"@awsless/json": "^0.0.10",
|
|
147
148
|
"@awsless/size": "^0.0.2",
|
|
148
149
|
"@awsless/scheduler": "^0.0.4",
|
|
149
150
|
"@awsless/validate": "^0.1.3",
|
|
150
|
-
"@awsless/clui": "^0.0.8",
|
|
151
151
|
"@awsless/ts-file-cache": "^0.0.12"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|