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 CHANGED
@@ -23,7 +23,7 @@ import 'chokidar';
23
23
  import 'process';
24
24
 
25
25
  const name = "zotero-plugin-scaffold";
26
- const version = "0.0.12";
26
+ const version = "0.0.13";
27
27
  const description = "A scaffold for Zotero plugin development.";
28
28
  const scripts = {
29
29
  dev: "unbuild --stub",
package/dist/index.d.mts CHANGED
@@ -418,7 +418,7 @@ declare class Release extends Base {
418
418
  *
419
419
  * release: bump version, run build, git add, git commit, git tag, git push
420
420
  */
421
- bump(): void;
421
+ bump(): Promise<void>;
422
422
  /**
423
423
  * Create new release and upload XPI to asset
424
424
  */
package/dist/index.d.ts CHANGED
@@ -418,7 +418,7 @@ declare class Release extends Base {
418
418
  *
419
419
  * release: bump version, run build, git add, git commit, git tag, git push
420
420
  */
421
- bump(): void;
421
+ bump(): Promise<void>;
422
422
  /**
423
423
  * Create new release and upload XPI to asset
424
424
  */
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zotero-plugin-scaffold",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "A scaffold for Zotero plugin development.",
5
5
  "type": "module",
6
6
  "exports": {