@fastly/compute-js-static-publish 7.0.0 → 7.0.2

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/README.md CHANGED
@@ -17,7 +17,7 @@ This CLI tool helps you:
17
17
  Create a directory for your project, place your static files in `./public`, then type:
18
18
 
19
19
  ```sh
20
- npx @fastly/compute-js-static-publish --root-dir=./public --kv-store-name=site-content
20
+ npx @fastly/compute-js-static-publish@latest --root-dir=./public --kv-store-name=site-content
21
21
  ```
22
22
 
23
23
  ### 🔧 Local Preview
package/README.short.md CHANGED
@@ -17,7 +17,7 @@ This CLI tool helps you:
17
17
  Create a directory for your project, place your static files in `./public`, then type:
18
18
 
19
19
  ```sh
20
- npx @fastly/compute-js-static-publish --root-dir=./public --kv-store-name=site-content
20
+ npx @fastly/compute-js-static-publish@latest --root-dir=./public --kv-store-name=site-content
21
21
  ```
22
22
 
23
23
  ### 🔧 Local Preview
@@ -16,7 +16,7 @@ function help() {
16
16
  console.log(`\
17
17
 
18
18
  Usage:
19
- npx @fastly/compute-js-static-publish [options]
19
+ npx @fastly/compute-js-static-publish@latest [options]
20
20
 
21
21
  Description:
22
22
  Scaffold a new Compute app configured for static publishing.
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/cli/util/files.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,YAItD;AAoCD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,UAG3C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,WAU9C;AAED,wBAAsB,wBAAwB,CAAC,QAAQ,EAAE,MAAM;UAQlC,MAAM;UAAQ,MAAM;GAgBhD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,UAE5C;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,UAG1D"}
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/cli/util/files.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,YAItD;AAgDD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,UAG3C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,WAU9C;AAED,wBAAsB,wBAAwB,CAAC,QAAQ,EAAE,MAAM;UAQlC,MAAM;UAAQ,MAAM;GAgBhD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,UAE5C;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,UAG1D"}
@@ -31,6 +31,21 @@ function enumerateFilesWorker(results, dir, opts) {
31
31
  if (entry.isDirectory()) {
32
32
  enumerateFilesWorker(results, fullpath, opts);
33
33
  }
34
+ else if (entry.isSymbolicLink()) {
35
+ try {
36
+ const stats = fs.statSync(fullpath);
37
+ if (stats.isDirectory()) {
38
+ enumerateFilesWorker(results, fullpath, opts);
39
+ }
40
+ else if (stats.isFile()) {
41
+ results.push(fullpath);
42
+ }
43
+ }
44
+ catch (err) {
45
+ // Skip broken symlinks
46
+ continue;
47
+ }
48
+ }
34
49
  else {
35
50
  results.push(fullpath);
36
51
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fastly/compute-js-static-publish",
3
3
  "type": "module",
4
- "version": "7.0.0",
4
+ "version": "7.0.2",
5
5
  "description": "Static Publisher for Fastly Compute JavaScript",
6
6
  "main": "build/index.js",
7
7
  "exports": {