@awsless/cli 0.1.30 → 0.1.32
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/app.stage.json +1 -1
- package/dist/bin.js +20 -15
- package/dist/stack.stage.json +1 -1
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -146374,21 +146374,26 @@ var bundleTypeScriptWithRolldown = async (props) => {
|
|
|
146374
146374
|
]
|
|
146375
146375
|
});
|
|
146376
146376
|
const extension2 = format3 === "esm" ? "mjs" : "js";
|
|
146377
|
-
|
|
146378
|
-
|
|
146379
|
-
|
|
146380
|
-
|
|
146381
|
-
|
|
146382
|
-
|
|
146383
|
-
|
|
146384
|
-
|
|
146385
|
-
|
|
146386
|
-
|
|
146377
|
+
let result;
|
|
146378
|
+
try {
|
|
146379
|
+
result = await bundle.generate({
|
|
146380
|
+
format: format3,
|
|
146381
|
+
sourcemap: "hidden",
|
|
146382
|
+
exports: "auto",
|
|
146383
|
+
minify,
|
|
146384
|
+
entryFileNames: `index.${extension2}`,
|
|
146385
|
+
chunkFileNames: (chunk) => {
|
|
146386
|
+
const encodedRouteKey = chunk.facadeModuleId?.split(ROUTE_MODULE_QUERY)[1];
|
|
146387
|
+
if (!encodedRouteKey) {
|
|
146388
|
+
return `[name].${extension2}`;
|
|
146389
|
+
}
|
|
146390
|
+
const routeKey = decodeURIComponent(encodedRouteKey);
|
|
146391
|
+
return `${routeKey.replaceAll(":", "--")}.${extension2}`;
|
|
146387
146392
|
}
|
|
146388
|
-
|
|
146389
|
-
|
|
146390
|
-
|
|
146391
|
-
}
|
|
146393
|
+
});
|
|
146394
|
+
} finally {
|
|
146395
|
+
await bundle.close();
|
|
146396
|
+
}
|
|
146392
146397
|
const hash3 = createHash5("sha1");
|
|
146393
146398
|
const files = [];
|
|
146394
146399
|
for (const item of result.output) {
|
|
@@ -166713,7 +166718,7 @@ var searchFeature = defineFeature({
|
|
|
166713
166718
|
const access2 = new aws.opensearchserverless.AccessPolicy(group, "access", {
|
|
166714
166719
|
name,
|
|
166715
166720
|
type: "data",
|
|
166716
|
-
policy: accessRole.arn.pipe((arn) => dataAccessPolicy([arn]))
|
|
166721
|
+
policy: accessRole.arn.pipe((arn) => dataAccessPolicy([arn, `arn:aws:iam::${ctx.accountId}:root`]))
|
|
166717
166722
|
});
|
|
166718
166723
|
ctx.onReady(() => {
|
|
166719
166724
|
const roles = ctx.shared.list("function", "role");
|