From 661e4ad8c05621b8e4abf65b413ff5b959148155 Mon Sep 17 00:00:00 2001 From: Karan Handa Date: Fri, 8 Mar 2024 05:47:52 +0530 Subject: [PATCH] feat: install vscode extension as well --- package.json | 2 +- src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 47f9577..f0e5022 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "million-lint-check", - "version": "1.0.17", + "version": "1.0.18", "description": "A command-line tool to verify if Million Lint is active in a project.", "main": "index.js", "files": [ diff --git a/src/index.ts b/src/index.ts index 2665c44..b15a454 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,8 +34,9 @@ program.command('setup') exit(1) } - console.log('Installing Million Lint and other dependencies...'); + console.log('Installing Million Lint, Million Lint VSCode extension and other dependencies...'); execSync('npm i -g @antfu/ni', { stdio: 'inherit' }); + execSync('code --install-extension million.million-lint', { stdio: 'inherit' }); execSync('ni', { stdio: 'inherit' }); try { execSync('npx @million/lint@latest', { stdio: 'inherit' });