@mastra/deployer-cloudflare 0.1.21-alpha.4 → 0.1.21-alpha.6
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 -0
- package/dist/_tsup-dts-rollup.d.ts +1 -0
- package/dist/index.cjs +10 -0
- package/dist/index.js +10 -0
- package/package.json +3 -3
|
@@ -38,6 +38,7 @@ export declare class CloudflareDeployer extends Deployer {
|
|
|
38
38
|
namespace: string;
|
|
39
39
|
tags: string[];
|
|
40
40
|
}): Promise<void>;
|
|
41
|
+
lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
export declare class CloudflareSecretsManager {
|
|
@@ -38,6 +38,7 @@ export declare class CloudflareDeployer extends Deployer {
|
|
|
38
38
|
namespace: string;
|
|
39
39
|
tags: string[];
|
|
40
40
|
}): Promise<void>;
|
|
41
|
+
lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
export declare class CloudflareSecretsManager {
|
package/dist/index.cjs
CHANGED
|
@@ -171,6 +171,16 @@ process.versions.node = '${process.versions.node}';
|
|
|
171
171
|
body: tags
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
+
async lint(entryFile, outputDirectory, toolsPaths) {
|
|
175
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
176
|
+
const hasLibsql = await this.deps.checkDependencies(["@mastra/libsql"]) === `ok`;
|
|
177
|
+
if (hasLibsql) {
|
|
178
|
+
this.logger.error(
|
|
179
|
+
"Cloudflare Deployer does not support @libsql/client(which may have been installed by @mastra/libsql) as a dependency. Please use Cloudflare D1 instead @mastra/cloudflare-d1"
|
|
180
|
+
);
|
|
181
|
+
process.exit(1);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
174
184
|
};
|
|
175
185
|
|
|
176
186
|
exports.CloudflareDeployer = CloudflareDeployer;
|
package/dist/index.js
CHANGED
|
@@ -165,6 +165,16 @@ process.versions.node = '${process.versions.node}';
|
|
|
165
165
|
body: tags
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
+
async lint(entryFile, outputDirectory, toolsPaths) {
|
|
169
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
170
|
+
const hasLibsql = await this.deps.checkDependencies(["@mastra/libsql"]) === `ok`;
|
|
171
|
+
if (hasLibsql) {
|
|
172
|
+
this.logger.error(
|
|
173
|
+
"Cloudflare Deployer does not support @libsql/client(which may have been installed by @mastra/libsql) as a dependency. Please use Cloudflare D1 instead @mastra/cloudflare-d1"
|
|
174
|
+
);
|
|
175
|
+
process.exit(1);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
168
178
|
};
|
|
169
179
|
|
|
170
180
|
export { CloudflareDeployer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-cloudflare",
|
|
3
|
-
"version": "0.1.21-alpha.
|
|
3
|
+
"version": "0.1.21-alpha.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"rollup": "^4.35.0",
|
|
42
42
|
"wrangler": "^4.4.0",
|
|
43
43
|
"zod": "^3.24.2",
|
|
44
|
-
"@mastra/
|
|
45
|
-
"@mastra/
|
|
44
|
+
"@mastra/core": "^0.9.2-alpha.6",
|
|
45
|
+
"@mastra/deployer": "^0.3.2-alpha.6"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@microsoft/api-extractor": "^7.52.5",
|