create-elysiajs
Version:
Scaffolding your Elysia project with the environment with easy!
30 lines (29 loc) • 967 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTSConfig = getTSConfig;
function getTSConfig({ plugins }) {
return JSON.stringify({
compilerOptions: {
lib: ["ESNext"],
module: "NodeNext",
target: "ESNext",
moduleResolution: "NodeNext",
esModuleInterop: true,
strict: true,
skipLibCheck: true,
allowSyntheticDefaultImports: true,
noEmit: true,
allowImportingTsExtensions: true,
noUncheckedIndexedAccess: true,
...(plugins.includes("HTML/JSX")
? {
jsx: "react",
jsxFactory: "Html.createElement",
jsxFragmentFactory: "Html.Fragment",
plugins: [{ name: "@kitajs/ts-html-plugin" }],
}
: {}),
},
include: ["src"],
}, null, 2);
}