diff --git a/.gitignore b/.gitignore index 1168ce1..58f8946 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules/ /prod/ .env +.scannerwork \ No newline at end of file diff --git a/package.json b/package.json index 149965b..bde94a4 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "build": "tsc", "lint": "eslint src --max-warnings 0 && prettier src --check", "start": "op run --env-file='./prod.env' -- node prod/index.js", - "test": "echo 'no tests yet'" + "test": "echo 'no tests yet'", + "scan": "SONAR_TOKEN='op://Environment Variables - Development/SonarCloud/mod-bot' op run -- sonar-scanner -Dsonar.organization=nhcarrigan -Dsonar.projectKey=nhcarrigan_mod-bot -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io" }, "repository": { "type": "git",