File tree Expand file tree Collapse file tree 3 files changed +34
-8
lines changed Expand file tree Collapse file tree 3 files changed +34
-8
lines changed Original file line number Diff line number Diff line change @@ -111,20 +111,20 @@ exports[`unit:EXPORT_LIST_REGEX > exports > should match nested export statement
111
111
},
112
112
},
113
113
{
114
- " 0" : " export type { Config, Result }" ,
114
+ " 0" : " export type { default as Options }" ,
115
115
" 1" : " type" ,
116
- " 2" : " { Config, Result }" ,
116
+ " 2" : " { default as Options }" ,
117
117
" groups" : {
118
- " exports" : " { Config, Result }" ,
118
+ " exports" : " { default as Options }" ,
119
119
" type" : " type" ,
120
120
},
121
121
} ,
122
122
{
123
- " 0" : " export type { default as Options }" ,
123
+ " 0" : " export type { Config, Result }" ,
124
124
" 1" : " type" ,
125
- " 2" : " { default as Options }" ,
125
+ " 2" : " { Config, Result }" ,
126
126
" groups" : {
127
- " exports" : " { default as Options }" ,
127
+ " exports" : " { Config, Result }" ,
128
128
" type" : " type" ,
129
129
},
130
130
} ,
Original file line number Diff line number Diff line change @@ -118,8 +118,34 @@ describe('unit:EXPORT_LIST_REGEX', () => {
118
118
plugin as default,
119
119
type Options
120
120
}
121
- export type { Config, Result }
121
+ export { defineBuildConfig, type BuildConfig } from "#src"
122
+ export type {
123
+ JsonObject,
124
+ LiteralUnion,
125
+ Nullable
126
+ } from '@flex-development/tutils'
127
+ export {
128
+ addFive,
129
+ addFour,
130
+ addThree,
131
+ addTwo,
132
+ squareFive,
133
+ squareFour,
134
+ squareThree,
135
+ squareTwo
136
+ } from './lib'
137
+ export * as constants from "./constants"
122
138
export type { default as Options }
139
+ export type { default as Options } from "./options"
140
+ export * from './utils'
141
+ export interface User {}
142
+ export abstract class House {}
143
+ export const { name1, name2: bar } = o;
144
+ export const [ name1, name2 ] = array;
145
+ export default async function foo() {}
146
+ export default foo
147
+ export default 1 + 1;
148
+ export type { Config, Result }
123
149
}
124
150
`
125
151
Original file line number Diff line number Diff line change 53
53
* @const {RegExp} EXPORT_LIST_REGEX
54
54
*/
55
55
const EXPORT_LIST_REGEX : RegExp =
56
- / (?< = ^ | [ \n ; ] (?: [ \t ] * (?: \w + ) ? ) ? ) e x p o r t (?: (?: \s + (?< type > t y p e ) \s * ) | \s * ) (?< exports > { [ \w \t \n \r " $ ' * , . / { } - ] + ?} ) (? = ; ? [ \t \n ; ] * ? (? ! (?: \n * \/ \/ ) | (?: \n * \/ \* ) | (?: \s * f r o m . * ? ) ) ) / g
56
+ / (?< = ^ [ \t ] * | [ \n ; ] (?: [ \t ] * (?: \w + ) ? ) ? ) e x p o r t (?: (?: \s + (?< type > t y p e ) \s * ) | \s * ) (?< exports > { [ \w \t \n \r " $ ' * , . / - ] * ?} ) (? = [ \t \n ; ] (? ! f r o m ) | $ ) / g
57
57
58
58
export default EXPORT_LIST_REGEX
You can’t perform that action at this time.
0 commit comments