test(make-dedicated-lockfile): fix on Windows

This commit is contained in:
Zoltan Kochan
2021-03-01 03:50:07 +02:00
parent 3d0f529ac3
commit edbb57c03b
3 changed files with 6 additions and 6 deletions

View File

@@ -46,9 +46,9 @@
},
"funding": "https://opencollective.com/pnpm",
"devDependencies": {
"@pnpm/prepare": "workspace:0.0.17",
"@types/ncp": "^2.0.4",
"@types/ramda": "^0.27.35",
"ncp": "^2.0.0",
"tempy": "^1.0.0"
"ncp": "^2.0.0"
}
}

View File

@@ -1,7 +1,7 @@
import { promisify } from 'util'
import path from 'path'
import { readWantedLockfile } from '@pnpm/lockfile-file'
import tempy from 'tempy'
import { tempDir } from '@pnpm/prepare'
import ncpCB from 'ncp'
import makeDedicatedLockfile from '../lib'
@@ -10,7 +10,7 @@ const ncp = promisify(ncpCB)
const fixture = path.join(__dirname, 'fixture')
test('makeDedicatedLockfile()', async () => {
const tmp = tempy.directory()
const tmp = tempDir()
await ncp(fixture, tmp)
const projectDir = path.join(tmp, 'packages/is-negative')
await makeDedicatedLockfile(tmp, projectDir)

4
pnpm-lock.yaml generated
View File

@@ -1122,10 +1122,10 @@ importers:
rename-overwrite: 3.1.0
devDependencies:
'@pnpm/make-dedicated-lockfile': 'link:'
'@pnpm/prepare': link:../../privatePackages/prepare
'@types/ncp': 2.0.4
'@types/ramda': 0.27.38
ncp: 2.0.0
tempy: 1.0.0
specifiers:
'@pnpm/error': workspace:1.4.0
'@pnpm/exec': ^2.0.0
@@ -1134,6 +1134,7 @@ importers:
'@pnpm/lockfile-file': workspace:3.2.0
'@pnpm/logger': ^3.2.3
'@pnpm/make-dedicated-lockfile': 'link:'
'@pnpm/prepare': workspace:0.0.17
'@pnpm/prune-lockfile': workspace:2.0.19
'@pnpm/read-project-manifest': workspace:1.1.7
'@pnpm/types': workspace:6.4.0
@@ -1142,7 +1143,6 @@ importers:
ncp: ^2.0.0
ramda: ^0.27.1
rename-overwrite: ^3.1.0
tempy: ^1.0.0
packages/manifest-utils:
dependencies: