-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from sanity-io/quickfix-test-module
fix: filter out test modules and comments
- Loading branch information
Showing
9 changed files
with
163 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
/** @public */ | ||
export const VERSION = '1.0.0' | ||
export * from './module1' | ||
|
||
//if this line is uncommented, a test should fail | ||
//export * from './not-imported' |
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,39 @@ | ||
export * from './module2' | ||
|
||
/** | ||
* @internal | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export interface _Dummy { | ||
field: string | ||
} | ||
|
||
declare module './module2' { | ||
export interface IncludedModuleDummy { | ||
addedField: string | ||
} | ||
} | ||
|
||
// Note: dont remove these blocks, they test that we dont include them in the final bundle | ||
|
||
/** | ||
* declare module './module2' { | ||
* interface TSDocsDummy { | ||
* field: string | ||
* } | ||
* } | ||
*/ | ||
|
||
/* | ||
declare module './module2' { | ||
interface BlockCommentDummy { | ||
field: string | ||
} | ||
} | ||
*/ | ||
|
||
// declare module './module2' { | ||
// interface CommentDummy { | ||
// field: string | ||
// } | ||
// } |
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,6 @@ | ||
/** | ||
* @public | ||
*/ | ||
export interface IncludedModuleDummy { | ||
field: string | ||
} |
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,10 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
//@ts-expect-error unused | ||
import {IncludedModuleDummy} from './module2' | ||
|
||
//this should not appear in our final bundle | ||
declare module './module2' { | ||
interface Excluded { | ||
field: string | ||
} | ||
} |
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
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