Skip to content

Commit

Permalink
remove process.cwd(), to use a correct folder structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtreemrage committed Dec 21, 2017
1 parent fd0ca8e commit e926250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e926250

Please sign in to comment.