zotero-plugin-scaffold 0.9.2 → 0.9.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.
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
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";
1
+ import { n as OverrideConfig, t as Context } from "./shared/scaffold-index-DUirnfLl.mjs";
2
+ import { t as Base } from "./shared/scaffold-base-D5fAvZGP.mjs";
3
3
  //#region src/cli.d.ts
4
4
  type Constructor<T> = new (ctx: Context) => T;
5
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-D5mM4ypK.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-Bv9sPw2S.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.9.2";
10
+ var version = "0.9.3";
11
11
  //#endregion
12
12
  //#region src/utils/gitignore.ts
13
13
  async function checkGitIgnore() {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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";
1
+ import { n as OverrideConfig, r as UserConfig, t as Context } from "./shared/scaffold-index-DUirnfLl.mjs";
2
+ import { t as Base } from "./shared/scaffold-base-D5fAvZGP.mjs";
3
3
  //#region src/config.d.ts
4
4
  /**
5
5
  * Helper for user define configuration.
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-D5mM4ypK.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-Bv9sPw2S.mjs";
2
2
  export { Build, Config, Release, Serve, Test, defineConfig };
@@ -1,4 +1,4 @@
1
- import { i as Logger, t as Context } from "./scaffold-index-BDz8-InR.mjs";
1
+ import { i as Logger, t as Context } from "./scaffold-index-DUirnfLl.mjs";
2
2
  //#region src/core/base.d.ts
3
3
  declare abstract class Base {
4
4
  ctx: Context;
@@ -823,7 +823,7 @@ interface TestConfig {
823
823
  *
824
824
  * 若此选项设置为 false,Zotero 将在测试结束后立即退出。
825
825
  *
826
- * @default true (false in ci)
826
+ * @default true (false in ci or AI agents)
827
827
  */
828
828
  watch: boolean;
829
829
  /**
@@ -5,7 +5,7 @@ import { copy, emptyDir, ensureDir, ensureDirSync, move, outputFile, outputJSON,
5
5
  import { createHooks } from "hookable";
6
6
  import process$1 from "node:process";
7
7
  import { format, inspect, styleText } from "node:util";
8
- import { isCI, isDebug, isLinux, isMacOS, isWindows } from "std-env";
8
+ import { isAgent, isCI, isDebug, isLinux, isMacOS, isWindows } from "std-env";
9
9
  import { glob, globSync } from "tinyglobby";
10
10
  import path, { basename, dirname, extname, isAbsolute, join, resolve } from "node:path";
11
11
  import { build, context } from "esbuild";
@@ -4325,6 +4325,7 @@ var Test = class extends Base {
4325
4325
  this.ctx.test.headless = true;
4326
4326
  this.ctx.test.watch = false;
4327
4327
  }
4328
+ if (isAgent) this.ctx.test.watch = false;
4328
4329
  }
4329
4330
  async run() {
4330
4331
  await emptyDir(TESTER_PROFILE_DIR);
package/dist/vendor.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import "./shared/scaffold-index-BDz8-InR.mjs";
1
+ import "./shared/scaffold-index-DUirnfLl.mjs";
2
2
  import * as esToolkit from "es-toolkit";
3
3
  import * as fse from "fs-extra/esm";
4
4
  //#region src/core/builder/replace.d.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zotero-plugin-scaffold",
3
3
  "type": "module",
4
- "version": "0.9.2",
4
+ "version": "0.9.3",
5
5
  "description": "A scaffold for Zotero plugin development.",
6
6
  "author": "northword",
7
7
  "license": "AGPL-3.0-or-later",