@mastra/deployer-cloudflare 0.0.1-alpha.21 → 0.0.1-alpha.24

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/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @mastra/deployer-cloudflare
2
2
 
3
+ ## 0.0.1-alpha.24
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [685108a]
8
+ - Updated dependencies [685108a]
9
+ - @mastra/deployer@0.0.1-alpha.22
10
+ - @mastra/core@0.1.27-alpha.78
11
+
12
+ ## 0.0.1-alpha.23
13
+
14
+ ### Patch Changes
15
+
16
+ - 2b75edf: mastra deployers tsup bundling
17
+ - Updated dependencies [8105fae]
18
+ - Updated dependencies [cfb966f]
19
+ - @mastra/core@0.1.27-alpha.77
20
+ - @mastra/deployer@0.0.1-alpha.21
21
+
22
+ ## 0.0.1-alpha.22
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [ae7bf94]
27
+ - Updated dependencies [ae7bf94]
28
+ - @mastra/deployer@0.0.1-alpha.20
29
+ - @mastra/core@0.1.27-alpha.76
30
+
3
31
  ## 0.0.1-alpha.21
4
32
 
5
33
  ### Patch Changes
package/package.json CHANGED
@@ -1,21 +1,18 @@
1
1
  {
2
2
  "name": "@mastra/deployer-cloudflare",
3
- "version": "0.0.1-alpha.21",
3
+ "version": "0.0.1-alpha.24",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
- "module": "dist/deployer-cloudflare.esm.js",
8
7
  "types": "dist/index.d.ts",
9
8
  "exports": {
10
9
  ".": {
11
- "import": {
12
- "types": "./dist/index.d.ts",
13
- "default": "./dist/deployer-cloudflare.esm.js"
14
- },
15
- "require": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.js"
18
- }
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./secrets-manager": {
14
+ "types": "./dist/secrets-manager/index.d.ts",
15
+ "default": "./dist/secrets-manager/index.js"
19
16
  },
20
17
  "./package.json": "./package.json"
21
18
  },
@@ -29,21 +26,20 @@
29
26
  "execa": "^9.3.1",
30
27
  "wrangler": "^3.103.2",
31
28
  "zod": "^3.24.1",
32
- "@mastra/deployer": "0.0.1-alpha.19",
33
- "@mastra/core": "0.1.27-alpha.75"
29
+ "@mastra/deployer": "0.0.1-alpha.22",
30
+ "@mastra/core": "0.1.27-alpha.78"
34
31
  },
35
32
  "devDependencies": {
36
33
  "@babel/preset-env": "^7.26.0",
37
34
  "@babel/preset-typescript": "^7.26.0",
38
35
  "@tsconfig/recommended": "^1.0.7",
39
- "@types/jsdom": "^21.1.7",
40
36
  "@types/node": "^22.9.0",
41
- "dts-cli": "^2.0.5",
42
- "vitest": "^2.1.8"
37
+ "tsup": "^8.0.1",
38
+ "vitest": "^3.0.4"
43
39
  },
44
40
  "scripts": {
45
- "build": "dts build",
46
- "build:dev": "dts watch",
41
+ "build": "tsup-node src/index.ts src/secrets-manager/index.ts --format esm --dts --clean --treeshake",
42
+ "dev": "tsup-node src/index.ts src/secrets-manager/index.ts --format esm --dts --clean --treeshake --watch",
47
43
  "test": "vitest run"
48
44
  }
49
45
  }
package/src/index.ts CHANGED
@@ -42,7 +42,7 @@ export class CloudflareDeployer extends MastraDeployer {
42
42
  }
43
43
  }
44
44
 
45
- writeFiles({ dir }: { dir: string }): void {
45
+ override writeFiles({ dir }: { dir: string }): void {
46
46
  this.loadEnvVars();
47
47
 
48
48
  this.writeIndex({ dir });
@@ -72,7 +72,7 @@ export class CloudflareDeployer extends MastraDeployer {
72
72
  writeFileSync(join(dir, 'wrangler.json'), JSON.stringify(wranglerConfig));
73
73
  }
74
74
 
75
- writeIndex({ dir }: { dir: string }): void {
75
+ override writeIndex({ dir }: { dir: string }): void {
76
76
  writeFileSync(
77
77
  join(dir, './index.mjs'),
78
78
  `
@@ -89,7 +89,7 @@ export class CloudflareDeployer extends MastraDeployer {
89
89
  );
90
90
  }
91
91
 
92
- async deploy({ dir, token }: { dir: string; token: string }): Promise<void> {
92
+ override async deploy({ dir, token }: { dir: string; token: string }): Promise<void> {
93
93
  const cmd = this.workerNamespace
94
94
  ? `npm exec -- wrangler deploy --dispatch-namespace ${this.workerNamespace}`
95
95
  : 'npm exec -- wrangler deploy';
package/tsconfig.json CHANGED
@@ -1,10 +1,5 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "moduleResolution": "bundler",
5
- "outDir": "./dist",
6
- "rootDir": "./src"
7
- },
2
+ "extends": "../../tsconfig.node.json",
8
3
  "include": ["src/**/*"],
9
4
  "exclude": ["node_modules", "**/*.test.ts"]
10
5
  }
package/vitest.config.ts CHANGED
@@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config';
2
2
 
3
3
  export default defineConfig({
4
4
  test: {
5
- globals: true,
5
+ environment: 'node',
6
6
  include: ['src/**/*.test.ts'],
7
7
  },
8
8
  });