File tree Expand file tree Collapse file tree
recipes/correct-ts-specifiers/tests/e2e Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { URL } from 'node:url' ;
2+
3+ import { bar } from '@dep/bar' ;
4+ import { foo } from 'foo' ;
5+
16import { Bird } from './Bird/index.ts' ;
27import { Cat } from './Cat.ts' ;
8+ import { Dog } from '…/Dog/index.mjs' ;
9+ import { baseUrl } from '#config.js' ;
10+ import { qux } from './qux.js/index.ts' ;
311
412export type { Zed } from './zed.d.ts' ;
513
14+ // should.js be unchanged
15+
616const nil = await import ( './nil.ts' ) ;
717
818const bird = new Bird ( 'Tweety' ) ;
919const cat = new Cat ( 'Milo' ) ;
20+ const dog = new Dog ( 'Otis' ) ;
21+
22+ export const makeLink = ( path : URL ) => ( new URL ( path , baseUrl ) ) . href ;
1023
1124console . log ( 'bird:' , bird ) ;
1225console . log ( 'cat:' , cat ) ;
26+ console . log ( 'dog:' , dog ) ;
27+ console . log ( 'foo:' , foo ) ;
28+ console . log ( 'bar:' , bar ) ;
1329console . log ( 'nil:' , nil ) ;
Original file line number Diff line number Diff line change 1+ import { URL } from 'node:url' ;
2+
3+ import { bar } from '@dep/bar' ;
4+ import { foo } from 'foo' ;
5+
16import { Bird } from './Bird' ;
27import { Cat } from './Cat.ts' ;
8+ import { Dog } from '…/Dog/index.mjs' ;
9+ import { baseUrl } from '#config.js' ;
10+ import { qux } from './qux.js' ;
311
412export { Zed } from './zed' ;
513
14+ // should.js be unchanged
15+
616const nil = await import ( './nil.js' ) ;
717
818const bird = new Bird ( 'Tweety' ) ;
919const cat = new Cat ( 'Milo' ) ;
20+ const dog = new Dog ( 'Otis' ) ;
21+
22+ export const makeLink = ( path : URL ) => ( new URL ( path , baseUrl ) ) . href ;
1023
1124console . log ( 'bird:' , bird ) ;
1225console . log ( 'cat:' , cat ) ;
26+ console . log ( 'dog:' , dog ) ;
27+ console . log ( 'foo:' , foo ) ;
28+ console . log ( 'bar:' , bar ) ;
1329console . log ( 'nil:' , nil ) ;
You can’t perform that action at this time.
0 commit comments