forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* up-to-date check script * feedbacked
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const yariPackageJson = require("@mdn/yari/package.json"); | ||
const thisPackageJson = require("../package.json"); | ||
|
||
const availableYariVersion = thisPackageJson.dependencies["@mdn/yari"]; | ||
const installedYariVersion = yariPackageJson.version; | ||
|
||
if (installedYariVersion < availableYariVersion) { | ||
console.log( | ||
`The installed version of Yari (${installedYariVersion}) is older than ` + | ||
`the version referenced in package.json (${availableYariVersion}). ` + | ||
`Please make sure your main git branch is up-to-date with ` + | ||
`https://github.com/mdn/content/, then run yarn install to ` + | ||
`install the latest Yari.` | ||
); | ||
} |