-
Notifications
You must be signed in to change notification settings - Fork 522
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
fix: exporting symbols from @bazel/concatjs #3286
Conversation
"downlevelIteration": true, | ||
"rootDirs": [ | ||
".", | ||
"../../bazel-out/darwin-fastbuild/bin/packages/concatjs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI error is that you're missing some possible paths here
ERROR: /home/circleci/rules_nodejs/packages/concatjs/BUILD.bazel:23:11: Compiling TypeScript project //packages/concatjs:bazel_concatjs_lib [tsc -p packages/concatjs/tsconfig.json] failed: (Exit 2): tsc.sh failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/typescript/bin/tsc.sh --project packages/concatjs/tsconfig.json --outDir bazel-out/k8-opt-exec-2B5CBBC6/bin/packages/concatjs --rootDir packages/concatjs ... (remaining 3 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox
packages/concatjs/index.ts(131,15): error TS2307: Cannot find module './internal/tsc_wrapped' or its corresponding type declarations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k8-opt-exec-2B5CBBC6
darwin-opt-exec-2B5CBBC6
windows-opt-exec-2B5CBBC6
These are the outputs trees for the host (2B5CBBC6) execution platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall ever seeing a linux-*
platform. Where did those ones come from?
a228e63
to
dee4ee2
Compare
The windows failure is due to lack of sandboxing. I can repro locally on linux as well:
The reason is that |
Okay so you can add HOWEVER then you hit the next TS bug microsoft/TypeScript#22208 which means that when it sees |
import with this: @bazel/concatjs/internal/tsc_wrapped |
@dymart Haha, I was going to ask if you plan on still doing this somewhere else, but I agree that the internal import is sufficient. thx for the update here (I was having some todos referring to this PR) |
@devversion is you have any questions or anything feel free to ping. I've done some work to migrate the dev-infra, angular and angular-cli repos to rules_nodejs 5 on some exploratory branches |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
symbols from @bazel/typescript were not exported after they moved to @bazel/concatjs
What is the new behavior?
export all needed symbols from @bazel/concatjs
Does this PR introduce a breaking change?
Other information