dcl-ops-lib 5.23.3 → 5.23.4

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.
@@ -20,5 +20,12 @@ export declare type StaticWebsite = {
20
20
  * Default: false
21
21
  */
22
22
  unprotect?: boolean;
23
+ /**
24
+ * Delete EVERYTHING from the buckets, leave always in false until
25
+ * deletion of buckets is required.
26
+ *
27
+ * Default: false
28
+ */
29
+ destroy?: boolean;
23
30
  priceClass?: "PriceClass_All" | "PriceClass_200" | "PriceClass_100";
24
31
  };
package/buildStatic.js CHANGED
@@ -30,6 +30,7 @@ function buildStatic(staticSite) {
30
30
  indexDocument: "index.html",
31
31
  errorDocument: (_a = staticSite.defaultPath) !== null && _a !== void 0 ? _a : "404.html",
32
32
  },
33
+ forceDestroy: staticSite.destroy === true
33
34
  };
34
35
  if (staticSite.corsRules !== undefined) {
35
36
  Object.assign(bucketInfo, { corsRules: staticSite.corsRules });
@@ -40,6 +41,7 @@ function buildStatic(staticSite) {
40
41
  // logsBucket is an S3 bucket that will contain the CDN's request logs.
41
42
  const logsBucket = new aws.s3.Bucket(slug + "logs", {
42
43
  acl: "private",
44
+ forceDestroy: staticSite.destroy === true
43
45
  }, {
44
46
  protect,
45
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "5.23.3",
3
+ "version": "5.23.4",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* .",
6
6
  "clean": "rm *.d.ts *.js *.js.map"