Chore: Shared webpack: Fix package.json version with commit (#77030)

pull/77153/head
Andres Martinez Gotor 2 years ago committed by GitHub
parent 5d44240fca
commit a080ede871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      packages/grafana-plugin-configs/webpack.config.ts

@ -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({

Loading…
Cancel
Save