We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
elasticsearch
1 parent 0e38912 commit 1d2235cCopy full SHA for 1d2235c
src/ElasticApiParser.js
@@ -123,7 +123,8 @@ export default class ElasticApiParser {
123
}
124
125
static findApiVersionFile(version: string): string {
126
- const apiFolder = './node_modules/elasticsearch/src/lib/apis/';
+ const esModulePath = path.dirname(require.resolve('elasticsearch'));
127
+ const apiFolder = `${esModulePath}/lib/apis/`;
128
const apiListFile = path.resolve(apiFolder, 'index.js');
129
const apiListCode = ElasticApiParser.loadApiListFile(apiListFile);
130
0 commit comments