@leverege/build-tools 2.32.1 → 2.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -377,14 +377,14 @@ const updateNpmPackageJsonAndLock = async config => {
|
|
|
377
377
|
const isWorkspace = await isWorkspacePackage();
|
|
378
378
|
try {
|
|
379
379
|
if (!isPackageInRepositoryRoot) {
|
|
380
|
-
await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.nothrow();
|
|
380
|
+
await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.quiet().nothrow();
|
|
381
381
|
if (isWorkspace) {
|
|
382
382
|
await (0, _zx.$)`npm install`;
|
|
383
383
|
} else {
|
|
384
384
|
await (0, _zx.$)`npm install --prefix ${packagePath}`;
|
|
385
385
|
}
|
|
386
386
|
} else {
|
|
387
|
-
await (0, _zx.$)`npm version --no-git-tag-version ${version}`.nothrow();
|
|
387
|
+
await (0, _zx.$)`npm version --no-git-tag-version ${version}`.quiet().nothrow();
|
|
388
388
|
}
|
|
389
389
|
} catch (err) {
|
|
390
390
|
console.log(err.stderr || err);
|
|
@@ -396,7 +396,7 @@ const createNewBuildCommit = async ({
|
|
|
396
396
|
}) => {
|
|
397
397
|
try {
|
|
398
398
|
await (0, _zx.$)`git add .`;
|
|
399
|
-
await (0, _zx.$)`git commit -m ${buildMessage}`;
|
|
399
|
+
await (0, _zx.$)`git commit --allow-empty -m ${buildMessage}`;
|
|
400
400
|
} catch (err) {
|
|
401
401
|
console.log(err.stderr || err);
|
|
402
402
|
process.exit(1);
|
|
@@ -613,9 +613,11 @@ if (config.publishable) {
|
|
|
613
613
|
config.npmjsTag = args['npmjs-tag'] || (await promptForNpmjsTag(config));
|
|
614
614
|
}
|
|
615
615
|
displayReleaseInfo(config);
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
616
|
+
if (!config.noConfirm) {
|
|
617
|
+
const confirmResponse = await confirmTagRelease(config);
|
|
618
|
+
if (confirmResponse === 'yes') {
|
|
619
|
+
config.noConfirm = true;
|
|
620
|
+
}
|
|
619
621
|
}
|
|
620
622
|
if (!config.noCommit) {
|
|
621
623
|
await commitAndPushNewBuild(config);
|
package/lib/web/tag-release.js
CHANGED
|
@@ -377,14 +377,14 @@ const updateNpmPackageJsonAndLock = async config => {
|
|
|
377
377
|
const isWorkspace = await isWorkspacePackage();
|
|
378
378
|
try {
|
|
379
379
|
if (!isPackageInRepositoryRoot) {
|
|
380
|
-
await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.nothrow();
|
|
380
|
+
await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.quiet().nothrow();
|
|
381
381
|
if (isWorkspace) {
|
|
382
382
|
await (0, _zx.$)`npm install`;
|
|
383
383
|
} else {
|
|
384
384
|
await (0, _zx.$)`npm install --prefix ${packagePath}`;
|
|
385
385
|
}
|
|
386
386
|
} else {
|
|
387
|
-
await (0, _zx.$)`npm version --no-git-tag-version ${version}`.nothrow();
|
|
387
|
+
await (0, _zx.$)`npm version --no-git-tag-version ${version}`.quiet().nothrow();
|
|
388
388
|
}
|
|
389
389
|
} catch (err) {
|
|
390
390
|
console.log(err.stderr || err);
|
|
@@ -396,7 +396,7 @@ const createNewBuildCommit = async ({
|
|
|
396
396
|
}) => {
|
|
397
397
|
try {
|
|
398
398
|
await (0, _zx.$)`git add .`;
|
|
399
|
-
await (0, _zx.$)`git commit -m ${buildMessage}`;
|
|
399
|
+
await (0, _zx.$)`git commit --allow-empty -m ${buildMessage}`;
|
|
400
400
|
} catch (err) {
|
|
401
401
|
console.log(err.stderr || err);
|
|
402
402
|
process.exit(1);
|
|
@@ -613,9 +613,11 @@ if (config.publishable) {
|
|
|
613
613
|
config.npmjsTag = args['npmjs-tag'] || (await promptForNpmjsTag(config));
|
|
614
614
|
}
|
|
615
615
|
displayReleaseInfo(config);
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
616
|
+
if (!config.noConfirm) {
|
|
617
|
+
const confirmResponse = await confirmTagRelease(config);
|
|
618
|
+
if (confirmResponse === 'yes') {
|
|
619
|
+
config.noConfirm = true;
|
|
620
|
+
}
|
|
619
621
|
}
|
|
620
622
|
if (!config.noCommit) {
|
|
621
623
|
await commitAndPushNewBuild(config);
|
package/package.json
CHANGED
package/src/tag-release.mjs
CHANGED
|
@@ -359,14 +359,14 @@ const updateNpmPackageJsonAndLock = async ( config ) => {
|
|
|
359
359
|
|
|
360
360
|
try {
|
|
361
361
|
if ( !isPackageInRepositoryRoot ) {
|
|
362
|
-
await $`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.nothrow()
|
|
362
|
+
await $`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.quiet().nothrow()
|
|
363
363
|
if ( isWorkspace ) {
|
|
364
364
|
await $`npm install`
|
|
365
365
|
} else {
|
|
366
366
|
await $`npm install --prefix ${packagePath}`
|
|
367
367
|
}
|
|
368
368
|
} else {
|
|
369
|
-
await $`npm version --no-git-tag-version ${version}`.nothrow()
|
|
369
|
+
await $`npm version --no-git-tag-version ${version}`.quiet().nothrow()
|
|
370
370
|
}
|
|
371
371
|
} catch ( err ) {
|
|
372
372
|
console.log( err.stderr || err )
|
|
@@ -377,7 +377,7 @@ const updateNpmPackageJsonAndLock = async ( config ) => {
|
|
|
377
377
|
const createNewBuildCommit = async ( { buildMessage } ) => {
|
|
378
378
|
try {
|
|
379
379
|
await $`git add .`
|
|
380
|
-
await $`git commit -m ${buildMessage}`
|
|
380
|
+
await $`git commit --allow-empty -m ${buildMessage}`
|
|
381
381
|
} catch ( err ) {
|
|
382
382
|
console.log( err.stderr || err )
|
|
383
383
|
process.exit( 1 )
|
|
@@ -618,9 +618,11 @@ if ( config.publishable ) {
|
|
|
618
618
|
|
|
619
619
|
displayReleaseInfo( config )
|
|
620
620
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
if ( !config.noConfirm ) {
|
|
622
|
+
const confirmResponse = await confirmTagRelease( config )
|
|
623
|
+
if ( confirmResponse === 'yes' ) {
|
|
624
|
+
config.noConfirm = true
|
|
625
|
+
}
|
|
624
626
|
}
|
|
625
627
|
|
|
626
628
|
if ( !config.noCommit ) { await commitAndPushNewBuild( config ) }
|