Skip empty lines and comments in link-config file (#32589)
This commit is contained in:
committed by
GitHub
parent
29edb9ca29
commit
c2ed88fbf0
@@ -27,6 +27,7 @@ try {
|
||||
|
||||
const configFile = await fs.readFile(configPath, "utf-8");
|
||||
for (const line of configFile.trim().split("\n")) {
|
||||
if (!line || line.startsWith("#")) continue;
|
||||
const [dependency, path] = line.split("=");
|
||||
const dependencyPath = join(nodeModulesPath, dependency);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user