aboutsummaryrefslogtreecommitdiffstats
path: root/build/release/dist.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywil@users.noreply.github.com>2024-02-06 09:53:30 -0500
committerGitHub <noreply@github.com>2024-02-06 09:53:30 -0500
commitb507c8648f701acd1c48b3c38054ad38d76fd1ca (patch)
tree086c67b05f822abbb65229a850d0be72fd80dd49 /build/release/dist.js
parent63767650b5b171b4671304fd2bb2f2890431929f (diff)
downloadjquery-b507c8648f701acd1c48b3c38054ad38d76fd1ca.tar.gz
jquery-b507c8648f701acd1c48b3c38054ad38d76fd1ca.zip
Release: use buildDefaultFiles directly and pass version
- also add the ability to pass VERSION in env to test final builds - adjust sha regex to account for lack of shas - set the version on the dist package.json Close gh-5408
Diffstat (limited to 'build/release/dist.js')
-rw-r--r--build/release/dist.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/release/dist.js b/build/release/dist.js
index ad378468f..9851262a2 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -119,6 +119,7 @@ module.exports = function( Release, files, complete ) {
delete packageJson.devDependencies;
delete packageJson.dependencies;
delete packageJson.commitplease;
+ packageJson.version = Release.newVersion;
await fs.writeFile(
`${ Release.dir.dist }/package.json`,
JSON.stringify( packageJson, null, 2 )