@travetto/base
Advanced tools
Comparing version 3.0.0-rc.1 to 3.0.0-rc.2
{ | ||
"name": "@travetto/base", | ||
"displayName": "Base", | ||
"version": "3.0.0-rc.1", | ||
"version": "3.0.0-rc.2", | ||
"description": "Application phase management, environment config and common utilities for travetto applications.", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@travetto/cli": "^3.0.0-rc.1" | ||
"@travetto/cli": "^3.0.0-rc.2" | ||
}, | ||
@@ -37,0 +37,0 @@ "peerDependenciesMeta": { |
@@ -60,4 +60,8 @@ import * as fs from 'fs/promises'; | ||
*/ | ||
addPath(searchPath: string): void { | ||
this.#paths.push(PathUtil.resolveUnix(searchPath)); | ||
addPath(searchPath: string, index = -1): void { | ||
if (index < 0) { | ||
this.#paths.push(PathUtil.resolveUnix(searchPath)); | ||
} else { | ||
this.#paths.splice(index, 0, PathUtil.resolveUnix(searchPath)); | ||
} | ||
} | ||
@@ -64,0 +68,0 @@ |
69943
1702