/* * Lets Node run the TypeScript sources of the monorepo directly: compiles * them on the fly (decorator metadata included, which Nest needs) and * resolves the `@task-stream/*` aliases of tsconfig.base.json. */ const { join } = require('node:path'); const root = join(__dirname, '../../..'); require('ts-node').register({ project: join(root, 'apps/api/tsconfig.app.json'), transpileOnly: true, compilerOptions: { module: 'commonjs', moduleResolution: 'node10', ignoreDeprecations: '6.0', }, }); require('tsconfig-paths').register({ baseUrl: root, paths: require(join(root, 'tsconfig.base.json')).compilerOptions.paths, });