diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-30 20:46:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-30 20:46:15 +0800 |
commit | 95eb11405156a42ae734ed74945b44a9125d23b3 (patch) | |
tree | c79f7e07f8b4922a022ced183422156808bd5571 /packages/monorepo-scripts/src/postpublish_utils.ts | |
parent | 9c856de49ce0871b2093df90ab46410e91381424 (diff) | |
download | dexon-sol-tools-95eb11405156a42ae734ed74945b44a9125d23b3.tar.gz dexon-sol-tools-95eb11405156a42ae734ed74945b44a9125d23b3.tar.zst dexon-sol-tools-95eb11405156a42ae734ed74945b44a9125d23b3.zip |
rename variable called `path` to `includePath` to avoid conflict with `path` package
Diffstat (limited to 'packages/monorepo-scripts/src/postpublish_utils.ts')
-rw-r--r-- | packages/monorepo-scripts/src/postpublish_utils.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/monorepo-scripts/src/postpublish_utils.ts b/packages/monorepo-scripts/src/postpublish_utils.ts index 898b00c47..c4f3135a5 100644 --- a/packages/monorepo-scripts/src/postpublish_utils.ts +++ b/packages/monorepo-scripts/src/postpublish_utils.ts @@ -122,14 +122,16 @@ export const postpublishUtils = { }, adjustFileIncludePaths(fileIncludes: string[], cwd: string): string[] { const fileIncludesAdjusted = _.map(fileIncludes, fileInclude => { - let path = _.startsWith(fileInclude, './') ? `${cwd}/${fileInclude.substr(2)}` : `${cwd}/${fileInclude}`; + let includePath = _.startsWith(fileInclude, './') + ? `${cwd}/${fileInclude.substr(2)}` + : `${cwd}/${fileInclude}`; // HACK: tsconfig.json needs wildcard directory endings as `/**/*` // but TypeDoc needs it as `/**` in order to pick up files at the root - if (_.endsWith(path, '/**/*')) { - path = path.slice(0, -2); + if (_.endsWith(includePath, '/**/*')) { + includePath = includePath.slice(0, -2); } - return path; + return includePath; }); return fileIncludesAdjusted; }, |