yarn-pnp-test
Advanced tools
Comparing version 0.1.0-beta.23 to 0.1.0-beta.24
@@ -18,3 +18,3 @@ { | ||
}, | ||
"version": "0.1.0-beta.23" | ||
"version": "0.1.0-beta.24" | ||
} |
12
pnp.js
@@ -23,10 +23,6 @@ #!/usr/bin/env node | ||
const bin = () => { | ||
const { createRequire, findPnpApi } = require('module'); | ||
const { createRequire } = require('module'); | ||
const targetModule = __filename; | ||
const targetRequire = createRequire(__filename); | ||
const targetPnp = findPnpApi(targetModule); | ||
const targetRequire = createRequire(targetModule); | ||
const packageName = process.argv[2]; | ||
@@ -36,3 +32,3 @@ | ||
const packageResolved = targetPnp.resolveRequest(packagePath, targetModule); | ||
const packageResolved = targetRequire.resolve(packagePath); | ||
@@ -51,3 +47,3 @@ const package = targetRequire(packageResolved); | ||
const binResolved = targetPnp.resolveRequest(binPath, targetModule); | ||
const binResolved = targetRequire.resolve(binPath); | ||
@@ -54,0 +50,0 @@ process.argv.splice(2, 2); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1880
40