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!.

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