@awsless/awsless 0.0.53 → 0.0.54
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 +2 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -838,10 +838,12 @@ var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "default
|
|
|
838
838
|
json()
|
|
839
839
|
]
|
|
840
840
|
});
|
|
841
|
+
const ext = format2 === "esm" ? "mjs" : "js";
|
|
841
842
|
const result = await bundle.generate({
|
|
842
843
|
format: format2,
|
|
843
844
|
sourcemap: "hidden",
|
|
844
845
|
exports: "auto",
|
|
846
|
+
entryFileNames: `[name].${ext}`,
|
|
845
847
|
manualChunks: {}
|
|
846
848
|
});
|
|
847
849
|
const hash = createHash("sha1");
|
|
@@ -851,7 +853,6 @@ var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "default
|
|
|
851
853
|
continue;
|
|
852
854
|
}
|
|
853
855
|
const base = item.isEntry ? "index" : item.name;
|
|
854
|
-
const ext = format2 === "esm" ? "mjs" : "js";
|
|
855
856
|
const name = `${base}.${ext}`;
|
|
856
857
|
const code = Buffer.from(item.code, "utf8");
|
|
857
858
|
const map = item.map ? Buffer.from(item.map.toString(), "utf8") : void 0;
|