Commit 16fe739 1 parent 226ba5f commit 16fe739 Copy full SHA for 16fe739
File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ const execa = require('execa');
6
6
7
7
const pkg = require ( './package.json' ) ;
8
8
9
+ function isPlainObject ( x ) {
10
+ return x !== null && typeof x === 'object' && Reflect . getPrototypeOf ( x ) === Object . prototype ;
11
+ }
12
+
9
13
function isValidExtensions ( extensions ) {
10
14
return Array . isArray ( extensions ) &&
11
15
extensions . length > 0 &&
@@ -57,7 +61,7 @@ module.exports = ({negotiateProtocol}) => {
57
61
const {
58
62
extensions = [ 'ts' ] ,
59
63
rewritePaths : relativeRewritePaths ,
60
- compile = true
64
+ compile
61
65
} = config ;
62
66
63
67
const rewritePaths = Object . entries ( relativeRewritePaths ) . map ( ( [ from , to ] ) => [
Original file line number Diff line number Diff line change 19
19
"test" : " xo && nyc ava"
20
20
},
21
21
"dependencies" : {
22
- "escape-string-regexp" : " ^2 .0.0" ,
23
- "execa" : " ^4 .0.0"
22
+ "escape-string-regexp" : " ^4 .0.0" ,
23
+ "execa" : " ^5 .0.0"
24
24
},
25
25
"devDependencies" : {
26
- "ava" : " ^3.0 .0" ,
27
- "del" : " ^5.1 .0" ,
28
- "nyc" : " ^15.0 .0" ,
29
- "typescript" : " ^3.7 .5" ,
30
- "xo" : " ^0.25.3 "
26
+ "ava" : " ^3.15 .0" ,
27
+ "del" : " ^6.0 .0" ,
28
+ "nyc" : " ^15.1 .0" ,
29
+ "typescript" : " ^4.1 .5" ,
30
+ "xo" : " ^0.37.1 "
31
31
},
32
32
"nyc" : {
33
33
"reporter" : [
You can’t perform that action at this time.
0 commit comments