diff --git a/InfrastructureAgent/package-lock.json b/InfrastructureAgent/package-lock.json index b6a1659b02..9309cb2e6a 100644 --- a/InfrastructureAgent/package-lock.json +++ b/InfrastructureAgent/package-lock.json @@ -1,13 +1,13 @@ { "name": "@oneuptime/infrastructure-agent", - "version": "1.0.1", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@oneuptime/infrastructure-agent", - "version": "1.0.1", - "license": "ISC", + "version": "1.0.0", + "license": "Apache-2.0", "dependencies": { "Common": "file:../Common", "CommonServer": "file:../CommonServer", @@ -24,14 +24,15 @@ "devDependencies": { "@types/jest": "^29.5.11", "@types/node": "^17.0.31", + "@types/yargs": "^17.0.32", "jest": "^28.1.0", "nodemon": "^2.0.20" } }, "../Common": { - "name": "common", + "name": "@oneuptime/common", "version": "1.0.0", - "license": "MIT", + "license": "Apache-2.0", "dependencies": { "@types/crypto-js": "^4.2.2", "@types/uuid": "^8.3.4", @@ -40,7 +41,7 @@ "json5": "^2.2.3", "moment": "^2.30.1", "moment-timezone": "^0.5.45", - "posthog-js": "^1.105.8", + "posthog-js": "^1.108.0", "reflect-metadata": "^0.2.1", "slugify": "^1.6.5", "typeorm": "^0.3.20", @@ -55,9 +56,9 @@ } }, "../CommonServer": { - "name": "common-server", + "name": "@oneuptime/common-server", "version": "1.0.0", - "license": "MIT", + "license": "Apache-2.0", "dependencies": { "@clickhouse/client": "^0.2.10", "@elastic/elasticsearch": "^8.12.1", @@ -118,9 +119,9 @@ } }, "../Model": { - "name": "model", + "name": "@oneuptime/model", "version": "1.0.0", - "license": "ISC", + "license": "Apache-2.0", "dependencies": { "Common": "file:../Common", "typeorm": "^0.3.20" diff --git a/InfrastructureAgent/package.json b/InfrastructureAgent/package.json index 1a101bf3ad..02411d8ba1 100644 --- a/InfrastructureAgent/package.json +++ b/InfrastructureAgent/package.json @@ -32,6 +32,7 @@ "devDependencies": { "@types/jest": "^29.5.11", "@types/node": "^17.0.31", + "@types/yargs": "^17.0.32", "jest": "^28.1.0", "nodemon": "^2.0.20" } diff --git a/Scripts/NPM/PublishAllPackages.sh b/Scripts/NPM/PublishAllPackages.sh index 913d396fde..41455e6092 100644 --- a/Scripts/NPM/PublishAllPackages.sh +++ b/Scripts/NPM/PublishAllPackages.sh @@ -27,16 +27,16 @@ publish_to_npm() { npm version $package_version # Before npm install, replace "Common": "file:../Common" with "@oneuptime/common": "$package_version" in package.json - sed -i "s/\"Common\": \"file:..\/Common\"/\"@oneuptime\/common\": \"$package_version\"/g" package.json + sed -i "s/\"Common\": \"file:..\/Common\"/\"Common\": \"npm:@oneuptime\/common@$package_version\"/g" package.json # Before npm install, replace "CommonServer": "file:../CommonServer" with "@oneuptime/common-server": "$package_version" in package.json - sed -i "s/\"CommonServer\": \"file:..\/CommonServer\"/\"@oneuptime\/common-server\": \"$package_version\"/g" package.json + sed -i "s/\"CommonServer\": \"file:..\/CommonServer\"/\"CommonServer\": \"npm:@oneuptime\/common-server@$package_version\"/g" package.json # Before npm install, replace "Model": "file:../Model" with "@oneuptime/model": "$package_version" in package.json - sed -i "s/\"Model\": \"file:..\/Model\"/\"@oneuptime\/model\": \"$package_version\"/g" package.json - + sed -i "s/\"Model\": \"file:..\/Model\"/\"Model\": \"npm:@oneuptime\/model@$package_version\"/g" package.json + # Before npm install, replace "CommonUI": "file:../CommonUI" with "@oneuptime/common-ui": "$package_version" in package.json - sed -i "s/\"CommonUI\": \"file:..\/CommonUI\"/\"@oneuptime\/common-ui\": \"$package_version\"/g" package.json + sed -i "s/\"CommonUI\": \"file:..\/CommonUI\"/\"CommonUI\": \"npm:@oneuptime\/common-ui@$package_version\"/g" package.json npm install