File tree Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -238,24 +238,22 @@ export function createBuildConfigs() {
238
238
// skip expect for now
239
239
pkg . name === 'expect'
240
240
? { }
241
- : Object . keys ( pkg . exports )
242
- . filter (
243
- key =>
244
- key !== '.' &&
245
- key !== './package.json' &&
246
- ! key . startsWith ( './bin' ) ,
247
- )
248
- . reduce ( ( previousValue , currentValue ) => {
249
- return {
250
- ...previousValue ,
251
- // skip `./`
252
- [ currentValue . slice ( 2 ) ] : path . resolve (
253
- packageDir ,
254
- './src' ,
255
- `${ currentValue } .ts` ,
256
- ) ,
257
- } ;
258
- } , { } ) ;
241
+ : Object . keys ( pkg . exports ) . reduce ( ( previousValue , currentValue ) => {
242
+ if (
243
+ currentValue !== '.' &&
244
+ currentValue !== './package.json' &&
245
+ ! currentValue . startsWith ( './bin' )
246
+ ) {
247
+ // skip `./`
248
+ previousValue [ currentValue . slice ( 2 ) ] = path . resolve (
249
+ packageDir ,
250
+ './src' ,
251
+ `${ currentValue } .ts` ,
252
+ ) ;
253
+ }
254
+
255
+ return previousValue ;
256
+ } , { } ) ;
259
257
260
258
return {
261
259
packageDir,
You can’t perform that action at this time.
0 commit comments