Skip to content

Commit

Permalink
fix some path issues caused by moving into src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed May 15, 2020
1 parent 7f85122 commit 9ef4653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-plugin-helpers/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { createCommanderAction } from './lib/commander_action';
import { docs } from './lib/docs';
import { enableCollectingUnknownOptions } from './lib/enable_collecting_unknown_options';

const pkg = JSON.parse(Fs.readFileSync(Path.resolve(__dirname, 'package.json'), 'utf8'));
const pkg = JSON.parse(Fs.readFileSync(Path.resolve(__dirname, '../package.json'), 'utf8'));
program.version(pkg.version);

enableCollectingUnknownOptions(
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-plugin-helpers/src/lib/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function indent(txt: string, n: number) {
}

export function docs(name: string) {
const md = readFileSync(resolve(__dirname, '../tasks', name, 'README.md'), 'utf8');
const md = readFileSync(resolve(__dirname, '../../src/tasks', name, 'README.md'), 'utf8');

return function() {
/* eslint-disable-next-line no-console */
Expand Down

0 comments on commit 9ef4653

Please sign in to comment.