@@ -266,7 +266,7 @@ describe('Library Schematic', () => {
266
266
const tree = await schematicRunner . runSchematic ( 'library' , defaultOptions , workspaceTree ) ;
267
267
268
268
const tsConfigJson = getJsonFileContent ( tree , 'tsconfig.json' ) ;
269
- expect ( tsConfigJson . compilerOptions . paths [ 'foo' ] ) . toEqual ( [ 'dist/foo' ] ) ;
269
+ expect ( tsConfigJson . compilerOptions . paths [ 'foo' ] ) . toEqual ( [ './ dist/foo' ] ) ;
270
270
} ) ;
271
271
272
272
it ( `should append to existing paths mappings` , async ( ) => {
@@ -284,7 +284,7 @@ describe('Library Schematic', () => {
284
284
const tree = await schematicRunner . runSchematic ( 'library' , defaultOptions , workspaceTree ) ;
285
285
286
286
const tsConfigJson = getJsonFileContent ( tree , 'tsconfig.json' ) ;
287
- expect ( tsConfigJson . compilerOptions . paths [ 'foo' ] ) . toEqual ( [ 'libs/*' , 'dist/foo' ] ) ;
287
+ expect ( tsConfigJson . compilerOptions . paths [ 'foo' ] ) . toEqual ( [ 'libs/*' , './ dist/foo' ] ) ;
288
288
} ) ;
289
289
290
290
it ( `should not modify the file when --skipTsConfig` , async ( ) => {
@@ -333,7 +333,7 @@ describe('Library Schematic', () => {
333
333
expect ( cfg . projects [ '@myscope/mylib' ] ) . toBeDefined ( ) ;
334
334
335
335
const rootTsCfg = getJsonFileContent ( tree , '/tsconfig.json' ) ;
336
- expect ( rootTsCfg . compilerOptions . paths [ '@myscope/mylib' ] ) . toEqual ( [ 'dist/myscope/mylib' ] ) ;
336
+ expect ( rootTsCfg . compilerOptions . paths [ '@myscope/mylib' ] ) . toEqual ( [ './ dist/myscope/mylib' ] ) ;
337
337
} ) ;
338
338
339
339
it ( `should dasherize scoped libraries` , async ( ) => {
0 commit comments