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

19 lines 750 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PackageModule = void 0; const framework_1 = require("../../framework"); const utils_1 = require("../../utils"); class PackageModule extends framework_1.BaseModule { constructor() { super(...arguments); this.autoInstallDeps = true; this.registry = PackageModule; } async setup() { const newJson = JSON.parse((0, utils_1.readFile)(__dirname, './package.json')); this.logger.info(`adding [${Object.keys(newJson).join(',')}] properties to package.json`); await (0, utils_1.updateJson)((0, utils_1.cwd)('package.json'), newJson); } } exports.PackageModule = PackageModule; //# sourceMappingURL=index.js.map