mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
chore: require error
This commit is contained in:
parent
4e3a567c2a
commit
bcaf5ac8bd
@ -72,7 +72,7 @@ export function getDepsConfig(cwd: string, outDir: string, depsName: string[], e
|
||||
|
||||
const depExternals = {};
|
||||
const deps = depsName.reduce<Record<string, IDepPkg>>((acc, packageName) => {
|
||||
const depEntryPath = require.resolve(packageName, { paths: [cwd] });
|
||||
const depEntryPath = path.dirname(require.resolve(`${packageName}/package.json`, { paths: [cwd] }));
|
||||
const depPkgPath = getDepPkgPath(packageName, cwd);
|
||||
const depPkg = require(depPkgPath);
|
||||
const depDir = path.dirname(depPkgPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user