diff --git a/examples/chatroom/backend/package.json b/examples/chatroom/backend/package.json index 7ce13e7..f6a1ea8 100644 --- a/examples/chatroom/backend/package.json +++ b/examples/chatroom/backend/package.json @@ -11,13 +11,13 @@ "build": "tsrpc build" }, "devDependencies": { - "@types/node": "^15.12.2", + "@types/node": "^15.12.3", "onchange": "^7.1.0", "ts-node": "^9.1.1", - "tsrpc-cli": "^2.0.1-dev.11", - "typescript": "^4.3.2" + "tsrpc-cli": "^2.0.3", + "typescript": "^4.3.4" }, "dependencies": { - "tsrpc": "^3.0.0-dev.19" + "tsrpc": "^3.0.2" } } diff --git a/examples/chatroom/frontend/package.json b/examples/chatroom/frontend/package.json index 49999e6..9c41578 100644 --- a/examples/chatroom/frontend/package.json +++ b/examples/chatroom/frontend/package.json @@ -10,12 +10,12 @@ "copy-webpack-plugin": "^9.0.0", "html-webpack-plugin": "^5.3.1", "ts-loader": "^9.2.3", - "typescript": "^4.3.2", - "webpack": "^5.38.1", + "typescript": "^4.3.4", + "webpack": "^5.39.1", "webpack-cli": "^4.7.2", "webpack-dev-server": "^3.11.2" }, "dependencies": { - "tsrpc-browser": "^3.0.0-dev.15" + "tsrpc-browser": "^3.0.3" } } diff --git a/examples/file-upload/backend/package.json b/examples/file-upload/backend/package.json index 7119eae..9510e73 100644 --- a/examples/file-upload/backend/package.json +++ b/examples/file-upload/backend/package.json @@ -11,13 +11,13 @@ "build": "tsrpc build" }, "devDependencies": { - "@types/node": "^15.12.2", + "@types/node": "^15.12.3", "onchange": "^7.1.0", "ts-node": "^9.1.1", - "tsrpc-cli": "^2.0.1-dev.11", - "typescript": "^4.3.2" + "tsrpc-cli": "^2.0.3", + "typescript": "^4.3.4" }, "dependencies": { - "tsrpc": "^3.0.0-dev.17" + "tsrpc": "^3.0.2" } } diff --git a/examples/file-upload/frontend/package.json b/examples/file-upload/frontend/package.json index 2319a82..c146185 100644 --- a/examples/file-upload/frontend/package.json +++ b/examples/file-upload/frontend/package.json @@ -10,12 +10,12 @@ "copy-webpack-plugin": "^9.0.0", "html-webpack-plugin": "^5.3.1", "ts-loader": "^9.2.3", - "typescript": "^4.3.2", - "webpack": "^5.38.1", + "typescript": "^4.3.4", + "webpack": "^5.39.1", "webpack-cli": "^4.7.2", "webpack-dev-server": "^3.11.2" }, "dependencies": { - "tsrpc-browser": "^3.0.0-dev.15" + "tsrpc-browser": "^3.0.3" } } diff --git a/examples/first-api/backend/package.json b/examples/first-api/backend/package.json index 7119eae..9510e73 100644 --- a/examples/first-api/backend/package.json +++ b/examples/first-api/backend/package.json @@ -11,13 +11,13 @@ "build": "tsrpc build" }, "devDependencies": { - "@types/node": "^15.12.2", + "@types/node": "^15.12.3", "onchange": "^7.1.0", "ts-node": "^9.1.1", - "tsrpc-cli": "^2.0.1-dev.11", - "typescript": "^4.3.2" + "tsrpc-cli": "^2.0.3", + "typescript": "^4.3.4" }, "dependencies": { - "tsrpc": "^3.0.0-dev.17" + "tsrpc": "^3.0.2" } } diff --git a/examples/first-api/frontend/package.json b/examples/first-api/frontend/package.json index 2319a82..c146185 100644 --- a/examples/first-api/frontend/package.json +++ b/examples/first-api/frontend/package.json @@ -10,12 +10,12 @@ "copy-webpack-plugin": "^9.0.0", "html-webpack-plugin": "^5.3.1", "ts-loader": "^9.2.3", - "typescript": "^4.3.2", - "webpack": "^5.38.1", + "typescript": "^4.3.4", + "webpack": "^5.39.1", "webpack-cli": "^4.7.2", "webpack-dev-server": "^3.11.2" }, "dependencies": { - "tsrpc-browser": "^3.0.0-dev.15" + "tsrpc-browser": "^3.0.3" } } diff --git a/examples/session-and-cookie/backend/package.json b/examples/session-and-cookie/backend/package.json index 580f8e4..b6bf5ee 100644 --- a/examples/session-and-cookie/backend/package.json +++ b/examples/session-and-cookie/backend/package.json @@ -11,15 +11,15 @@ "build": "tsrpc build" }, "devDependencies": { - "@types/node": "^15.12.2", + "@types/node": "^15.12.3", "@types/uuid": "^8.3.0", "onchange": "^7.1.0", "ts-node": "^9.1.1", - "tsrpc-cli": "^2.0.1-dev.11", - "typescript": "^4.3.2" + "tsrpc-cli": "^2.0.3", + "typescript": "^4.3.4" }, "dependencies": { - "tsrpc": "^3.0.0-dev.19", + "tsrpc": "^3.0.2", "uuid": "^8.3.2" } } diff --git a/examples/session-and-cookie/frontend/package.json b/examples/session-and-cookie/frontend/package.json index 7c9a0d3..6baf8aa 100644 --- a/examples/session-and-cookie/frontend/package.json +++ b/examples/session-and-cookie/frontend/package.json @@ -10,12 +10,12 @@ "copy-webpack-plugin": "^9.0.0", "html-webpack-plugin": "^5.3.1", "ts-loader": "^9.2.3", - "typescript": "^4.3.2", - "webpack": "^5.38.1", + "typescript": "^4.3.4", + "webpack": "^5.39.1", "webpack-cli": "^4.7.2", "webpack-dev-server": "^3.11.2" }, "dependencies": { - "tsrpc-browser": "^3.0.0-dev.15" + "tsrpc-browser": "^3.0.3" } } diff --git a/examples/user-authentication/backend/package.json b/examples/user-authentication/backend/package.json index a225f57..f5a0f6f 100644 --- a/examples/user-authentication/backend/package.json +++ b/examples/user-authentication/backend/package.json @@ -11,15 +11,15 @@ "build": "tsrpc build" }, "devDependencies": { - "@types/node": "^15.12.2", + "@types/node": "^15.12.3", "@types/uuid": "^8.3.0", "onchange": "^7.1.0", "ts-node": "^9.1.1", - "tsrpc-cli": "^2.0.1-dev.12", - "typescript": "^4.3.2" + "tsrpc-cli": "^2.0.3", + "typescript": "^4.3.4" }, "dependencies": { - "tsrpc": "^3.0.0-dev.20", + "tsrpc": "^3.0.2", "uuid": "^8.3.2" } } diff --git a/examples/user-authentication/frontend/package.json b/examples/user-authentication/frontend/package.json index f713f1a..57f1485 100644 --- a/examples/user-authentication/frontend/package.json +++ b/examples/user-authentication/frontend/package.json @@ -10,12 +10,12 @@ "copy-webpack-plugin": "^9.0.0", "html-webpack-plugin": "^5.3.1", "ts-loader": "^9.2.3", - "typescript": "^4.3.2", - "webpack": "^5.38.1", + "typescript": "^4.3.4", + "webpack": "^5.39.1", "webpack-cli": "^4.7.2", "webpack-dev-server": "^3.11.2" }, "dependencies": { - "tsrpc-browser": "^3.0.0-dev.16" + "tsrpc-browser": "^3.0.3" } } diff --git a/scripts/npm-update.js b/scripts/npm-update.js new file mode 100644 index 0000000..9fc5199 --- /dev/null +++ b/scripts/npm-update.js @@ -0,0 +1,13 @@ +const fs = require('fs'); +const path = require('path'); +const { execSync } = require('child_process'); + +let dirs = fs.readdirSync(path.resolve(__dirname, '../examples')); + +dirs.forEach(dir => { + console.log(dir); + process.chdir(path.resolve(__dirname, '../examples', dir, 'backend')); + execSync('ncu -u -t minor', { stdio: 'inherit' }); + process.chdir(path.resolve(__dirname, '../examples', dir, 'frontend')); + execSync('ncu -u -t minor', { stdio: 'inherit' }); +}) \ No newline at end of file