@awsless/awsless 0.0.53 → 0.0.55

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 +5 -5
  2. package/package.json +2 -2
package/dist/bin.js CHANGED
@@ -838,11 +838,14 @@ 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",
845
- manualChunks: {}
846
+ manualChunks: {},
847
+ entryFileNames: `index.${ext}`,
848
+ chunkFileNames: `[name].${ext}`
846
849
  });
847
850
  const hash = createHash("sha1");
848
851
  const files = [];
@@ -850,14 +853,11 @@ var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "default
850
853
  if (item.type !== "chunk") {
851
854
  continue;
852
855
  }
853
- const base = item.isEntry ? "index" : item.name;
854
- const ext = format2 === "esm" ? "mjs" : "js";
855
- const name = `${base}.${ext}`;
856
856
  const code = Buffer.from(item.code, "utf8");
857
857
  const map = item.map ? Buffer.from(item.map.toString(), "utf8") : void 0;
858
858
  hash.update(code);
859
859
  files.push({
860
- name,
860
+ name: item.fileName,
861
861
  code,
862
862
  map
863
863
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -23,9 +23,9 @@
23
23
  }
24
24
  },
25
25
  "peerDependencies": {
26
- "@awsless/lambda": "^0.0.6",
27
26
  "@awsless/sns": "^0.0.6",
28
27
  "@awsless/sqs": "^0.0.6",
28
+ "@awsless/lambda": "^0.0.6",
29
29
  "@awsless/ssm": "^0.0.7"
30
30
  },
31
31
  "dependencies": {