diff --git a/.gitignore b/.gitignore index 11a898b..80d3a0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,7 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. /build -/configs/* -!/configs/*.example.json +/configs # compiled output /dist diff --git a/configs/Ping.example.json b/configs_example/Ping.example.json similarity index 100% rename from configs/Ping.example.json rename to configs_example/Ping.example.json diff --git a/configs/ServiceAnnouncement.example.json b/configs_example/ServiceAnnouncement.example.json similarity index 100% rename from configs/ServiceAnnouncement.example.json rename to configs_example/ServiceAnnouncement.example.json diff --git a/src/providers/Configuration.ts b/src/providers/Configuration.ts index e4170bc..55331be 100644 --- a/src/providers/Configuration.ts +++ b/src/providers/Configuration.ts @@ -39,7 +39,7 @@ class Configuration { private copyExampleIfNotExists(file: string): void { const dir = path.join(process.cwd(), 'configs/'); if (!fs.existsSync(path.join(dir, file))) { - fs.copyFileSync(path.join(process.cwd(), 'configs/', `${file.replace('.json', '.example.json')}`), path.join(dir, file)); + fs.copyFileSync(path.join(process.cwd(), 'configs_example/', `${file.replace('.json', '.example.json')}`), path.join(dir, file)); } }