Skip to content

Avoid hard-wired build-tree paths #46414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

elibarzilay
Copy link
Contributor

Instead, search for stuff up the directory tree, with the main
functionality being to look for Gulpfile.js and assume the resulting
directory is the root.

(Unfortunatley, this is implemented twice, one in scripts and another
in src. It's not possible to use a single implementation for both
since that would require assuming a directory structure which this is
intended to avoid.)

Also, in scripts/build/projects.js, abstracdt common exec
functionality into a local helper, and use full paths based on the above
search instead of assuming relative paths assuming CWD being in the
project root.

Fixes #

Instead, search for stuff up the directory tree, with the main
functionality being to look for `Gulpfile.js` and assume the resulting
directory is the root.

(Unfortunatley, this is implemented twice, one in `scripts` and another
in `src`.  It's not possible to use a single implementation for both
since that would require assuming a directory structure which this is
intended to avoid.)

Also, in `scripts/build/projects.js`, abstracdt common exec
functionality into a local helper, and use full paths based on the above
search instead of assuming relative paths assuming CWD being in the
project root.
@elibarzilay elibarzilay merged commit 556098e into microsoft:main Oct 18, 2021
@elibarzilay elibarzilay deleted the find-up-dir branch October 18, 2021 21:43
elibarzilay added a commit to elibarzilay/TypeScript that referenced this pull request Oct 26, 2021
Missed a bunch of stuff in microsoft#46414 (556098e).
elibarzilay added a commit to elibarzilay/TypeScript that referenced this pull request Oct 28, 2021
Missed a bunch of stuff in microsoft#46414 (556098e).
elibarzilay added a commit that referenced this pull request Nov 1, 2021
Missed a bunch of stuff in #46414 (556098e).
mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants