-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bazel): continue to support non-exports resolution in api-golden …
…test This is needed since the CLI does not use exports yet. See: angular/angular-cli#22889
- Loading branch information
1 parent
6e4b153
commit 38f2a98
Showing
15 changed files
with
154 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
import {normalize} from 'path'; | ||
|
||
/** Normalizes a path to use Posix forward-slash separators. */ | ||
export function normalizePathToPosix(input: string): string { | ||
return normalize(input).replace(/\\/g, '/'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const fromTopLevel: boolean; |
5 changes: 5 additions & 0 deletions
5
bazel/api-golden/test/fixtures/pkg_no_exports_field/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "test-package", | ||
"type": "module", | ||
"types": "./index.d.ts" | ||
} |
5 changes: 5 additions & 0 deletions
5
bazel/api-golden/test/fixtures/pkg_no_exports_field/testing/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {fromTopLevel} from 'test-package'; | ||
|
||
export declare const anotherVariable = fromTopLevel; | ||
|
||
export declare function rawStringFn(input: string): string; |
1 change: 1 addition & 0 deletions
1
bazel/api-golden/test/fixtures/pkg_no_exports_field/testing/nested.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const nestedFile = true; |
3 changes: 3 additions & 0 deletions
3
bazel/api-golden/test/fixtures/pkg_no_exports_field/testing/nested/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"types": "../nested.d.ts" | ||
} |
3 changes: 3 additions & 0 deletions
3
bazel/api-golden/test/fixtures/pkg_no_exports_field/testing/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"types": "./index.d.ts" | ||
} |
12 changes: 12 additions & 0 deletions
12
bazel/api-golden/test/goldens/pkg_no_exports_field/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## API Report File for "test-package" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public (undocumented) | ||
export const fromTopLevel: boolean; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
15 changes: 15 additions & 0 deletions
15
bazel/api-golden/test/goldens/pkg_no_exports_field/testing/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## API Report File for "test-package_testing" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public (undocumented) | ||
export const anotherVariable = fromTopLevel; | ||
|
||
// @public (undocumented) | ||
export function rawStringFn(input: string): string; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
12 changes: 12 additions & 0 deletions
12
bazel/api-golden/test/goldens/pkg_no_exports_field/testing/nested/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## API Report File for "test-package_testing_nested" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public (undocumented) | ||
export const nestedFile = true; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |