@mastra/deployer-cloudflare 0.1.19-alpha.3 → 0.1.19-alpha.5
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 +2 -2
- package/dist/_tsup-dts-rollup.d.ts +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -29,8 +29,8 @@ export declare class CloudflareDeployer extends Deployer {
|
|
|
29
29
|
writeFiles(outputDirectory: string): Promise<void>;
|
|
30
30
|
private getEntry;
|
|
31
31
|
prepare(outputDirectory: string): Promise<void>;
|
|
32
|
-
getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle
|
|
33
|
-
bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
32
|
+
getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
|
|
33
|
+
bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
34
34
|
deploy(outputDirectory: string): Promise<void>;
|
|
35
35
|
tagWorker({ workerName, namespace, tags, scope, }: {
|
|
36
36
|
scope: string;
|
|
@@ -29,8 +29,8 @@ export declare class CloudflareDeployer extends Deployer {
|
|
|
29
29
|
writeFiles(outputDirectory: string): Promise<void>;
|
|
30
30
|
private getEntry;
|
|
31
31
|
prepare(outputDirectory: string): Promise<void>;
|
|
32
|
-
getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle
|
|
33
|
-
bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
32
|
+
getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
|
|
33
|
+
bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
34
34
|
deploy(outputDirectory: string): Promise<void>;
|
|
35
35
|
tagWorker({ workerName, namespace, tags, scope, }: {
|
|
36
36
|
scope: string;
|
package/dist/index.cjs
CHANGED
|
@@ -75,8 +75,8 @@ export default {
|
|
|
75
75
|
await super.prepare(outputDirectory);
|
|
76
76
|
await this.writeFiles(outputDirectory);
|
|
77
77
|
}
|
|
78
|
-
async getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo) {
|
|
79
|
-
const inputOptions = await super.getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo);
|
|
78
|
+
async getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo, toolsPaths) {
|
|
79
|
+
const inputOptions = await super.getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo, toolsPaths);
|
|
80
80
|
if (Array.isArray(inputOptions.plugins)) {
|
|
81
81
|
inputOptions.plugins = [
|
|
82
82
|
virtual__default.default({
|
|
@@ -90,8 +90,8 @@ process.versions.node = '${process.versions.node}';
|
|
|
90
90
|
}
|
|
91
91
|
return inputOptions;
|
|
92
92
|
}
|
|
93
|
-
async bundle(entryFile, outputDirectory) {
|
|
94
|
-
return this._bundle(this.getEntry(), entryFile, outputDirectory);
|
|
93
|
+
async bundle(entryFile, outputDirectory, toolsPaths) {
|
|
94
|
+
return this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
|
|
95
95
|
}
|
|
96
96
|
async deploy(outputDirectory) {
|
|
97
97
|
const cmd = this.workerNamespace ? `npm exec -- wrangler@latest deploy --dispatch-namespace ${this.workerNamespace}` : "npm exec -- wrangler@latest deploy";
|
package/dist/index.js
CHANGED
|
@@ -69,8 +69,8 @@ export default {
|
|
|
69
69
|
await super.prepare(outputDirectory);
|
|
70
70
|
await this.writeFiles(outputDirectory);
|
|
71
71
|
}
|
|
72
|
-
async getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo) {
|
|
73
|
-
const inputOptions = await super.getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo);
|
|
72
|
+
async getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo, toolsPaths) {
|
|
73
|
+
const inputOptions = await super.getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo, toolsPaths);
|
|
74
74
|
if (Array.isArray(inputOptions.plugins)) {
|
|
75
75
|
inputOptions.plugins = [
|
|
76
76
|
virtual({
|
|
@@ -84,8 +84,8 @@ process.versions.node = '${process.versions.node}';
|
|
|
84
84
|
}
|
|
85
85
|
return inputOptions;
|
|
86
86
|
}
|
|
87
|
-
async bundle(entryFile, outputDirectory) {
|
|
88
|
-
return this._bundle(this.getEntry(), entryFile, outputDirectory);
|
|
87
|
+
async bundle(entryFile, outputDirectory, toolsPaths) {
|
|
88
|
+
return this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
|
|
89
89
|
}
|
|
90
90
|
async deploy(outputDirectory) {
|
|
91
91
|
const cmd = this.workerNamespace ? `npm exec -- wrangler@latest deploy --dispatch-namespace ${this.workerNamespace}` : "npm exec -- wrangler@latest deploy";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-cloudflare",
|
|
3
|
-
"version": "0.1.19-alpha.
|
|
3
|
+
"version": "0.1.19-alpha.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"rollup-plugin-shim": "^1.0.0",
|
|
44
44
|
"wrangler": "^4.4.0",
|
|
45
45
|
"zod": "^3.24.2",
|
|
46
|
-
"@mastra/
|
|
47
|
-
"@mastra/
|
|
46
|
+
"@mastra/core": "^0.9.0-alpha.4",
|
|
47
|
+
"@mastra/deployer": "^0.3.0-alpha.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@microsoft/api-extractor": "^7.52.1",
|