feat(plugin-configs): put back commit hash to versioning

This commit is contained in:
Jack Westbrook
2024-11-10 12:24:14 +01:00
parent 58873999e2
commit 6ec988ccba
3 changed files with 1 additions and 3 deletions

View File

@@ -8,7 +8,6 @@
},
"devDependencies": {
"@grafana/tsconfig": "^2.0.0",
"@rspack/cli": "^1.0.0",
"@rspack/core": "^1.0.0",
"@swc/core": "1.10.12",
"@types/eslint": "9.6.1",

View File

@@ -191,7 +191,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
rules: [
{
search: /\%VERSION\%/g,
replace: getPackageJson().version,
replace: env.commit ? `${getPackageJson().version}-${env.commit}` : getPackageJson().version,
},
{
search: /\%TODAY\%/g,

View File

@@ -3536,7 +3536,6 @@ __metadata:
resolution: "@grafana/plugin-configs@workspace:packages/grafana-plugin-configs"
dependencies:
"@grafana/tsconfig": "npm:^2.0.0"
"@rspack/cli": "npm:^1.0.0"
"@rspack/core": "npm:^1.0.0"
"@swc/core": "npm:1.10.12"
"@types/eslint": "npm:9.6.1"