Skip to content

Commit e4c5983

Browse files
committed
fix(ci): disable frozen lockfile for mastra in prep-dojo-everything
Signed-off-by: Tyler Slaton <[email protected]>
1 parent 64b4c20 commit e4c5983

File tree

1 file changed

+68
-68
lines changed

1 file changed

+68
-68
lines changed
Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
#!/usr/bin/env node
22

3-
const { execSync } = require('child_process');
4-
const path = require('path');
5-
const concurrently = require('concurrently');
3+
const { execSync } = require("child_process");
4+
const path = require("path");
5+
const concurrently = require("concurrently");
66

77
// Parse command line arguments
88
const args = process.argv.slice(2);
9-
const showHelp = args.includes('--help') || args.includes('-h');
10-
const dryRun = args.includes('--dry-run');
9+
const showHelp = args.includes("--help") || args.includes("-h");
10+
const dryRun = args.includes("--dry-run");
1111

1212
// selection controls
1313
function parseList(flag) {
1414
const idx = args.indexOf(flag);
1515
if (idx !== -1 && args[idx + 1]) {
1616
return args[idx + 1]
17-
.split(',')
17+
.split(",")
1818
.map((s) => s.trim())
1919
.filter(Boolean);
2020
}
2121
return null;
2222
}
2323

24-
const onlyList = parseList('--only') || parseList('--include');
25-
const excludeList = parseList('--exclude') || [];
24+
const onlyList = parseList("--only") || parseList("--include");
25+
const excludeList = parseList("--exclude") || [];
2626

