UNPKG

jetup

Version:

Jetup: JavaScript Project Setup! Jetting-up your next JS project in seconds with one command, using fully modular, customizable presets, instantly ready to code!.

22 lines 837 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TypescriptModule = void 0; const framework_1 = require("../../framework"); const utils_1 = require("../../utils"); class TypescriptModule extends framework_1.BaseModule { constructor() { super(...arguments); this.registry = TypescriptModule; } async setup() { if (!(0, utils_1.isFileExists)((0, utils_1.cwd)('tsconfig.json'))) { this.logger.info(`creating tsconfig.json file...`); await (0, utils_1.createOrReplaceFile)((0, utils_1.cwd)('tsconfig.json'), (0, utils_1.readFile)(__dirname, './tsconfig.json')); } else { this.logger.info(`tsconfig.json already exists`); } } } exports.TypescriptModule = TypescriptModule; //# sourceMappingURL=index.js.map