mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Use node12 TypeScript base config
TypeScript recommends using a base config from https://github.com/tsconfig/bases. Using this config reduces compile times by ~30% and the size of the dist folder by ~45%. It also enables the recommended `esModuleInterop` option, which necessitated some changes to imports. See also https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
c32c601d36
commit
6ee2ddead5
11 changed files with 17 additions and 11 deletions
|
@ -8,7 +8,7 @@ import { INestApplication } from '@nestjs/common';
|
|||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||
import { Test } from '@nestjs/testing';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import * as request from 'supertest';
|
||||
import request from 'supertest';
|
||||
import { PublicApiModule } from '../../src/api/public/public-api.module';
|
||||
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
||||
import appConfigMock from '../../src/config/mock/app.config.mock';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue