zotero-plugin-scaffold 0.8.8 → 0.9.1

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.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { n as OverrideConfig, t as Context } from "./shared/scaffold-index-BPYcwmhN.mjs";
2
- import { t as Base } from "./shared/scaffold-base-Bcp4xrkr.mjs";
3
-
1
+ import { n as OverrideConfig, t as Context } from "./shared/scaffold-index-BDz8-InR.mjs";
2
+ import { t as Base } from "./shared/scaffold-base-oQP-TMDS.mjs";
4
3
  //#region src/cli.d.ts
5
4
  type Constructor<T> = new (ctx: Context) => T;
6
5
  declare function runCommand<T extends Base>(CommandClass: Constructor<T>, config: OverrideConfig): Promise<void>;
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { l as logger } from "./shared/scaffold-replace-Dn0wBA9W.mjs";
2
- import { a as Release, i as ExitSignals, n as Test, o as Build, r as Serve, t as Config } from "./shared/scaffold-src-bWcaMVyt.mjs";
2
+ import { a as Release, i as ExitSignals, n as Test, o as Build, r as Serve, t as Config } from "./shared/scaffold-src-DVeK7Az0.mjs";
3
3
  import process from "node:process";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import { Command } from "commander";
@@ -7,7 +7,7 @@ import { pathExists } from "fs-extra";
7
7
  import tinyUpdateNotifier from "tiny-update-notifier";
8
8
  //#region package.json
9
9
  var name = "zotero-plugin-scaffold";
10
- var version = "0.8.8";
10
+ var version = "0.9.1";
11
11
  //#endregion
12
12
  //#region src/utils/gitignore.ts
13
13
  async function checkGitIgnore() {
package/dist/index.d.ts CHANGED
@@ -1,16 +1,15 @@
1
- import { n as OverrideConfig, r as UserConfig, t as Context } from "./shared/scaffold-index-BPYcwmhN.mjs";
2
- import { t as Base } from "./shared/scaffold-base-Bcp4xrkr.mjs";
3
-
1
+ import { n as OverrideConfig, r as UserConfig, t as Context } from "./shared/scaffold-index-BDz8-InR.mjs";
2
+ import { t as Base } from "./shared/scaffold-base-oQP-TMDS.mjs";
4
3
  //#region src/config.d.ts
5
4
  /**
6
- * Helper for user define configuration.
7
- */
5
+ * Helper for user define configuration.
6
+ */
8
7
  declare function defineConfig(userConfig: UserConfig): UserConfig;
9
8
  /**
10
- * Loads config
11
- * @param [overrides] Highest Priority Configuration.
12
- * @returns Config with userDefined and defaultConfig merged.
13
- */
9
+ * Loads config
10
+ * @param [overrides] Highest Priority Configuration.
11
+ * @returns Config with userDefined and defaultConfig merged.
12
+ */
14
13
  declare function loadConfig(overrides?: OverrideConfig): Promise<Context>;
15
14
  //#endregion
16
15
  //#region src/core/builder/index.d.ts
@@ -18,8 +17,8 @@ declare class Build extends Base {
18
17
  private buildTime;
19
18
  constructor(ctx: Context);
20
19
  /**
21
- * Default build runner
22
- */
20
+ * Default build runner
21
+ */
23
22
  run(): Promise<void>;
24
23
  private prepareAssets;
25
24
  bundle(): Promise<void>;
@@ -31,12 +30,12 @@ declare class Build extends Base {
31
30
  declare class Release extends Base {
32
31
  constructor(ctx: Context);
33
32
  /**
34
- * Runs release
35
- *
36
- * if is not CI,bump version, git add (package.json), git commit, git tag, git push;
37
- * if is CI, do not bump version, do not run git, create release (tag is `v${version}`) and upload xpi,
38
- * then, create or update release (tag is "release"), update `update.json`.
39
- */
33
+ * Runs release
34
+ *
35
+ * if is not CI,bump version, git add (package.json), git commit, git tag, git push;
36
+ * if is CI, do not bump version, do not run git, create release (tag is `v${version}`) and upload xpi,
37
+ * then, create or update release (tag is "release"), update `update.json`.
38
+ */
40
39
  run(): Promise<void>;
41
40
  getChangelog(): Promise<string>;
42
41
  private isEnabled;
@@ -52,8 +51,8 @@ declare class Serve extends Base {
52
51
  constructor(ctx: Context);
53
52
  run(): Promise<void>;
54
53
  /**
55
- * watch source dir and build when file changed
56
- */
54
+ * watch source dir and build when file changed
55
+ */
57
56
  watch(): Promise<void>;
58
57
  reload(): Promise<void>;
59
58
  exit: () => never;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as Release, n as Test, o as Build, r as Serve, s as defineConfig, t as Config } from "./shared/scaffold-src-bWcaMVyt.mjs";
1
+ import { a as Release, n as Test, o as Build, r as Serve, s as defineConfig, t as Config } from "./shared/scaffold-src-DVeK7Az0.mjs";
2
2
  export { Build, Config, Release, Serve, Test, defineConfig };
@@ -1,5 +1,4 @@
1
- import { i as Logger, t as Context } from "./scaffold-index-BPYcwmhN.mjs";
2
-
1
+ import { i as Logger, t as Context } from "./scaffold-index-BDz8-InR.mjs";
3
2
  //#region src/core/base.d.ts
4
3
  declare abstract class Base {
5
4
  ctx: Context;