diff --git a/CommonUI/package-lock.json b/CommonUI/package-lock.json index 5511d5ee89..8b0213b275 100644 --- a/CommonUI/package-lock.json +++ b/CommonUI/package-lock.json @@ -9,7 +9,6 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.24.0", "@monaco-editor/react": "^4.4.6", "@opentelemetry/api": "^1.7.0", "@opentelemetry/context-zone": "^1.21.0", diff --git a/CommonUI/package.json b/CommonUI/package.json index 822ac95d86..2dbd04c9d9 100644 --- a/CommonUI/package.json +++ b/CommonUI/package.json @@ -14,7 +14,6 @@ "license": "MIT", "type": "module", "dependencies": { - "@babel/runtime": "^7.24.0", "@monaco-editor/react": "^4.4.6", "@opentelemetry/api": "^1.7.0", "@opentelemetry/context-zone": "^1.21.0", diff --git a/InfrastructureAgent/Index.ts b/InfrastructureAgent/Index.ts index f8aa7fff42..be613ae48b 100644 --- a/InfrastructureAgent/Index.ts +++ b/InfrastructureAgent/Index.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import yargs from 'yargs'; import URL from 'Common/Types/API/URL'; import Dictionary from 'Common/Types/Dictionary'; @@ -17,7 +19,6 @@ const argv: Dictionary = yargs const secretKey: string | undefined = argv["secret-key"]; const oneuptimeHost: URL = URL.fromString(argv["oneuptime-host"] || "https://oneuptime.com"); - if(!secretKey) { throw new Error("No secret-key argument found. You can find secret key for this monitor on OneUptime Dashboard"); } diff --git a/InfrastructureAgent/package.json b/InfrastructureAgent/package.json index 2164f6ec8e..0d08b771f6 100644 --- a/InfrastructureAgent/package.json +++ b/InfrastructureAgent/package.json @@ -1,9 +1,9 @@ { "name": "@oneuptime/infrastructure-agent", - "version": "1.0.0", + "version": "1.0.1", "description": "", "scripts": { - "start": "node --require ts-node/register Index.ts --secret-key hello", + "start": "npm run compile && node --require ts-node/register Index.ts", "build": "esbuild Index.ts --bundle --platform=node --outfile=./Build/Index.js --loader:.node=file", "compile": "tsc", "clear-modules": "rm -rf node_modules && rm package-lock.json && npm install", @@ -34,7 +34,6 @@ "devDependencies": { "@types/jest": "^29.5.11", "@types/node": "^17.0.31", - "@types/nodemailer": "^6.4.14", "jest": "^28.1.0", "nodemon": "^2.0.20" }