carlin 2.4.0 → 2.5.0

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/index.mjs +7 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -557,9 +557,15 @@ const uploadFileToS3 = async ({ bucket, contentType, file, filePath, key }) => {
557
557
  };
558
558
  /**
559
559
  * Get all files inside $directory.
560
+ *
561
+ * `dot: true` because a static site's dot directories are content: RFC 8615
562
+ * puts the files agents and clients fetch by convention under `.well-known/`,
563
+ * and glob skips a segment starting with a dot by default. Without it those
564
+ * files are absent from the deployed site and nothing reports it — the deploy
565
+ * succeeds, the path 404s.
560
566
  */
561
567
  const getAllFilesInsideADirectory = async ({ directory }) => {
562
- return (await glob(`${directory}/**/*`)).filter((item) => {
568
+ return (await glob(`${directory}/**/*`, { dot: true })).filter((item) => {
563
569
  return fs.lstatSync(item).isFile();
564
570
  });
565
571
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carlin",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://ttoss.dev/docs/carlin/",
@@ -57,8 +57,8 @@
57
57
  "ts-node": "^10.9.2",
58
58
  "uglify-js": "^3.19.3",
59
59
  "yargs": "^17.7.2",
60
- "@ttoss/cloudformation": "^0.14.0",
61
60
  "@ttoss/read-config-file": "^2.3.0",
61
+ "@ttoss/cloudformation": "^0.14.0",
62
62
  "@ttoss/config": "^1.38.0"
63
63
  },
64
64
  "devDependencies": {