zotero-plugin-scaffold 0.0.12 → 0.0.13
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.
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -464,15 +464,15 @@ class Release extends Base {
|
|
|
464
464
|
async run() {
|
|
465
465
|
const t = /* @__PURE__ */ new Date();
|
|
466
466
|
if (!this.isCI) {
|
|
467
|
-
this.bump();
|
|
467
|
+
await this.bump();
|
|
468
468
|
} else {
|
|
469
469
|
if (glob.globSync(`${this.dist}/*.xpi`).length == 0) {
|
|
470
470
|
this.logger.error(
|
|
471
471
|
"No xpi file found, are you sure you have run the build?"
|
|
472
472
|
);
|
|
473
473
|
}
|
|
474
|
-
this.uploadXPI();
|
|
475
|
-
this.uploadUpdateJSON();
|
|
474
|
+
await this.uploadXPI();
|
|
475
|
+
await this.uploadUpdateJSON();
|
|
476
476
|
}
|
|
477
477
|
this.logger.success(
|
|
478
478
|
`Done in ${(( new Date()).getTime() - t.getTime()) / 1e3} s.`
|
|
@@ -483,8 +483,8 @@ class Release extends Base {
|
|
|
483
483
|
*
|
|
484
484
|
* release: bump version, run build, git add, git commit, git tag, git push
|
|
485
485
|
*/
|
|
486
|
-
bump() {
|
|
487
|
-
versionBump(this.ctx.release.bumpp);
|
|
486
|
+
async bump() {
|
|
487
|
+
await versionBump(this.ctx.release.bumpp);
|
|
488
488
|
}
|
|
489
489
|
/**
|
|
490
490
|
* Create new release and upload XPI to asset
|