title: NestJS Views Not gettings added to Dist
body: <p>My folder structure is similar to below. </p>
  
  <pre><code>public
  views
  src
    main.ts
    /users
         users.controller.ts
         /views
           my-view.hbs
    /books
         books.controller.ts
         /views
           my-view.hbs
  </code></pre>
  
  <p>This is what i use to add the templates and views</p>
  
  <pre><code> const app = await NestFactory.create&lt;NestExpressApplication&gt;(
      AppModule,
    );
    console.log(join(__dirname, 'public'));
  
    app.useStaticAssets(join(__dirname, '..', 'public'));
    app.setBaseViewsDir(join(__dirname, '..', 'views'));
    app.setViewEngine('hbs');
    hbs.registerPartials(join(__dirname, '..', 'views', 'partials'));
  
  </code></pre>
  
  <p>My package.json scripts looks like this </p>
  
  <pre><code>"scripts": {
      "prebuild": "rimraf dist",
      "build": "nest build",
      "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
      "start": "nest start",
      "start:dev": "nest start --watch",
      "start:debug": "nest start --debug --watch",
      "start:prod": "node dist/src/main",
      "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
      "test": "jest",
      "test:watch": "jest --watch",
      "test:cov": "jest --coverage",
      "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
      "test:e2e": "jest --config ./test/jest-e2e.json"
    },
  </code></pre>
  
  <p>My issue is that when i run nest in dev mode it builds the distribution code and it doesn't add the views and the public folder.</p>