We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf8238e commit d2bc206Copy full SHA for d2bc206
projects/skwid/src/services/configuration.service.ts
@@ -1,4 +1,5 @@
1
import { inject, injectable } from 'inversify';
2
+
3
import { InjectionTokens } from '../configuration/injection-tokens.enum';
4
import { SkwidConfiguration } from '../models/configuration/skwid-configuration.model';
5
import { FileSystemService } from '../models/node/file-system.service';
@@ -35,7 +36,7 @@ export class ConfigurationService {
35
36
37
private resolveConfigFilePath(): string {
38
let possiblePath = process.cwd();
- while (possiblePath) {
39
+ while (possiblePath && possiblePath !== '/') {
40
let configPath = this._pathService.join(possiblePath, 'skwid.yaml');
41
if (this._fileSystem.existsSync(configPath)) {
42
return configPath;
0 commit comments