@mastra/deployer-netlify 0.1.18-alpha.5 → 0.1.18-alpha.7
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 +13 -0
- package/dist/index.js +13 -0
- package/package.json +3 -3
|
@@ -29,6 +29,7 @@ export declare class NetlifyDeployer extends Deployer {
|
|
|
29
29
|
writeFiles({ dir }: {
|
|
30
30
|
dir: string;
|
|
31
31
|
}): void;
|
|
32
|
+
protected installDependencies(outputDirectory: string, rootDir?: string): Promise<void>;
|
|
32
33
|
deploy(outputDirectory: string): Promise<void>;
|
|
33
34
|
prepare(outputDirectory: string): Promise<void>;
|
|
34
35
|
bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
@@ -29,6 +29,7 @@ export declare class NetlifyDeployer extends Deployer {
|
|
|
29
29
|
writeFiles({ dir }: {
|
|
30
30
|
dir: string;
|
|
31
31
|
}): void;
|
|
32
|
+
protected installDependencies(outputDirectory: string, rootDir?: string): Promise<void>;
|
|
32
33
|
deploy(outputDirectory: string): Promise<void>;
|
|
33
34
|
prepare(outputDirectory: string): Promise<void>;
|
|
34
35
|
bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
package/dist/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var fs = require('fs');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var deployer = require('@mastra/deployer');
|
|
6
|
+
var services = require('@mastra/deployer/services');
|
|
6
7
|
var execa = require('execa');
|
|
7
8
|
|
|
8
9
|
// src/index.ts
|
|
@@ -89,6 +90,18 @@ to = "/.netlify/functions/api/:splat"
|
|
|
89
90
|
`
|
|
90
91
|
);
|
|
91
92
|
}
|
|
93
|
+
async installDependencies(outputDirectory, rootDir = process.cwd()) {
|
|
94
|
+
const deps = new services.DepsService(rootDir);
|
|
95
|
+
deps.__setLogger(this.logger);
|
|
96
|
+
await deps.install({
|
|
97
|
+
dir: path.join(outputDirectory, this.outputDir),
|
|
98
|
+
architecture: {
|
|
99
|
+
os: ["linux"],
|
|
100
|
+
cpu: ["x64"],
|
|
101
|
+
libc: ["gnu"]
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
92
105
|
async deploy(outputDirectory) {
|
|
93
106
|
const site = await getOrCreateSite({ token: this.token, name: this.projectName || `mastra`, scope: this.scope });
|
|
94
107
|
const p2 = execa.execa(
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
2
2
|
import { join } from 'path';
|
|
3
3
|
import { Deployer } from '@mastra/deployer';
|
|
4
|
+
import { DepsService } from '@mastra/deployer/services';
|
|
4
5
|
import { execa } from 'execa';
|
|
5
6
|
|
|
6
7
|
// src/index.ts
|
|
@@ -87,6 +88,18 @@ to = "/.netlify/functions/api/:splat"
|
|
|
87
88
|
`
|
|
88
89
|
);
|
|
89
90
|
}
|
|
91
|
+
async installDependencies(outputDirectory, rootDir = process.cwd()) {
|
|
92
|
+
const deps = new DepsService(rootDir);
|
|
93
|
+
deps.__setLogger(this.logger);
|
|
94
|
+
await deps.install({
|
|
95
|
+
dir: join(outputDirectory, this.outputDir),
|
|
96
|
+
architecture: {
|
|
97
|
+
os: ["linux"],
|
|
98
|
+
cpu: ["x64"],
|
|
99
|
+
libc: ["gnu"]
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
90
103
|
async deploy(outputDirectory) {
|
|
91
104
|
const site = await getOrCreateSite({ token: this.token, name: this.projectName || `mastra`, scope: this.scope });
|
|
92
105
|
const p2 = execa(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-netlify",
|
|
3
|
-
"version": "0.1.18-alpha.
|
|
3
|
+
"version": "0.1.18-alpha.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"execa": "^9.5.2",
|
|
31
31
|
"netlify-cli": "^19.0.3",
|
|
32
32
|
"zod": "^3.24.2",
|
|
33
|
-
"@mastra/core": "^0.8.3-alpha.
|
|
34
|
-
"@mastra/deployer": "^0.2.9-alpha.
|
|
33
|
+
"@mastra/core": "^0.8.3-alpha.5",
|
|
34
|
+
"@mastra/deployer": "^0.2.9-alpha.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@microsoft/api-extractor": "^7.52.1",
|