Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions examples/workflow-test/scripts/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ if (vscode || all) {

run(`${repo} clone ${repos.join(' ')}`);

if (repos.includes('glsp-vscode-integration')) {
// The glsp-vscode-integration repo is a lerna monorepo that gets cloned into the `.repositories`
// directory of this (also lerna-based) repo. Without an `nx.json` marking the repo root, lerna
// walks up the directory tree, detects the nesting and fails. Adding an empty `nx.json` tells
// lerna to stop the lookup at the repo root.
const nxJson = resolve(rootDir, '.repositories', 'glsp-vscode-integration', 'nx.json');
console.log(`Adding ${nxJson}`);
writeFileSync(nxJson, '{}');
}

if (!skipBuild) {
run(`${repo} build`);
if (repos.includes('glsp-vscode-integration')) {
Expand Down
Loading