@storm-software/cloudflare-tools 0.70.49 → 0.71.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 (51) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +9 -2
  3. package/dist/chunk-7ESZB4KW.mjs +220 -0
  4. package/dist/{chunk-6KHWP2MO.js → chunk-BPUFICBM.js} +2 -2
  5. package/dist/{chunk-3JEOBMM5.mjs → chunk-C6B32MBV.mjs} +12 -8
  6. package/dist/{chunk-D4JUMEIC.js → chunk-DRYNN63F.js} +7 -6
  7. package/dist/{chunk-2B7ISOXH.mjs → chunk-J2DOKDIF.mjs} +8 -7
  8. package/dist/{chunk-UEJFDB6Y.mjs → chunk-QN6OKPMU.mjs} +1 -1
  9. package/dist/chunk-VHMJXOF4.js +220 -0
  10. package/dist/{chunk-YAUK66IM.js → chunk-W5IPHIXB.js} +11 -7
  11. package/dist/{chunk-BIFOD6C3.mjs → chunk-XDQBFBX4.mjs} +1 -1
  12. package/dist/{chunk-Y5VPR2KX.mjs → chunk-ZFJIFXOW.mjs} +4 -4
  13. package/dist/executors.d.mts +1 -1
  14. package/dist/executors.d.ts +1 -1
  15. package/dist/executors.js +2 -2
  16. package/dist/executors.mjs +4 -4
  17. package/dist/generators.js +3 -3
  18. package/dist/generators.mjs +3 -3
  19. package/dist/index.d.mts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +5 -5
  22. package/dist/index.mjs +6 -6
  23. package/dist/schema.d-elsO8UQp.d.mts +88 -0
  24. package/dist/schema.d-elsO8UQp.d.ts +88 -0
  25. package/dist/src/executors/cloudflare-publish/executor.js +1 -1
  26. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  27. package/dist/src/executors/r2-upload-publish/executor.d.mts +1 -1
  28. package/dist/src/executors/r2-upload-publish/executor.d.ts +1 -1
  29. package/dist/src/executors/r2-upload-publish/executor.js +2 -2
  30. package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
  31. package/dist/src/executors/r2-upload-publish/schema.d.ts +86 -7
  32. package/dist/src/executors/r2-upload-publish/schema.json +63 -22
  33. package/dist/src/executors/serve/executor.js +2 -2
  34. package/dist/src/executors/serve/executor.mjs +2 -2
  35. package/dist/src/generators/init/generator.js +2 -2
  36. package/dist/src/generators/init/generator.mjs +2 -2
  37. package/dist/src/generators/worker/generator.js +3 -3
  38. package/dist/src/generators/worker/generator.mjs +3 -3
  39. package/dist/src/utils/index.mjs +1 -1
  40. package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
  41. package/dist/tsup.config.mjs +1 -1
  42. package/docs/api/executors/r2-upload-publish/schema.md +93 -0
  43. package/package.json +13 -12
  44. package/dist/chunk-IH7ZJRS7.js +0 -262
  45. package/dist/chunk-JEMQ2Y24.mjs +0 -265
  46. package/dist/chunk-KSZZYFCQ.js +0 -209
  47. package/dist/chunk-OTDPGPH4.js +0 -209
  48. package/dist/chunk-S3HIZ32I.mjs +0 -209
  49. package/dist/chunk-WBUCIAVK.mjs +0 -209
  50. package/dist/schema.d-oSirXiCO.d.mts +0 -11
  51. package/dist/schema.d-oSirXiCO.d.ts +0 -11
@@ -452,11 +452,15 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
452
452
  var LARGE_BUFFER = 1024 * 1e6;
453
453
 
454
454
  // ../build-tools/src/config.ts
