zotero-plugin-scaffold 0.2.0-beta.11 → 0.2.0-beta.12

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/README.md CHANGED
@@ -33,6 +33,18 @@ pnpm install
33
33
  # and the modified code does not need to be built again.
34
34
  pnpm run dev
35
35
 
36
+ # link local scaffold to your plugin
37
+ cd your-plugin-work-dir/
38
+ pnpm link ../zotero-plugin-scaffold
39
+ cd zotero-plugin-scaffold/
40
+
41
+ ```
42
+
43
+ Now you can make changes to Scaffold and test them in your plugin.
44
+
45
+ When you're done modifying, make sure that you can pass the build and that the code style meets the requirements of this repository.
46
+
47
+ ```bash
36
48
  # Build
37
49
  pnpm run build
38
50
 
@@ -5,7 +5,7 @@ import mime from 'mime';
5
5
  import { Octokit } from 'octokit';
6
6
  import { globSync, glob } from 'tinyglobby';
7
7
  import { isCI } from 'std-env';
8
- import { B as Base } from '../shared/zotero-plugin-scaffold.19a37237.mjs';
8
+ import { B as Base } from '../shared/zotero-plugin-scaffold.af8d03c3.mjs';
9
9
  import 'c12';
10
10
  import 'es-toolkit';
11
11
  import 'fs-extra/esm';
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import process from 'node:process';
3
3
  import { Command } from '@commander-js/extra-typings';
4
- import { E as ExitSignals, l as logger, C as Config, a as Build, S as Serve, T as Test, R as Release } from './shared/zotero-plugin-scaffold.19a37237.mjs';
4
+ import { E as ExitSignals, l as logger, C as Config, a as Build, S as Serve, T as Test, R as Release } from './shared/zotero-plugin-scaffold.af8d03c3.mjs';
5
5
  import { readFile, writeFile } from 'node:fs/promises';
6
6
  import { pathExists, ensureFile } from 'fs-extra';
7
7
  import tinyUpdateNotifier from 'tiny-update-notifier';
@@ -31,7 +31,7 @@ import 'xvfb-ts';
31
31
 
32
32
  const name = "zotero-plugin-scaffold";
33
33
  const type = "module";
34
- const version = "0.2.0-beta.11";
34
+ const version = "0.2.0-beta.12";
35
35
  const packageManager = "pnpm@9.15.0";
36
36
  const description = "A scaffold for Zotero plugin development.";
37
37
  const author = "northword";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { a as Build, C as Config, R as Release, S as Serve, T as Test, d as defineConfig } from './shared/zotero-plugin-scaffold.19a37237.mjs';
1
+ export { a as Build, C as Config, R as Release, S as Serve, T as Test, d as defineConfig } from './shared/zotero-plugin-scaffold.af8d03c3.mjs';
2
2
  import 'c12';
3
3
  import 'es-toolkit';
4
4
  import 'fs-extra/esm';
@@ -1595,6 +1595,11 @@ async function installXvfb() {
1595
1595
  checkAndInstallDependencies(["xvfb", "x11-xkb-utils", "xkb-data"]);
1596
1596
  }
1597
1597
  async function installDepsForUbuntu24() {
1598
+ const version = execSync("cat /etc/os-release | grep '^VERSION_ID='").toString();
1599
+ if (!version.includes("24")) {
1600
+ logger.error("Skip to install deps due to version not 24.04.");
1601
+ return;
1602
+ }
1598
1603
  checkAndInstallDependencies(["libasound2t64", "libdbus-glib-1-2"]);
1599
1604
  }
1600
1605
  async function installZoteroLinux() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zotero-plugin-scaffold",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.11",
4
+ "version": "0.2.0-beta.12",
5
5
  "description": "A scaffold for Zotero plugin development.",
6
6
  "author": "northword",
7
7
  "license": "AGPL-3.0-or-later",