Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Apr 9, 2021
1 parent 226ba5f commit 16fe739
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const execa = require('execa');

const pkg = require('./package.json');

function isPlainObject(x) {
return x !== null && typeof x === 'object' && Reflect.getPrototypeOf(x) === Object.prototype;
}

function isValidExtensions(extensions) {
return Array.isArray(extensions) &&
extensions.length > 0 &&
Expand Down Expand Up @@ -57,7 +61,7 @@ module.exports = ({negotiateProtocol}) => {
const {
extensions = ['ts'],
rewritePaths: relativeRewritePaths,
compile = true
compile
} = config;

const rewritePaths = Object.entries(relativeRewritePaths).map(([from, to]) => [
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"test": "xo && nyc ava"
},
"dependencies": {
"escape-string-regexp": "^2.0.0",
"execa": "^4.0.0"
"escape-string-regexp": "^4.0.0",
"execa": "^5.0.0"
},
"devDependencies": {
"ava": "^3.0.0",
"del": "^5.1.0",
"nyc": "^15.0.0",
"typescript": "^3.7.5",
"xo": "^0.25.3"
"ava": "^3.15.0",
"del": "^6.0.0",
"nyc": "^15.1.0",
"typescript": "^4.1.5",
"xo": "^0.37.1"
},
"nyc": {
"reporter": [
Expand Down

0 comments on commit 16fe739

Please sign in to comment.