Bump .backstage.json version

Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
This commit is contained in:
Vincenzo Scamporlino
2021-11-10 23:51:42 +01:00
parent 085edcfc5f
commit b6b4d4b73f
7 changed files with 121 additions and 8 deletions
+4 -4
View File
@@ -14,6 +14,7 @@
* limitations under the License.
*/
import { BACKSTAGE_JSON } from '@backstage/cli-common';
import chalk from 'chalk';
import fs from 'fs-extra';
import handlebars from 'handlebars';
@@ -126,11 +127,10 @@ export async function templatingTask(
});
}
}
const backstageVersionFileName = '.backstage-version';
await Task.forItem('creating', backstageVersionFileName, () =>
await Task.forItem('creating', BACKSTAGE_JSON, () =>
fs.writeFile(
join(destinationDir, backstageVersionFileName),
`${version}\n`,
join(destinationDir, BACKSTAGE_JSON),
`{\n "version": ${JSON.stringify(version)}\n}\n`,
),
);
}