MCPcopy
hub / github.com/BetaSu/big-react / resolvePkgPath

Function resolvePkgPath

scripts/rollup/utils.js:11–16  ·  view source on GitHub ↗
(pkgName, isDist)

Source from the content-addressed store, hash-verified

9const distPath = path.resolve(__dirname, '../../dist/node_modules');
10
11export function resolvePkgPath(pkgName, isDist) {
12 if (isDist) {
13 return `${distPath}/${pkgName}`;
14 }
15 return `${pkgPath}/${pkgName}`;
16}
17
18export function getPackageJSON(pkgName) {
19 // ...包路径

Callers 5

react.config.jsFile · 0.90
vite.config.jsFile · 0.90
getPackageJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected