Skip to content

Commit 44d1aaa

Browse files
committed
Service files taken relatively from module
1 parent a506b98 commit 44d1aaa

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

dist/conf.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/** Configuration constants */
21
import { MethodName, NativeNames } from './types';
32
export declare const outDir = "src/api";
4-
export declare const servicesDir = "services";
3+
export declare const servicesDir: string;
54
export declare const defsDir = "defs";
65
export declare const apiDir = "controllers";
76
export declare const apiFile = "conf/api/api-docs.json";

dist/conf.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/conf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/generate.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/generate.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/conf.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/** Configuration constants */
2+
import { join } from 'path';
3+
24
import { MethodName, NativeNames } from './types';
35

46
// relative to project root
57
export const outDir = 'src/api';
6-
export const servicesDir = 'services';
8+
export const servicesDir = join(__dirname, '..', 'services');
79
export const defsDir = 'defs';
810
export const apiDir = 'controllers';
911
export const apiFile = 'conf/api/api-docs.json';

src/generate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function generate(src: string = conf.apiFile, dest: string = conf
2222

2323
const header = processHeader(schema);
2424

25+
// TODO(janwalter) aplly and create dest
2526
processPaths(schema.paths, `http://${schema.host}${schema.basePath}${conf.swaggerFile}`, header);
2627
processDefinitions(schema.definitions, header);
2728

0 commit comments

Comments
 (0)