File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @secjs/config" ,
3- "version" : " 1.0.5 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " " ,
55 "license" : " MIT" ,
66 "author" : " João Lenon" ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export class Config {
4444 loadSync ( configPath = '/config' ) {
4545 Config . loadEnvs ( )
4646
47- const path = `${ process . cwd ( ) } / ${ configPath } `
47+ const path = `${ process . cwd ( ) } ${ configPath } `
4848
4949 const { files } = getFoldersSync ( path , true )
5050
@@ -56,7 +56,7 @@ export class Config {
5656 async load ( configPath = '/config' ) {
5757 Config . loadEnvs ( )
5858
59- const path = `${ process . cwd ( ) } / ${ configPath } `
59+ const path = `${ process . cwd ( ) } ${ configPath } `
6060
6161 const { files } = await getFolders ( path , true )
6262
@@ -66,9 +66,9 @@ export class Config {
6666 }
6767
6868 static verifyPath ( folderName = 'dist' ) {
69- if ( process . env . NODE_ENV === 'testing' ) return `/ ${ folderName } / config`
69+ if ( process . env . NODE_ENV === 'testing' ) return '/ config'
7070
71- return '/ config'
71+ return `/ ${ folderName } / config`
7272 }
7373
7474 private static loadEnvs ( ) {
You can’t perform that action at this time.
0 commit comments