mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-12 02:57:44 -04:00
fix(reporter): normalize path
This commit is contained in:
5
.changeset/stale-poets-relate.md
Normal file
5
.changeset/stale-poets-relate.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/default-reporter": patch
|
||||
---
|
||||
|
||||
Normalize path in context reporting.
|
||||
@@ -1,6 +1,7 @@
|
||||
import { ContextLog, PackageImportMethodLog } from '@pnpm/core-loggers'
|
||||
import * as Rx from 'rxjs'
|
||||
import { map, take } from 'rxjs/operators'
|
||||
import normalize = require('normalize-path')
|
||||
import path = require('path')
|
||||
|
||||
export default (
|
||||
@@ -39,7 +40,7 @@ export default (
|
||||
msg: `\
|
||||
Packages are ${method} from the content-addressable store to the virtual store.
|
||||
Content-addressable store is at: ${context.storeDir}
|
||||
Virtual store is at: ${path.relative(opts.cwd, context.virtualStoreDir)}`,
|
||||
Virtual store is at: ${normalize(path.relative(opts.cwd, context.virtualStoreDir))}`,
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user