<rootDir>
is accepted in a path passed into buildinclude
and resolves to root directory of current application.
<rootDir>
const bp = new BuildProcess();
const opt = {
comment: {
type: "singleAsterisk"
},
breakstring: {
width: 60,
flags: "word"
},
match: {
kind: "bracketIncludeMulti"
},
text: {
indent: true
}
};
const results = bp.buildInclude('', '<rootDir>/test/fixtures/bi-replace01.txt', opt);
console.log(results);
File contents can be passed directly into buldInclude
See example: Pass File contents
Generated using TypeDoc