create-express-typescript-application
Version:
Create a new lightweight Express application with TypeScript
9 lines (8 loc) • 339 B
JavaScript
require('require-json5').replace();
const tsConfig = require("./tsconfig.json");
const tsConfigPaths = require("tsconfig-paths");
const baseUrl = "./build"; // Either absolute or relative path. If relative it's resolved to current working directory.
tsConfigPaths.register({
baseUrl,
paths: tsConfig.compilerOptions.paths,
});