fix: pass a minimal version of package.json to updater

This commit is contained in:
Amin Yahyaabadi 2023-05-24 22:24:31 -07:00
parent 5c3b317006
commit 23ea3efed0
8 changed files with 11 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
package-version.json Normal file
View File

@ -0,0 +1,4 @@
{
"name": "setup-cpp",
"version": "0.27.1"
}

View File

@ -1,6 +1,6 @@
import { warning } from "ci-log"
import updateNotifier from "simple-update-notifier"
import packageJson from "../package.json" assert { type: "json" }
import packageJson from "../package-version.json" assert { type: "json" }
// auto self update notifier
export async function checkUpdates() {