Comparing version 0.2.1 to 0.2.2
@@ -40,2 +40,3 @@ "use strict"; | ||
nodir: true, | ||
ignore: options.ignore, | ||
}); | ||
@@ -68,2 +69,3 @@ for (let k = 0; k < files.length; k++) { | ||
nodir: true, | ||
ignore: options.ignore, | ||
}); | ||
@@ -70,0 +72,0 @@ const element = files.shift(); |
@@ -28,2 +28,3 @@ "use strict"; | ||
nodir: true, | ||
ignore: options.ignore, | ||
}); | ||
@@ -54,2 +55,3 @@ for (let k = 0; k < files.length; k++) { | ||
nodir: true, | ||
ignore: options.ignore, | ||
}); | ||
@@ -56,0 +58,0 @@ const element = files.shift(); |
@@ -8,2 +8,3 @@ export declare type LocatorInfo = { | ||
path: string | string[]; | ||
ignore: string | string[]; | ||
}; |
@@ -12,2 +12,3 @@ "use strict"; | ||
function buildLocatorOptions(options) { | ||
var _a; | ||
options = options || {}; | ||
@@ -19,2 +20,3 @@ options.path = options.path || []; | ||
} | ||
(_a = options.ignore) !== null && _a !== void 0 ? _a : (options.ignore = []); | ||
return options; | ||
@@ -21,0 +23,0 @@ } |
{ | ||
"name": "locter", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Locter is a library to locate a file by criteria and load it", | ||
@@ -19,3 +19,3 @@ "author": { | ||
"scripts": { | ||
"build": "rm -rf ./dist && tsc", | ||
"build": "rimraf dist && tsc -d", | ||
"build:watch": "npm run build -- --watch", | ||
@@ -25,3 +25,4 @@ "test": "cross-env NODE_ENV=test jest --config ./test/jest.config.js", | ||
"lint": "eslint --ext .js,.vue,.ts ./src", | ||
"lint:fix": "npm run lint -- --fix" | ||
"lint:fix": "npm run lint -- --fix", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -46,2 +47,3 @@ "keywords": [ | ||
"np": "^7.6.2", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^27.1.4", | ||
@@ -48,0 +50,0 @@ "ts-node": "^10.9.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47075
717
14