Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jun 24, 2020
1 parent 9c4e860 commit 3dee424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrationTests/ts/test.js
Expand Up @@ -6,6 +6,7 @@ const path = require('path');
const childProcess = require('child_process');
const assert = require('assert');
const fs = require('fs');

const glob = require('glob');
const semver = require('semver');

Expand Down Expand Up @@ -38,9 +39,8 @@ const templates = glob.sync('./*.ts.template').map((filename) => {
const finalContent = content.replace(regex, (_, versionRange, payload) => {
if (semver.satisfies(version, versionRange)) {
return payload;
} else {
return '';
}
return '';
});
fs.writeFileSync(targetFilename, finalContent);
};
Expand Down

0 comments on commit 3dee424

Please sign in to comment.