Просмотр исходного кода

fix(server): Fix line endings for cli binary & index template

Michael Bromley 6 лет назад
Родитель
Сommit
49065ca111
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      server/cli/assets/index.hbs
  2. 0 1
      server/dev-config.ts
  3. 2 1
      server/tsconfig.json

+ 1 - 1
server/cli/assets/index.hbs

@@ -1,4 +1,4 @@
-{{#if isTs }}import { bootstrap } from '@vendure/core';{{else}}const { import } = require('@vendure/core');{{/if}}
+{{#if isTs }}import { bootstrap } from '@vendure/core';{{else}}const { bootstrap } = require('@vendure/core');{{/if}}
 {{#if isTs }}import { config } from './vendure-config';{{else}}const { config } = require('./vendure-config');{{/if}}
 
 bootstrap(config).catch(err => {

+ 0 - 1
server/dev-config.ts

@@ -20,7 +20,6 @@ export const devConfig: VendureConfig = {
         sessionSecret: 'some-secret',
         requireVerification: false,
     },
-    entityIdStrategy: new TestingEntityIdStrategy(),
     port: API_PORT,
     adminApiPath: ADMIN_API_PATH,
     shopApiPath: SHOP_API_PATH,

+ 2 - 1
server/tsconfig.json

@@ -13,6 +13,7 @@
     "target": "es2017",
     "strict": true,
     "strictPropertyInitialization": false,
-    "sourceMap": true
+    "sourceMap": true,
+    "newLine": "LF"
   }
 }