aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-30 20:46:15 +0800
committerFabio Berger <me@fabioberger.com>2018-03-30 20:46:15 +0800
commit95eb11405156a42ae734ed74945b44a9125d23b3 (patch)
treec79f7e07f8b4922a022ced183422156808bd5571 /packages/monorepo-scripts/src
parent9c856de49ce0871b2093df90ab46410e91381424 (diff)
downloaddexon-0x-contracts-95eb11405156a42ae734ed74945b44a9125d23b3.tar
dexon-0x-contracts-95eb11405156a42ae734ed74945b44a9125d23b3.tar.gz
dexon-0x-contracts-95eb11405156a42ae734ed74945b44a9125d23b3.tar.bz2
dexon-0x-contracts-95eb11405156a42ae734ed74945b44a9125d23b3.tar.lz
dexon-0x-contracts-95eb11405156a42ae734ed74945b44a9125d23b3.tar.xz
dexon-0x-contracts-95eb11405156a42ae734ed74945b44a9125d23b3.tar.zst
dexon-0x-contracts-95eb11405156a42ae734ed74945b44a9125d23b3.zip
rename variable called `path` to `includePath` to avoid conflict with `path` package
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r--packages/monorepo-scripts/src/postpublish_utils.ts10
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;
},