Skip to content

Commit

Permalink
Merge pull request #11 from xtreemrage/downloading-schema-files
Browse files Browse the repository at this point in the history
Downloading schema files
  • Loading branch information
cschuff authored Jan 13, 2018
2 parents 159d080 + e926250 commit a7bfd8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
.tmp
.idea
npm-debug.log
*.iml
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 a7bfd8f

Please sign in to comment.