Skip to content

Commit

Permalink
temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Feb 22, 2024
1 parent 63a8918 commit 55f903f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ node_modules
*.pdb
*.sw?
/server_manager/node_modules
/server_manager/do_install_script.ts
/server_manager/gcp_install_script.ts

/server_manager/install_scripts/do_install_script.ts
/server_manager/install_scripts/gcp_install_script.ts
/output
7 changes: 6 additions & 1 deletion client/src/build/run_action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export async function runAction(actionPath, ...parameters) {
}

async function main() {
process.env.ROOT_DIR ??= getRootDir();
// TODO(daniellacosse): Hoist the build directory to the root of the project.
if (process.argv[2].startsWith('server_manager')) {
process.env.ROOT_DIR ??= path.resolve(getRootDir(), '..');
} else {
process.env.ROOT_DIR ??= getRootDir();
}
process.env.OUTPUT_DIR ??= path.join(process.env.ROOT_DIR, 'output');
process.env.BUILD_DIR ??= path.join(process.env.OUTPUT_DIR, 'build');
process.env.COVERAGE_DIR ??= path.join(process.env.OUTPUT_DIR, 'coverage');
Expand Down

0 comments on commit 55f903f

Please sign in to comment.