📦 Chore(custom): update scripts

This commit is contained in:
Kuingsmile
2025-03-05 13:19:03 +08:00
parent 74c996bf94
commit 5c42690586
6 changed files with 163 additions and 81 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
const ncu = require('npm-check-updates')
const axios = require('axios')
async function getRepositoryInfo (packageName) {
async function getRepositoryInfo(packageName) {
try {
const { data } = await axios.get(`https://registry.npmjs.org/${packageName}`)
const repository = data.repository
@@ -17,7 +17,7 @@ async function getRepositoryInfo (packageName) {
return null
}
async function checkUpdates () {
async function checkUpdates() {
const updated = await ncu.run({
packageFile: './package.json',
upgrade: false