Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
fix npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Leszek Skorczyński authored and Leszek Skorczyński committed Jul 3, 2020
1 parent 42f018c commit 31c6a41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
src
tests
logs
test
coverage
babel.config.js
EdgeDriver.txt
wdio.conf.js
.*
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const getPort = require('get-port');
* @return {String} absolute file path
*/
function getFilePath(filePath, defaultFilename) {
const FILE_EXTENSION_REGEX = /\.[0-9a-z]+$/i
let absolutePath = path.resolve(filePath)
const FILE_EXTENSION_REGEX = /\.[0-9a-z]+$/i;
let absolutePath = path.resolve(filePath);
if (!FILE_EXTENSION_REGEX.test(path.basename(absolutePath))) {
absolutePath = path.join(absolutePath, defaultFilename);
}
Expand Down
2 changes: 1 addition & 1 deletion wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ exports.config = {
mochaOpts: {
ui: 'bdd',
timeout: 60000
},
}
}

0 comments on commit 31c6a41

Please sign in to comment.