455
- var DEFAULT_COMPILED_BANNER = `/*****************************************
456
- *
457
- * \u26A1 Built by Storm Software
458
- *
459
- *****************************************/
455
+ var DEFAULT_JS_BANNER = `
456
+ // ---------------------------------------
457
+ // \u26A1 Built by Storm Software
458
+ // ---------------------------------------
459
+ `;
460
+ var DEFAULT_CSS_BANNER = `
461
+ /* ---------------------------------------
462
+ \u26A1 Built by Storm Software
463
+ --------------------------------------- */
460
464
  `;
461
465
  var DEFAULT_ENVIRONMENT = "production";
462
466
  var DEFAULT_TARGET = "esnext";
@@ -821,8 +825,8 @@ var DEFAULT_BUILD_OPTIONS = {
821
825
  ".woff2": "file"
822
826
  },
823
827
  banner: {
824
- js: DEFAULT_COMPILED_BANNER,
825
- css: DEFAULT_COMPILED_BANNER
828
+ js: DEFAULT_JS_BANNER,
829
+ css: DEFAULT_CSS_BANNER
826
830
  }
827
831
  };
828
832
 
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-PH3DHY4Q.mjs";
4
4
  import {
5
5
  __require
6
- } from "./chunk-UEJFDB6Y.mjs";
6
+ } from "./chunk-QN6OKPMU.mjs";
7
7
 
8
8
  // src/executors/cloudflare-publish/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -1,3 +1,6 @@
1
+ import {
2
+ generator_default
3
+ } from "./chunk-J2DOKDIF.mjs";
1
4
  import {
2
5
  findWorkspaceRoot,
3
6
  getConfig
@@ -10,12 +13,9 @@ import {
10
13
  writeInfo,
11
14
  writeTrace
12
15
  } from "./chunk-6MATO2MJ.mjs";
13
- import {
14
- generator_default
15
- } from "./chunk-2B7ISOXH.mjs";
16
16
  import {
17
17
  __dirname
18
- } from "./chunk-UEJFDB6Y.mjs";
18
+ } from "./chunk-QN6OKPMU.mjs";
19
19
 
20
20
  // src/generators/worker/generator.ts
21
21
  import {
@@ -1,2 +1,2 @@
1
1
  export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.mjs';
2
- export { R as R2UploadPublishExecutorSchema } from './schema.d-oSirXiCO.mjs';
2
+ export { R as R2UploadPublishExecutorSchema } from './schema.d-elsO8UQp.mjs';
@@ -1,2 +1,2 @@
1
1
  export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.js';
2
- export { R as R2UploadPublishExecutorSchema } from './schema.d-oSirXiCO.js';
2
+ export { R as R2UploadPublishExecutorSchema } from './schema.d-elsO8UQp.js';
package/dist/executors.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-IRORGRVZ.js');
3
- require('./chunk-YAUK66IM.js');
4
- require('./chunk-OTDPGPH4.js');
3
+ require('./chunk-W5IPHIXB.js');
4
+ require('./chunk-VHMJXOF4.js');
5
5
  require('./chunk-FFOLWRMA.js');
6
6
  require('./chunk-NU34IEWN.js');
7
7
  require('./chunk-EQXEFXCV.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-BIFOD6C3.mjs";
3
- import "./chunk-3JEOBMM5.mjs";
4
- import "./chunk-WBUCIAVK.mjs";
2
+ import "./chunk-XDQBFBX4.mjs";
3
+ import "./chunk-C6B32MBV.mjs";
4
+ import "./chunk-7ESZB4KW.mjs";
5
5
  import "./chunk-5N2NVDKX.mjs";
6
6
  import "./chunk-PH3DHY4Q.mjs";
7
7
  import "./chunk-PTTJW7MW.mjs";
8
8
  import "./chunk-6MATO2MJ.mjs";
9
- import "./chunk-UEJFDB6Y.mjs";
9
+ import "./chunk-QN6OKPMU.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk6KHWP2MOjs = require('./chunk-6KHWP2MO.js');
5
+ var _chunkBPUFICBMjs = require('./chunk-BPUFICBM.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkD4JUMEICjs = require('./chunk-D4JUMEIC.js');
9
+ var _chunkDRYNN63Fjs = require('./chunk-DRYNN63F.js');
10
10
  require('./chunk-EQXEFXCV.js');
11
11
  require('./chunk-4BWM53AA.js');
12
12
  require('./chunk-MCKGQKYU.js');
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunk6KHWP2MOjs.applicationGenerator; exports.applicationSchematic = _chunk6KHWP2MOjs.applicationSchematic; exports.initGenerator = _chunkD4JUMEICjs.initGenerator; exports.initSchematic = _chunkD4JUMEICjs.initSchematic;
18
+ exports.applicationGenerator = _chunkBPUFICBMjs.applicationGenerator; exports.applicationSchematic = _chunkBPUFICBMjs.applicationSchematic; exports.initGenerator = _chunkDRYNN63Fjs.initGenerator; exports.initSchematic = _chunkDRYNN63Fjs.initSchematic;
@@ -2,14 +2,14 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-JEMQ2Y24.mjs";
5
+ } from "./chunk-ZFJIFXOW.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-2B7ISOXH.mjs";
9
+ } from "./chunk-J2DOKDIF.mjs";
10
10
  import "./chunk-PTTJW7MW.mjs";
11
11
  import "./chunk-6MATO2MJ.mjs";
12
- import "./chunk-UEJFDB6Y.mjs";
12
+ import "./chunk-QN6OKPMU.mjs";
13
13
  export {
14
14
  applicationGenerator,
15
15
  applicationSchematic,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.mjs';
2
- export { R as R2UploadPublishExecutorSchema } from './schema.d-oSirXiCO.mjs';
2
+ export { R as R2UploadPublishExecutorSchema } from './schema.d-elsO8UQp.mjs';
3
3
  export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.mjs';
4
4
  export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.mjs';
5
5
  import { CreateNodesV2 } from '@nx/devkit';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.js';
2
- export { R as R2UploadPublishExecutorSchema } from './schema.d-oSirXiCO.js';
2
+ export { R as R2UploadPublishExecutorSchema } from './schema.d-elsO8UQp.js';
3
3
  export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.js';
4
4
  export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.js';
5
5
  import { CreateNodesV2 } from '@nx/devkit';
package/dist/index.js CHANGED
@@ -3,15 +3,15 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunk6KHWP2MOjs = require('./chunk-6KHWP2MO.js');
6
+ var _chunkBPUFICBMjs = require('./chunk-BPUFICBM.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkD4JUMEICjs = require('./chunk-D4JUMEIC.js');
10
+ var _chunkDRYNN63Fjs = require('./chunk-DRYNN63F.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-IRORGRVZ.js');
13
- require('./chunk-YAUK66IM.js');
14
- require('./chunk-OTDPGPH4.js');
13
+ require('./chunk-W5IPHIXB.js');
14
+ require('./chunk-VHMJXOF4.js');
15
15
 
16
16
 
17
17
 
@@ -155,4 +155,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
155
155
 
156
156
 
157
157
 
158
- exports.applicationGenerator = _chunk6KHWP2MOjs.applicationGenerator; exports.applicationSchematic = _chunk6KHWP2MOjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkFFOLWRMAjs.getInternalDependencies; exports.initGenerator = _chunkD4JUMEICjs.initGenerator; exports.initSchematic = _chunkD4JUMEICjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkFFOLWRMAjs.r2UploadFile;
158
+ exports.applicationGenerator = _chunkBPUFICBMjs.applicationGenerator; exports.applicationSchematic = _chunkBPUFICBMjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkFFOLWRMAjs.getInternalDependencies; exports.initGenerator = _chunkDRYNN63Fjs.initGenerator; exports.initSchematic = _chunkDRYNN63Fjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkFFOLWRMAjs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,15 +3,15 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-JEMQ2Y24.mjs";
6
+ } from "./chunk-ZFJIFXOW.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-2B7ISOXH.mjs";
10
+ } from "./chunk-J2DOKDIF.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
- import "./chunk-BIFOD6C3.mjs";
13
- import "./chunk-3JEOBMM5.mjs";
14
- import "./chunk-WBUCIAVK.mjs";
12
+ import "./chunk-XDQBFBX4.mjs";
13
+ import "./chunk-C6B32MBV.mjs";
14
+ import "./chunk-7ESZB4KW.mjs";
15
15
  import {
16
16
  getInternalDependencies,
17
17
  r2UploadFile
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-PH3DHY4Q.mjs";
23
23
  import "./chunk-PTTJW7MW.mjs";
24
24
  import "./chunk-6MATO2MJ.mjs";
25
- import "./chunk-UEJFDB6Y.mjs";
25
+ import "./chunk-QN6OKPMU.mjs";
26
26
 
27
27
  // src/plugins/index.ts
28
28
  import {
@@ -0,0 +1,88 @@
1
+ // Generated by @storm-software/untyped
2
+ // Do not edit this file directly
3
+
4
+ interface R2UploadPublishExecutorSchema {
5
+ /**
6
+ * Upload Files path
7
+ *
8
+ * The path to the files to upload
9
+ *
10
+ *
11
+ * @format path
12
+ */
13
+ path?: string,
14
+
15
+ /**
16
+ * Registry
17
+ *
18
+ * The registry URL to publish to
19
+ *
20
+ */
21
+ registry?: string,
22
+
23
+ /**
24
+ * Bucket ID
25
+ *
26
+ * The ID of the R2 bucket
27
+ *
28
+ */
29
+ bucketId?: string,
30
+
31
+ /**
32
+ * Bucket Path
33
+ *
34
+ * The path in the R2 bucket to upload files to
35
+ *
36
+ * @default "/"
37
+ *
38
+ * @format path
39
+ */
40
+ bucketPath?: string,
41
+
42
+ /**
43
+ * Tag
44
+ *
45
+ * The tag to publish with
46
+ *
47
+ * @default "latest"
48
+ */
49
+ tag?: string,
50
+
51
+ /**
52
+ * Write Meta JSON
53
+ *
54
+ * Write a `meta.json` file to the upload bucket
55
+ *
56
+ * @default false
57
+ */
58
+ writeMetaJson?: boolean,
59
+
60
+ /**
61
+ * Clean
62
+ *
63
+ * Clean the bucket before uploading files
64
+ *
65
+ * @default false
66
+ */
67
+ clean?: boolean,
68
+
69
+ /**
70
+ * Verbose
71
+ *
72
+ * Enable verbose logging
73
+ *
74
+ * @default false
75
+ */
76
+ verbose?: boolean,
77
+
78
+ /**
79
+ * Dry Run
80
+ *
81
+ * Perform a dry run
82
+ *
83
+ * @default false
84
+ */
85
+ dryRun?: boolean,
86
+ }
87
+
88
+ export type { R2UploadPublishExecutorSchema as R };
@@ -0,0 +1,88 @@
1
+ // Generated by @storm-software/untyped
2
+ // Do not edit this file directly
3
+
4
+ interface R2UploadPublishExecutorSchema {
5
+ /**
6
+ * Upload Files path
7
+ *
8
+ * The path to the files to upload
9
+ *
10
+ *
11
+ * @format path
12
+ */
13
+ path?: string,
14
+
15
+ /**
16
+ * Registry
17
+ *
18
+ * The registry URL to publish to
19
+ *
20
+ */
21
+ registry?: string,
22
+
23
+ /**
24
+ * Bucket ID
25
+ *
26
+ * The ID of the R2 bucket
27
+ *
28
+ */
29
+ bucketId?: string,
30
+
31
+ /**
32
+ * Bucket Path
33
+ *
34
+ * The path in the R2 bucket to upload files to
35
+ *
36
+ * @default "/"
37
+ *
38
+ * @format path
39
+ */
40
+ bucketPath?: string,
41
+
42
+ /**
43
+ * Tag
44
+ *
45
+ * The tag to publish with
46
+ *
47
+ * @default "latest"
48
+ */
49
+ tag?: string,
50
+
51
+ /**
52
+ * Write Meta JSON
53
+ *
54
+ * Write a `meta.json` file to the upload bucket
55
+ *
56
+ * @default false
57
+ */
58
+ writeMetaJson?: boolean,
59
+
60
+ /**
61
+ * Clean
62
+ *
63
+ * Clean the bucket before uploading files
64
+ *
65
+ * @default false
66
+ */
67
+ clean?: boolean,
68
+
69
+ /**
70
+ * Verbose
71
+ *
72
+ * Enable verbose logging
73
+ *
74
+ * @default false
75
+ */
76
+ verbose?: boolean,
77
+
78
+ /**
79
+ * Dry Run
80
+ *
81
+ * Perform a dry run
82
+ *
83
+ * @default false
84
+ */
85
+ dryRun?: boolean,
86
+ }
87
+
88
+ export type { R2UploadPublishExecutorSchema as R };
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkIRORGRVZjs = require('../../../chunk-IRORGRVZ.js');
4
- require('../../../chunk-YAUK66IM.js');
4
+ require('../../../chunk-W5IPHIXB.js');
5
5
  require('../../../chunk-NU34IEWN.js');
6
6
  require('../../../chunk-EQXEFXCV.js');
7
7
  require('../../../chunk-4BWM53AA.js');
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-BIFOD6C3.mjs";
4
- import "../../../chunk-3JEOBMM5.mjs";
3
+ } from "../../../chunk-XDQBFBX4.mjs";
4
+ import "../../../chunk-C6B32MBV.mjs";
5
5
  import "../../../chunk-PH3DHY4Q.mjs";
6
6
  import "../../../chunk-PTTJW7MW.mjs";
7
7
  import "../../../chunk-6MATO2MJ.mjs";
8
- import "../../../chunk-UEJFDB6Y.mjs";
8
+ import "../../../chunk-QN6OKPMU.mjs";
9
9
  export {
10
10
  runExecutor as default
11
11
  };
@@ -1,5 +1,5 @@
1
1
  import { ExecutorContext } from '@nx/devkit';
2
- import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-oSirXiCO.mjs';
2
+ import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-elsO8UQp.mjs';
3
3
 
4
4
  declare function runExecutor(options: R2UploadPublishExecutorSchema, context: ExecutorContext): Promise<{
5
5
  success: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ExecutorContext } from '@nx/devkit';
2
- import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-oSirXiCO.js';
2
+ import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-elsO8UQp.js';
3
3
 
4
4
  declare function runExecutor(options: R2UploadPublishExecutorSchema, context: ExecutorContext): Promise<{
5
5
  success: boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOTDPGPH4js = require('../../../chunk-OTDPGPH4.js');
3
+ var _chunkVHMJXOF4js = require('../../../chunk-VHMJXOF4.js');
4
4
  require('../../../chunk-FFOLWRMA.js');
5
5
  require('../../../chunk-NU34IEWN.js');
6
6
  require('../../../chunk-EQXEFXCV.js');
@@ -8,4 +8,4 @@ require('../../../chunk-4BWM53AA.js');
8
8
  require('../../../chunk-MCKGQKYU.js');
9
9
 
10
10
 
11
- exports.default = _chunkOTDPGPH4js.runExecutor;
11
+ exports.default = _chunkVHMJXOF4js.runExecutor;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-WBUCIAVK.mjs";
3
+ } from "../../../chunk-7ESZB4KW.mjs";
4
4
  import "../../../chunk-5N2NVDKX.mjs";
5
5
  import "../../../chunk-PH3DHY4Q.mjs";
6
6
  import "../../../chunk-PTTJW7MW.mjs";
7
7
  import "../../../chunk-6MATO2MJ.mjs";
8
- import "../../../chunk-UEJFDB6Y.mjs";
8
+ import "../../../chunk-QN6OKPMU.mjs";
9
9
  export {
10
10
  runExecutor as default
11
11
  };
@@ -1,9 +1,88 @@
1
+
2
+ // Generated by @storm-software/untyped
3
+ // Do not edit this file directly
4
+
1
5
  export interface R2UploadPublishExecutorSchema {
2
- packageRoot?: string;
3
- registry: string;
4
- bucketId: string;
5
- tsConfig: string;
6
- tag?: string;
7
- dryRun: boolean;
8
- verbose: boolean;
6
+ /**
7
+ * Upload Files path
8
+ *
9
+ * The path to the files to upload
10
+ *
11
+ *
12
+ * @format path
13
+ */
14
+ path?: string,
15
+
16
+ /**
17
+ * Registry
18
+ *
19
+ * The registry URL to publish to
20
+ *
21
+ */
22
+ registry?: string,
23
+
24
+ /**
25
+ * Bucket ID
26
+ *
27
+ * The ID of the R2 bucket
28
+ *
29
+ */
30
+ bucketId?: string,
31
+
32
+ /**
33
+ * Bucket Path
34
+ *
35
+ * The path in the R2 bucket to upload files to
36
+ *
37
+ * @default "/"
38
+ *
39
+ * @format path
40
+ */
41
+ bucketPath?: string,
42
+
43
+ /**
44
+ * Tag
45
+ *
46
+ * The tag to publish with
47
+ *
48
+ * @default "latest"
49
+ */
50
+ tag?: string,
51
+
52
+ /**
53
+ * Write Meta JSON
54
+ *
55
+ * Write a `meta.json` file to the upload bucket
56
+ *
57
+ * @default false
58
+ */
59
+ writeMetaJson?: boolean,
60
+
61
+ /**
62
+ * Clean
63
+ *
64
+ * Clean the bucket before uploading files
65
+ *
66
+ * @default false
67
+ */
68
+ clean?: boolean,
69
+
70
+ /**
71
+ * Verbose
72
+ *
73
+ * Enable verbose logging
74
+ *
75
+ * @default false
76
+ */
77
+ verbose?: boolean,
78
+
79
+ /**
80
+ * Dry Run
81
+ *
82
+ * Perform a dry run
83
+ *
84
+ * @default false
85
+ */
86
+ dryRun?: boolean,
9
87
  }
88
+
@@ -1,42 +1,83 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "$id": "r2-upload-publish",
5
- "title": "Cloudflare R2 Bucket Upload Publish",
6
- "description": "Publish files in a package by uploading the contents to a Cloudflare R2 bucket",
7
- "type": "object",
2
+ "id": "#",
3
+ "title": "R2 Upload Publish Executor",
4
+ "description": "A type definition for the R2 Upload Publish executor schema",
5
+ "requires": [
6
+ "path",
7
+ "bucketId",
8
+ "bucketPath"
9
+ ],
8
10
  "properties": {
11
+ "path": {
12
+ "title": "Upload Files path",
13
+ "type": "string",
14
+ "format": "path",
15
+ "description": "The path to the files to upload",
16
+ "id": "#path"
17
+ },
9
18
  "registry": {
19
+ "title": "Registry",
10
20
  "type": "string",
11
- "description": "The URL of the R2 bucket to publish the package to.",
12
- "format": "uri"
21
+ "description": "The registry URL to publish to",
22
+ "id": "#registry"
13
23
  },
14
24
  "bucketId": {
25
+ "title": "Bucket ID",
15
26
  "type": "string",
16
- "description": "The ID of the R2 Bucket in Cloudflare."
27
+ "description": "The ID of the R2 bucket",
28
+ "id": "#bucketId"
17
29
  },
18
- "packageRoot": {
30
+ "bucketPath": {
31
+ "title": "Bucket Path",
19
32
  "type": "string",
20
- "description": "The root directory of the directory (containing a manifest file at its root) to publish. Defaults to the project root."
33
+ "format": "path",
34
+ "description": "The path in the R2 bucket to upload files to",
35
+ "id": "#bucketPath",
36
+ "default": "/"
21
37
  },
22
- "tsConfig": {
38
+ "tag": {
39
+ "title": "Tag",
23
40
  "type": "string",
24
- "description": "The path to the `tsconfig.json` file.",
25
- "x-completion-type": "file",
26
- "x-completion-glob": "tsconfig*.json",
27
- "x-priority": "important",
28
- "default": "{projectRoot}/tsconfig.json"
41
+ "description": "The tag to publish with",
42
+ "id": "#tag",
43
+ "default": "latest"
29
44
  },
30
- "dryRun": {
45
+ "writeMetaJson": {
46
+ "title": "Write Meta JSON",
47
+ "type": "boolean",
48
+ "description": "Write a `meta.json` file to the upload bucket",
49
+ "id": "#writeMetaJson",
50
+ "default": false
51
+ },
52
+ "clean": {
53
+ "title": "Clean",
31
54
  "type": "boolean",
32
- "description": "Whether to run the command without actually publishing the package to the registry.",
55
+ "description": "Clean the bucket before uploading files",
56
+ "id": "#clean",
33
57
  "default": false
34
58
  },
35
59
  "verbose": {
60
+ "title": "Verbose",
61
+ "type": "boolean",
62
+ "description": "Enable verbose logging",
63
+ "id": "#verbose",
64
+ "default": false
65
+ },
66
+ "dryRun": {
67
+ "title": "Dry Run",
36
68
  "type": "boolean",
37
- "description": "Should write extra log outputs with details from the executor.",
69
+ "description": "Perform a dry run",
70
+ "id": "#dryRun",
38
71
  "default": false
39
72
  }
40
73
  },
41
- "required": ["tsConfig", "registry"]
42
- }
74
+ "type": "object",
75
+ "default": {
76
+ "bucketPath": "/",
77
+ "tag": "latest",
78
+ "writeMetaJson": false,
79
+ "clean": false,
80
+ "verbose": false,
81
+ "dryRun": false
82
+ }
83
+ }