@mastra/deployer-cloudflare 0.10.5 → 0.10.6-alpha.1
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/dist/_tsup-dts-rollup.d.cts +1 -1
- package/dist/_tsup-dts-rollup.d.ts +1 -1
- package/dist/index.cjs +2 -16
- package/dist/index.js +3 -17
- package/package.json +8 -9
|
@@ -35,7 +35,7 @@ export declare class CloudflareDeployer extends Deployer {
|
|
|
35
35
|
prepare(outputDirectory: string): Promise<void>;
|
|
36
36
|
getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
|
|
37
37
|
bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
38
|
-
deploy(
|
|
38
|
+
deploy(): Promise<void>;
|
|
39
39
|
tagWorker({ workerName, namespace, tags, scope, }: {
|
|
40
40
|
scope: string;
|
|
41
41
|
workerName: string;
|
|
@@ -35,7 +35,7 @@ export declare class CloudflareDeployer extends Deployer {
|
|
|
35
35
|
prepare(outputDirectory: string): Promise<void>;
|
|
36
36
|
getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
|
|
37
37
|
bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
38
|
-
deploy(
|
|
38
|
+
deploy(): Promise<void>;
|
|
39
39
|
tagWorker({ workerName, namespace, tags, scope, }: {
|
|
40
40
|
scope: string;
|
|
41
41
|
workerName: string;
|
package/dist/index.cjs
CHANGED
|
@@ -147,22 +147,8 @@ process.versions.node = '${process.versions.node}';
|
|
|
147
147
|
async bundle(entryFile, outputDirectory, toolsPaths) {
|
|
148
148
|
return this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
|
|
149
149
|
}
|
|
150
|
-
async deploy(
|
|
151
|
-
|
|
152
|
-
const cpLogger = deployer.createChildProcessLogger({
|
|
153
|
-
logger: this.logger,
|
|
154
|
-
root: path.join(outputDirectory, this.outputDir)
|
|
155
|
-
});
|
|
156
|
-
await cpLogger({
|
|
157
|
-
cmd,
|
|
158
|
-
args: [],
|
|
159
|
-
env: {
|
|
160
|
-
CLOUDFLARE_API_TOKEN: this.cloudflare.apiToken,
|
|
161
|
-
CLOUDFLARE_ACCOUNT_ID: this.scope,
|
|
162
|
-
...this.env,
|
|
163
|
-
PATH: process.env.PATH
|
|
164
|
-
}
|
|
165
|
-
});
|
|
150
|
+
async deploy() {
|
|
151
|
+
this.logger?.info("Deploying to Cloudflare failed. Please use the Cloudflare dashboard to deploy.");
|
|
166
152
|
}
|
|
167
153
|
async tagWorker({
|
|
168
154
|
workerName,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writeFile } from 'fs/promises';
|
|
2
2
|
import { join } from 'path';
|
|
3
|
-
import { Deployer
|
|
3
|
+
import { Deployer } from '@mastra/deployer';
|
|
4
4
|
import virtual from '@rollup/plugin-virtual';
|
|
5
5
|
import { Cloudflare } from 'cloudflare';
|
|
6
6
|
|
|
@@ -141,22 +141,8 @@ process.versions.node = '${process.versions.node}';
|
|
|
141
141
|
async bundle(entryFile, outputDirectory, toolsPaths) {
|
|
142
142
|
return this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
|
|
143
143
|
}
|
|
144
|
-
async deploy(
|
|
145
|
-
|
|
146
|
-
const cpLogger = createChildProcessLogger({
|
|
147
|
-
logger: this.logger,
|
|
148
|
-
root: join(outputDirectory, this.outputDir)
|
|
149
|
-
});
|
|
150
|
-
await cpLogger({
|
|
151
|
-
cmd,
|
|
152
|
-
args: [],
|
|
153
|
-
env: {
|
|
154
|
-
CLOUDFLARE_API_TOKEN: this.cloudflare.apiToken,
|
|
155
|
-
CLOUDFLARE_ACCOUNT_ID: this.scope,
|
|
156
|
-
...this.env,
|
|
157
|
-
PATH: process.env.PATH
|
|
158
|
-
}
|
|
159
|
-
});
|
|
144
|
+
async deploy() {
|
|
145
|
+
this.logger?.info("Deploying to Cloudflare failed. Please use the Cloudflare dashboard to deploy.");
|
|
160
146
|
}
|
|
161
147
|
async tagWorker({
|
|
162
148
|
workerName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-cloudflare",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -38,20 +38,19 @@
|
|
|
38
38
|
"@babel/core": "^7.27.4",
|
|
39
39
|
"@rollup/plugin-virtual": "^3.0.2",
|
|
40
40
|
"cloudflare": "^4.3.0",
|
|
41
|
-
"rollup": "^4.
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"@mastra/deployer": "^0.10.5"
|
|
41
|
+
"rollup": "^4.43.0",
|
|
42
|
+
"zod": "^3.25.57",
|
|
43
|
+
"@mastra/deployer": "^0.10.6-alpha.1"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
46
|
"@microsoft/api-extractor": "^7.52.8",
|
|
48
|
-
"@types/node": "^20.
|
|
47
|
+
"@types/node": "^20.19.0",
|
|
49
48
|
"eslint": "^9.28.0",
|
|
50
49
|
"tsup": "^8.5.0",
|
|
51
|
-
"typescript": "^5.8.
|
|
52
|
-
"vitest": "^3.2.
|
|
50
|
+
"typescript": "^5.8.3",
|
|
51
|
+
"vitest": "^3.2.3",
|
|
53
52
|
"@internal/lint": "0.0.12",
|
|
54
|
-
"@mastra/core": "0.10.
|
|
53
|
+
"@mastra/core": "0.10.6-alpha.1"
|
|
55
54
|
},
|
|
56
55
|
"peerDependencies": {
|
|
57
56
|
"@mastra/core": "^0.10.1-alpha.0"
|