-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added root option #4
Conversation
return this.__base(); | ||
} | ||
|
||
var content = fs.readFileSync(this.processPath(this.path), 'utf8'), | ||
instrumented = instrumenter.instrumentSync(content, path.relative(cwd, this.path)); | ||
root = this.tech._root, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кажется, переменная root не нужна
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ок, исправлю.
Исправил замечания. |
@blond Давай разберёмся, что такое Это пути к директориям, который нужно инструментить? Если так, то логично будет их резолвить от root, потому что при использовании borschik через api cwd может быть вообще левый и не подконтрольный. |
К файлам, которые нужно инструментить.
Да, согласен. Сразу так не сделал, потому что в моём случае туда сразу приходили абсолютные пути. |
🆗 |
@blond У тебя ж есть права на merge. Можем и на публикацию дать. |
@blond |
@arikon, спасибо! :) |
@blond Права на публикацию выдал |
Resolved #3