2727
if (showHelp) {
2828
console.log(`
@@ -43,84 +43,82 @@ Examples:
4343
process.exit(0);
4444
}
4545

46-
const gitRoot = execSync('git rev-parse --show-toplevel', { encoding: 'utf-8' }).trim();
47-
const integrationsRoot = path.join(gitRoot, 'typescript-sdk', 'integrations');
48-
49-
46+
const gitRoot = execSync("git rev-parse --show-toplevel", { encoding: "utf-8" }).trim();
47+
const integrationsRoot = path.join(gitRoot, "typescript-sdk", "integrations");
5048

5149
// Define all prep targets keyed by a stable id
5250
const ALL_TARGETS = {
53-
'server-starter': {
54-
command: 'poetry install',
55-
name: 'Server Starter',
56-
cwd: path.join(integrationsRoot, 'server-starter/server/python'),
51+
"server-starter": {
52+
command: "poetry install",
53+
name: "Server Starter",
54+
cwd: path.join(integrationsRoot, "server-starter/server/python"),
5755
},
58-
'server-starter-all': {
59-
command: 'poetry install',
60-
name: 'Server AF',
61-
cwd: path.join(integrationsRoot, 'server-starter-all-features/server/python'),
56+
"server-starter-all": {
57+
command: "poetry install",
58+
name: "Server AF",
59+
cwd: path.join(integrationsRoot, "server-starter-all-features/server/python"),
6260
},
63-
'agno': {
64-
command: 'uv sync',
65-
name: 'Agno',
66-
cwd: path.join(integrationsRoot, 'agno/examples'),
61+
agno: {
62+
command: "uv sync",
63+
name: "Agno",
64+
cwd: path.join(integrationsRoot, "agno/examples"),
6765
},
68-
'crew-ai': {
69-
command: 'poetry install',
70-
name: 'CrewAI',
71-
cwd: path.join(integrationsRoot, 'crewai/python'),
66+
"crew-ai": {
67+
command: "poetry install",
68+
name: "CrewAI",
69+
cwd: path.join(integrationsRoot, "crewai/python"),
7270
},
73-
'langgraph-fastapi': {
74-
command: 'poetry install',
75-
name: 'LG FastAPI',
76-
cwd: path.join(integrationsRoot, 'langgraph/examples/python'),
71+
"langgraph-fastapi": {
72+
command: "poetry install",
73+
name: "LG FastAPI",
74+
cwd: path.join(integrationsRoot, "langgraph/examples/python"),
7775
env: {
7876
POETRY_VIRTUALENVS_IN_PROJECT: "false",
7977
},
8078
},
81-
'langgraph-platform-typescript': {
82-
command: 'pnpm install',
83-
name: 'LG Platform TS',
84-
cwd: path.join(integrationsRoot, 'langgraph/examples/typescript/'),
79+
"langgraph-platform-typescript": {
80+
command: "pnpm install",
81+
name: "LG Platform TS",
82+
cwd: path.join(integrationsRoot, "langgraph/examples/typescript/"),
8583
},
86-
'llama-index': {
87-
command: 'uv sync',
88-
name: 'Llama Index',
89-
cwd: path.join(integrationsRoot, 'llamaindex/server-py'),
84+
"llama-index": {
85+
command: "uv sync",
86+
name: "Llama Index",
87+
cwd: path.join(integrationsRoot, "llamaindex/server-py"),
9088
},
91-
'mastra': {
92-
command: 'pnpm install',
93-
name: 'Mastra',
94-
cwd: path.join(integrationsRoot, 'mastra/example'),
89+
mastra: {
90+
command: "pnpm install --no-frozen-lockfile",
91+
name: "Mastra",
92+
cwd: path.join(integrationsRoot, "mastra/example"),
9593
},
96-
'pydantic-ai': {
97-
command: 'uv sync',
98-
name: 'Pydantic AI',
99-
cwd: path.join(integrationsRoot, 'pydantic-ai/examples'),
94+
"pydantic-ai": {
95+
command: "uv sync",
96+
name: "Pydantic AI",
97+
cwd: path.join(integrationsRoot, "pydantic-ai/examples"),
10098
},
101-
'adk-middleware': {
102-
command: 'uv sync',
103-
name: 'ADK Middleware',
104-
cwd: path.join(integrationsRoot, 'adk-middleware/python/examples'),
99+
"adk-middleware": {
100+
command: "uv sync",
101+
name: "ADK Middleware",
102+
cwd: path.join(integrationsRoot, "adk-middleware/python/examples"),
105103
},
106-
'a2a-middleware': {
107-
command: 'uv sync',
108-
name: 'A2A Middleware',
109-
cwd: path.join(integrationsRoot, 'a2a-middleware/examples'),
104+
"a2a-middleware": {
105+
command: "uv sync",
106+
name: "A2A Middleware",
107+
cwd: path.join(integrationsRoot, "a2a-middleware/examples"),
110108
},
111-
'dojo': {
112-
command: 'pnpm install --no-frozen-lockfile && pnpm build --filter=demo-viewer...',
113-
name: 'Dojo',
114-
cwd: path.join(gitRoot, 'typescript-sdk'),
109+
dojo: {
110+
command: "pnpm install --no-frozen-lockfile && pnpm build --filter=demo-viewer...",
111+
name: "Dojo",
112+
cwd: path.join(gitRoot, "typescript-sdk"),
115113
},
116114
};
117115

118116
function printDryRunServices(procs) {
119-
console.log('Dry run - would install dependencies for the following services:');
120-
procs.forEach(proc => {
117+
console.log("Dry run - would install dependencies for the following services:");
118+
procs.forEach((proc) => {
121119
console.log(` - ${proc.name} (${proc.cwd})`);
122120
console.log(` Command: ${proc.command}`);
123-
console.log('');
121+
console.log("");
124122
});
125123
process.exit(0);
126124
}
@@ -150,12 +148,14 @@ async function main() {
150148
printDryRunServices(procs);
151149
}
152150

153-
const {result} = concurrently(procs);
151+
const { result } = concurrently(procs);
154152

155-
result.then(() => process.exit(0)).catch((err) => {
156-
console.error(err);
157-
process.exit(1);
158-
});
153+
result
154+
.then(() => process.exit(0))
155+
.catch((err) => {
156+
console.error(err);
157+
process.exit(1);
158+
});
159159
}
160160

161161
main();

0 commit comments

Comments
 (0)