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

Method allow

scripts/bundle-and-gitignore-deps.js:116–125  ·  view source on GitHub ↗
({ use = true } = {})

Source from the content-addressed store, hash-verified

114 }
115
116 allow ({ use = true } = {}) {
117 if (use) {
118 this.use()
119 }
120 // Allow a previously ignored directory but ignore everything inside
121 return [
122 ...this.allowContents({ use: false, isDirectory: true }),
123 `/${this.used.join('/')}/*`,
124 ]
125 }
126 }
127
128 const gatherAllows = (pathParts, usedParts) => {

Callers 1

gatherAllowsFunction · 0.95

Calls 2

useMethod · 0.95
allowContentsMethod · 0.95

Tested by

no test coverage detected