mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
checkPlugin: Resolve plugin directory symlinks
This works around weird npm bugs.
This commit is contained in:
parent
d9044537bb
commit
9ed1e43593
1 changed files with 2 additions and 3 deletions
|
@ -27,14 +27,13 @@ const path = require('path');
|
|||
const pluginName = process.argv[2];
|
||||
|
||||
if (!pluginName) throw new Error('no plugin name specified');
|
||||
|
||||
const pluginPath = `node_modules/${pluginName}`;
|
||||
|
||||
console.log(`Checking the plugin: ${pluginName}`);
|
||||
|
||||
const epRootDir = await fsp.realpath(path.join(await fsp.realpath(__dirname), '../../..'));
|
||||
console.log(`Etherpad root directory: ${epRootDir}`);
|
||||
process.chdir(epRootDir);
|
||||
const pluginPath = await fsp.realpath(`node_modules/${pluginName}`);
|
||||
console.log(`Plugin directory: ${pluginPath}`);
|
||||
|
||||
const optArgs = process.argv.slice(3);
|
||||
const autoPush = optArgs.includes('autopush');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue