@mastra/dane 0.0.2-alpha.26 → 0.0.2-alpha.28
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.
|
@@ -108,7 +108,7 @@ export const activeDistTag = createTool({
|
|
|
108
108
|
try {
|
|
109
109
|
const pkgJson = JSON.parse(readFileSync(path.join(context.packagePath, 'package.json'), 'utf-8'));
|
|
110
110
|
const version = pkgJson.version;
|
|
111
|
-
console.log(chalk.green(`Setting active tag
|
|
111
|
+
console.log(chalk.green(`Setting active tag to latest for ${pkgJson.name}@${version}`));
|
|
112
112
|
const p = execa(`npm`, ['dist-tag', `${pkgJson.name}@${version}`, `latest`], {
|
|
113
113
|
stdio: 'inherit',
|
|
114
114
|
reject: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Step, Workflow } from '@mastra/core';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
|
-
import { readFileSync } from 'fs';
|
|
3
|
+
import { existsSync, readFileSync } from 'fs';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export const packagePublisher = new Workflow({
|
|
@@ -80,7 +80,18 @@ const assemblePackages = new Step({
|
|
|
80
80
|
dependencies.forEach((dep) => {
|
|
81
81
|
const pkgName = dep.replace('@mastra/', '');
|
|
82
82
|
const pkgPath = path.join(process.cwd(), 'packages', pkgName);
|
|
83
|
-
|
|
83
|
+
const integrationPath = path.join(process.cwd(), 'integrations', pkgName);
|
|
84
|
+
try {
|
|
85
|
+
if (existsSync(pkgPath)) {
|
|
86
|
+
packagesToBuild.add(pkgPath);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
packagesToBuild.add(integrationPath);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
catch (e) {
|
|
93
|
+
console.error(e);
|
|
94
|
+
}
|
|
84
95
|
});
|
|
85
96
|
packagesToBuild.add(danePackage);
|
|
86
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/dane",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.28",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"sqlite3": "^5.1.7",
|
|
39
39
|
"typescript": "^5.5.4",
|
|
40
40
|
"zod": "^3.24.0",
|
|
41
|
-
"@mastra/core": "0.1.27-alpha.46",
|
|
42
41
|
"@mastra/engine": "0.0.5-alpha.40",
|
|
42
|
+
"@mastra/core": "0.1.27-alpha.46",
|
|
43
|
+
"@mastra/github": "1.0.3-alpha.30",
|
|
43
44
|
"@mastra/firecrawl": "1.0.4-alpha.32",
|
|
45
|
+
"@mastra/stabilityai": "1.0.1-alpha.21",
|
|
44
46
|
"@mastra/memory": "0.0.2-alpha.26",
|
|
45
|
-
"@mastra/rag": "0.0.2-alpha.30"
|
|
46
|
-
"@mastra/github": "1.0.3-alpha.30",
|
|
47
|
-
"@mastra/stabilityai": "1.0.1-alpha.21"
|
|
47
|
+
"@mastra/rag": "0.0.2-alpha.30"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "npx tsc",
|