@awsless/awsless 0.0.52 → 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.
Files changed (2) hide show
  1. package/dist/bin.js +4 -1
  2. package/package.json +3 -3
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");
@@ -850,7 +852,8 @@ var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "default
850
852
  if (item.type !== "chunk") {
851
853
  continue;
852
854
  }
853
- const name = item.isEntry ? format2 === "esm" ? "index.mjs" : "index.js" : item.fileName;
855
+ const base = item.isEntry ? "index" : item.name;
856
+ const name = `${base}.${ext}`;
854
857
  const code = Buffer.from(item.code, "utf8");
855
858
  const map = item.map ? Buffer.from(item.map.toString(), "utf8") : void 0;
856
859
  hash.update(code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -25,8 +25,8 @@
25
25
  "peerDependencies": {
26
26
  "@awsless/lambda": "^0.0.6",
27
27
  "@awsless/sns": "^0.0.6",
28
- "@awsless/ssm": "^0.0.7",
29
- "@awsless/sqs": "^0.0.6"
28
+ "@awsless/sqs": "^0.0.6",
29
+ "@awsless/ssm": "^0.0.7"
30
30
  },
31
31
  "dependencies": {
32
32
  "@aws-sdk/client-cloudformation": "^3.369.0",