Skip to content

Commit f75072e

Browse files
Conaclosszmarczak
authored andcommitted
Merge with master
1 parent 45a5a88 commit f75072e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
const path = require('path');
33

44
const escapeStringRegexp = require('escape-string-regexp');
5-
const isPlainObject = require('is-plain-object');
65
const execa = require('execa');
76

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

9+
function isPlainObject(x) {
10+
return x !== null && typeof x === 'object' && Reflect.getPrototypeOf(x) === Object.prototype;
11+
}
12+
1013
function isValidExtensions(extensions) {
1114
return Array.isArray(extensions) &&
1215
extensions.length > 0 &&

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
},
2121
"dependencies": {
2222
"escape-string-regexp": "^2.0.0",
23-
"execa": "^4.0.0",
24-
"is-plain-object": "^3.0.0"
23+
"execa": "^4.0.0"
2524
},
2625
"devDependencies": {
2726
"ava": "^3.0.0",

0 commit comments

Comments
 (0)