Skip to content

Commit

Permalink
fix: New config refers to outdated config release version (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
about-code committed Sep 18, 2022
1 parent ccc0f0d commit 4f2c377
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ function writeInitialConf(conf, argv) {
if (argv.local) {
// append version path segment from schema URI to local path
conf.$schema = `./node_modules/glossarify-md/conf/${conf.$schema.split("/conf/")[1]}`;
} else {
conf.$schema = conf.$schema.replace(/\/v(\.?\d){3}\/conf/, `/v${version}/conf`);
}
// --more
if (argv.more) {
Expand Down

0 comments on commit 4f2c377

Please sign in to comment.