mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2026-12-02 10:36:42 -06:00
Run check-updates and keep majors that are incompatible with type-graphql 2.0.0-rc.3 or the current tooling (typescript 6, graphql 16, graphql-scalars 1, Babel 7). Declare previously transitive imports (terser-webpack-plugin, globals, typescript-eslint, @eslint/js) as devDependencies so build and lint work again. Fix lint errors and update the versions listed in the README.
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
const { pathsToModuleNameMapper } = require('ts-jest');
|
|
const { compilerOptions } = require('./tsconfig');
|
|
|
|
const aliases = pathsToModuleNameMapper(compilerOptions.paths, {
|
|
prefix: '<rootDir>'
|
|
});
|
|
|
|
module.exports = {
|
|
testEnvironment: 'node',
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest'
|
|
},moduleNameMapper: {
|
|
...aliases,
|
|
},
|
|
}; |