From fd0ca8e18e365840a2c50c12151f97f9935bfa89 Mon Sep 17 00:00:00 2001 From: xtreemrage Date: Thu, 21 Dec 2017 12:16:08 +0100 Subject: [PATCH 1/2] add *.iml files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 965615b..b037448 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules .tmp .idea npm-debug.log +*.iml From e9262501c4457db3c98915fb863fea06da011718 Mon Sep 17 00:00:00 2001 From: xtreemrage Date: Thu, 21 Dec 2017 12:18:19 +0100 Subject: [PATCH 2/2] remove process.cwd(), to use a correct folder structure. --- lib/download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/download.js b/lib/download.js index 9f9f761..7686665 100644 --- a/lib/download.js +++ b/lib/download.js @@ -43,7 +43,7 @@ module.exports.allLibsFile = function allLibsFile(options) { module.exports.schemas = function schemas(options, allLibs) { const allLibsRegistry = allLibs.all_libs; const downloadPromises = []; - fs.emptyDirSync(path.join(process.cwd(), options.outputDir, options.version)); + fs.emptyDirSync(path.join(options.outputDir, options.version)); for (let i = 0; i < allLibsRegistry.length; i += 1) { const schemaFileName = allLibsRegistry[i].entry.replace(/\//g, '.') + schemaSuffix;