Skip to content

Commit

Permalink
Chore: Shared webpack: Fix package.json version with commit (grafana#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmgot authored Oct 25, 2023
1 parent 5d44240 commit a080ede
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/grafana-plugin-configs/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
},
],
},
{
dir: path.resolve(DIST_DIR),
files: ['package.json'],
rules: [
{
search: `"version": "${getPackageJson().version}"`,
replace: env.commit
? `"version": "${getPackageJson().version}-${env.commit}"`
: `"version": "${getPackageJson().version}"`,
},
],
},
]),
env.development
? new ForkTsCheckerWebpackPlugin({
Expand Down

0 comments on commit a080ede

Please sign in to comment.