@awsless/awsless 0.0.607 → 0.0.609
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 +14 -18
- 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 +13 -13
package/dist/bin.js
CHANGED
|
@@ -5103,20 +5103,6 @@ var getContentType = (file) => {
|
|
|
5103
5103
|
|
|
5104
5104
|
// src/feature/site/index.ts
|
|
5105
5105
|
import { constantCase as constantCase10 } from "change-case";
|
|
5106
|
-
|
|
5107
|
-
// src/util/exec.ts
|
|
5108
|
-
import { exec } from "promisify-child-process";
|
|
5109
|
-
var execCommand = async ({ cwd, env, command }) => {
|
|
5110
|
-
await exec(command, {
|
|
5111
|
-
cwd,
|
|
5112
|
-
env: {
|
|
5113
|
-
...process.env,
|
|
5114
|
-
...env ?? {}
|
|
5115
|
-
}
|
|
5116
|
-
});
|
|
5117
|
-
};
|
|
5118
|
-
|
|
5119
|
-
// src/feature/site/index.ts
|
|
5120
5106
|
var siteFeature = defineFeature({
|
|
5121
5107
|
name: "site",
|
|
5122
5108
|
onStack(ctx) {
|
|
@@ -5141,6 +5127,7 @@ var siteFeature = defineFeature({
|
|
|
5141
5127
|
const credentials = await credentialProvider();
|
|
5142
5128
|
const cwd = join11(directories.root, dirname6(ctx.stackConfig.file));
|
|
5143
5129
|
const env = {
|
|
5130
|
+
...process.env,
|
|
5144
5131
|
// Pass the app config name
|
|
5145
5132
|
APP: ctx.appConfig.name,
|
|
5146
5133
|
// Basic AWS info
|
|
@@ -5154,11 +5141,20 @@ var siteFeature = defineFeature({
|
|
|
5154
5141
|
for (const name2 of props.build?.configs ?? []) {
|
|
5155
5142
|
env[`CONFIG_${constantCase10(name2)}`] = name2;
|
|
5156
5143
|
}
|
|
5157
|
-
|
|
5144
|
+
for (const name2 of ctx.stackConfig.configs ?? []) {
|
|
5145
|
+
env[`CONFIG_${constantCase10(name2)}`] = name2;
|
|
5146
|
+
}
|
|
5147
|
+
const instance = Bun.spawn(buildProps.command.split(" "), {
|
|
5158
5148
|
cwd,
|
|
5159
|
-
|
|
5160
|
-
|
|
5149
|
+
env,
|
|
5150
|
+
stdout: "inherit",
|
|
5151
|
+
stderr: "inherit"
|
|
5161
5152
|
});
|
|
5153
|
+
await instance.exited;
|
|
5154
|
+
if (instance.exitCode !== null && instance.exitCode > 0) {
|
|
5155
|
+
console.log(instance.stderr);
|
|
5156
|
+
throw new Error("Site build failed");
|
|
5157
|
+
}
|
|
5162
5158
|
await write("HASH", fingerprint);
|
|
5163
5159
|
return {
|
|
5164
5160
|
size: "n/a"
|
|
@@ -9525,7 +9521,7 @@ var bind = (program2) => {
|
|
|
9525
9521
|
}
|
|
9526
9522
|
const freshCred = await credentials();
|
|
9527
9523
|
console.log(chalk4.black(`\u2502`));
|
|
9528
|
-
console.log(chalk4.black(`\u2514
|
|
9524
|
+
console.log(chalk4.black(`\u2514 ${chalk4.yellow(commands9.join(" "))}`));
|
|
9529
9525
|
console.log("");
|
|
9530
9526
|
const instance = Bun.spawn(commands9, {
|
|
9531
9527
|
// cwd: process.cwd(),
|
|
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.609",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@awsless/big-float": "^0.1.5",
|
|
37
36
|
"@awsless/cloudwatch": "^0.0.1",
|
|
38
|
-
"@awsless/
|
|
37
|
+
"@awsless/big-float": "^0.1.5",
|
|
39
38
|
"@awsless/clui": "^0.0.8",
|
|
40
|
-
"@awsless/
|
|
39
|
+
"@awsless/duration": "^0.0.4",
|
|
40
|
+
"@awsless/json": "^0.0.10",
|
|
41
41
|
"@awsless/iot": "^0.0.3",
|
|
42
|
-
"@awsless/mqtt": "^0.0.2",
|
|
43
42
|
"@awsless/open-search": "^0.0.21",
|
|
44
|
-
"@awsless/s3": "^0.0.21",
|
|
45
43
|
"@awsless/redis": "^0.0.14",
|
|
44
|
+
"@awsless/lambda": "^0.0.35",
|
|
45
|
+
"@awsless/mqtt": "^0.0.2",
|
|
46
|
+
"@awsless/dynamodb": "^0.3.8",
|
|
47
|
+
"@awsless/s3": "^0.0.21",
|
|
46
48
|
"@awsless/sqs": "^0.0.16",
|
|
47
49
|
"@awsless/sns": "^0.0.10",
|
|
48
|
-
"@awsless/lambda": "^0.0.35",
|
|
49
|
-
"@awsless/duration": "^0.0.4",
|
|
50
|
-
"@awsless/validate": "^0.1.3",
|
|
51
50
|
"@awsless/ssm": "^0.0.7",
|
|
51
|
+
"@awsless/validate": "^0.1.3",
|
|
52
52
|
"@awsless/weak-cache": "^0.0.1"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
@@ -140,14 +140,14 @@
|
|
|
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
|
+
"@awsless/duration": "^0.0.4",
|
|
143
145
|
"@awsless/cloudwatch": "^0.0.1",
|
|
144
146
|
"@awsless/json": "^0.0.10",
|
|
145
|
-
"@awsless/duration": "^0.0.4",
|
|
146
|
-
"@awsless/graphql": "^0.0.9",
|
|
147
|
-
"@awsless/clui": "^0.0.8",
|
|
148
|
-
"@awsless/size": "^0.0.2",
|
|
149
147
|
"@awsless/scheduler": "^0.0.4",
|
|
150
148
|
"@awsless/ts-file-cache": "^0.0.12",
|
|
149
|
+
"@awsless/size": "^0.0.2",
|
|
150
|
+
"@awsless/graphql": "^0.0.9",
|
|
151
151
|
"@awsless/validate": "^0.1.3"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|