Repository navigation
fix(bazel): ng_package creates invalid typings reexport on windows - #27827
devversion wants to merge 4 commits into
Conversation
Currently when building a package on Windows, the typings re-export for secondary entry-points is not valid TypeScript. Similarly the metadata and the "package.json" files use non-posix paths and cause inconsistency within the NPM package. For example: _package.json_ ``` "esm5": "./esm5\\core.js", "esm2015": "./esm2015\\core.js", ``` _testing.d.t.s_ (of the `core` package) ``` export * from './testing\testing'; ```
|
You can preview 18b4ab1 at https://pr27827-18b4ab1.ngbuilds.io/. |
IgorMinar
left a comment
There was a problem hiding this comment.
Can you add a test please?
|
You can preview f67e6b3 at https://pr27827-f67e6b3.ngbuilds.io/. |
f67e6b3 to
042bd56
Compare
|
You can preview 042bd56 at https://pr27827-042bd56.ngbuilds.io/. |
042bd56 to
21d86e1
Compare
This comment has been minimized.
This comment has been minimized.
59c9d63 to
9ca0bcc
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c3af68d to
0ebf011
Compare
|
You can preview c3af68d at https://pr27827-c3af68d.ngbuilds.io/. |
|
You can preview 0ebf011 at https://pr27827-0ebf011.ngbuilds.io/. |
0ebf011 to
915e54d
Compare
|
You can preview 915e54d at https://pr27827-915e54d.ngbuilds.io/. |
* Enables the ng_package golden testing on the CI * Fixes the ng_package golden testing for Windows
915e54d to
6c0c8c9
Compare
|
I've made a lot of changes, and this PR turned out way bigger than I initially planned. Closing this as I'm going to create a new PR which is easier to review. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently when building a package on Windows, the typings re-export for secondary entry-points is not valid TypeScript. Similarly the metadata and the "package.json" files use non-posix paths and cause inconsistency within the NPM package.
For example:
package.json
testing.d.ts (of the
corepackage)Note: A test for the typings re-export is already part of the
goldentesting of theng_package. Though, the golden testing seems to not run at the moment. We should try getting it work on Windows, and re-enable it on the CI in the future.