Browse Source

chore(server): Fix tslint/prettier conflict, nodemon setting

Michael Bromley 7 years ago
parent
commit
f4b248209d
2 changed files with 3 additions and 1 deletions
  1. 1 1
      server/nodemon-debug.json
  2. 2 0
      server/src/bootstrap.ts

+ 1 - 1
server/nodemon-debug.json

@@ -1,5 +1,5 @@
 {
-  "watch": ["src"],
+  "watch": ["src", "index-dev.ts"],
   "ext": "ts",
   "ignore": ["src/**/*.spec.ts", "mock-data/**/*"],
   "exec": "node --inspect=5858 -r ts-node/register index-dev.ts"

+ 2 - 0
server/src/bootstrap.ts

@@ -12,6 +12,7 @@ export async function bootstrap(userConfig?: Partial<VendureConfig>) {
     // Entities *must* be loaded after the user config is set in order for the
     // base VendureEntity to be correctly configured with the primary key type
     // specified in the EntityIdStrategy.
+    // tslint:disable-next-line:whitespace
     const entities = await import('./entity/entities');
     setConfig({
         dbConnectionOptions: {
@@ -21,6 +22,7 @@ export async function bootstrap(userConfig?: Partial<VendureConfig>) {
 
     // The AppModule *must* be loaded only after the entities have been set in the
     // config, so that they are available when the AppModule decorator is evaluated.
+    // tslint:disable-next-line:whitespace
     const appModule = await import('./app.module');
     const config = getConfig();