MCPcopy Create free account
hub / github.com/npm/cli / touchHiddenPackageLock

Function touchHiddenPackageLock

test/lib/commands/ls.js:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9const { cleanCwd } = require('../../fixtures/clean-snapshot')
10
11const touchHiddenPackageLock = prefix => {
12 const later = new Date(Date.now() + 10000)
13 utimesSync(`${prefix}/node_modules/.package-lock.json`, later, later)
14}
15
16t.cleanSnapshot = str => cleanCwd(str)
17

Callers 1

ls.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected