Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Tie library build metadata specifically to the last commit in its dir…
Browse files Browse the repository at this point in the history
…ectory
  • Loading branch information
FelixHenninger committed Apr 5, 2020
1 parent 69242e0 commit fff8dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/library/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module.exports = (env, argv) => {
new webpack.DefinePlugin({
BUILD_FLAVOR: JSON.stringify(target),
BUILD_COMMIT: JSON.stringify(
shell.exec('git rev-parse HEAD', { silent: true }).trim()
shell.exec('git rev-list -1 HEAD -- .', { silent: true }).trim()
),
}),
],
Expand Down

0 comments on commit fff8dfd

Please sign in to comment.