Added smart versioning
This commit is contained in:
parent
540658e3d0
commit
ae73f3e74b
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "immersive",
|
"name": "immersive",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.8-11",
|
"version": "0.0.8-12",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
|
|||||||
@ -19,7 +19,6 @@ const getPackageJson = async () => {
|
|||||||
json.version = newVersion;
|
json.version = newVersion;
|
||||||
await fs.writeFile('package.json', JSON.stringify(json, null, 2));
|
await fs.writeFile('package.json', JSON.stringify(json, null, 2));
|
||||||
let indexHtml = await fs.readFile('index.html', 'utf8');
|
let indexHtml = await fs.readFile('index.html', 'utf8');
|
||||||
console.log(indexHtml);
|
|
||||||
indexHtml = indexHtml.replace('@@VERSION', newVersion);
|
indexHtml = indexHtml.replace('@@VERSION', newVersion);
|
||||||
indexHtml = indexHtml.replace('@@DATE', new Date().toISOString());
|
indexHtml = indexHtml.replace('@@DATE', new Date().toISOString());
|
||||||
const gitId = (await getGitId()).replace('\n', '');
|
const gitId = (await getGitId()).replace('\n', '');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user