@awsless/awsless 0.0.583 → 0.0.585
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/README.MD +120 -90
- package/dist/app.json +1 -1
- package/dist/bin.d.ts +1 -1
- package/dist/bin.js +2308 -1973
- package/dist/build-json-schema.js +382 -364
- package/dist/prebuild/icon/HASH +1 -1
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/HASH +1 -1
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/rpc/HASH +1 -1
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/prebuild.js +7 -7
- package/dist/server.d.ts +1 -1
- package/dist/stack.json +1 -1
- package/package.json +31 -26
package/dist/prebuild/icon/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d2144cd2fb75094e561f9604606984b3cf8ae179
|
|
Binary file
|
package/dist/prebuild/image/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
459f887cd6b8117a524d76a5e1f11224586dc56e
|
|
Binary file
|
package/dist/prebuild/rpc/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9737a7bc89cf998c23ff5f3a2173040adfb7443e
|
|
Binary file
|
package/dist/prebuild.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/prebuild.ts
|
|
2
2
|
import { mkdir } from "fs/promises";
|
|
3
|
-
import {
|
|
4
|
-
import { fileURLToPath } from "url";
|
|
3
|
+
import { join as join2 } from "path";
|
|
5
4
|
|
|
6
5
|
// src/feature/function/prebuild.ts
|
|
7
6
|
import { days, seconds, toDays, toSeconds } from "@awsless/duration";
|
|
8
|
-
import { $, Future, resolveInputs } from "@awsless/formation";
|
|
9
7
|
import { mebibytes, toMebibytes } from "@awsless/size";
|
|
8
|
+
import { aws } from "@terraforge/aws";
|
|
9
|
+
import { Future, resolveInputs } from "@terraforge/core";
|
|
10
10
|
import { pascalCase } from "change-case";
|
|
11
11
|
import { writeFile } from "fs/promises";
|
|
12
12
|
import { join } from "path";
|
|
@@ -28,7 +28,7 @@ var color = {
|
|
|
28
28
|
primary: chalk.bold.hex("#FF9000"),
|
|
29
29
|
// primary: chalk.bold.magentaBright,
|
|
30
30
|
// title: chalk.white,
|
|
31
|
-
|
|
31
|
+
normal: chalk.reset.white,
|
|
32
32
|
label: chalk.reset.white.bold,
|
|
33
33
|
dim: chalk.dim,
|
|
34
34
|
line: chalk.black,
|
|
@@ -166,14 +166,14 @@ var prebuild = async (file, output, external = []) => {
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// src/prebuild.ts
|
|
169
|
-
var
|
|
169
|
+
var cwd = join2(process.cwd(), "./dist");
|
|
170
170
|
var builds = {
|
|
171
171
|
rpc: "../src/feature/rpc/server/handle.ts",
|
|
172
172
|
image: "../src/feature/image/server/handle.ts",
|
|
173
173
|
icon: "../src/feature/icon/server/handle.ts"
|
|
174
174
|
};
|
|
175
175
|
for (const [name, file] of Object.entries(builds)) {
|
|
176
|
-
const output = join2(
|
|
176
|
+
const output = join2(cwd, "prebuild", name);
|
|
177
177
|
await mkdir(output, { recursive: true });
|
|
178
|
-
await prebuild(join2(
|
|
178
|
+
await prebuild(join2(cwd, file), output, ["sharp"]);
|
|
179
179
|
}
|