tim-hub_obsidian-bible-refe.../package.json
tim-hub 21603faa26 refactor: convert to Bun monorepo; move plugin source into packages/
- Switch package manager/runtime/test-runner from pnpm+jest to Bun.
  Remove pnpm-workspace.yaml + pnpm-lock.yaml; root package.json is now a
  bun workspace ("workspaces": ["packages/*"]); add bun.lock.
- Move the Obsidian plugin source into packages/obsidian-bible-reference/
  (src, scripts, tsconfig, eslint, prettier). The repo root remains the
  installable plugin folder: manifest.json, versions.json, styles.css and
  the built main.js stay at root.
- esbuild + version-bump resolve repo-root paths so the build emits main.js
  to root and version-bump edits root manifest/versions from the package.
- Migrate plugin tests from jest to `bun test`. Only the provider test used
  jest mocking; convert to bun:test (mock/spyOn). Mock the types-only
  `obsidian` module via a bun test preload (bunfig.toml) since mock.module
  is not hoisted like jest.mock.
- Root build builds packages in dependency order then the plugin; CI builds
  before test because the plugin/tests import bible-reference-toolkit's dist.
- Update CI + release workflows to oven-sh/setup-bun; husky pre-commit,
  dev-setup/release docs and VS Code tasks to bun.
- Pin plugin prettier to 3.8.3 (3.9.x reformats unrelated union types).
- Add @types/node to bible-reference-toolkit (was hoisted under pnpm).

Claude-Session: https://claude.ai/code/session_013pCNGDmUyfJia4tE4aWoYM
2026-07-14 22:24:49 +12:00

35 lines
1 KiB
JSON

{
"name": "obsidian-bible-reference-monorepo",
"version": "26.06.07",
"private": true,
"description": "Monorepo for the Obsidian Bible Reference plugin and the bible-reference-toolkit packages.",
"engines": {
"bun": ">=1.1.0"
},
"workspaces": [
"packages/*"
],
"scripts": {
"dev": "bun run --filter obsidian-bible-reference dev",
"build:packages": "bun run --filter bible-book-names-intl build && bun run --filter bible-reference-toolkit build",
"build": "bun run build:packages && bun run --filter obsidian-bible-reference build",
"test": "bun test",
"lint": "bun run --filter obsidian-bible-reference lint",
"prettier": "bun run --filter obsidian-bible-reference prettier",
"precommit": "bun run lint && bun run prettier",
"prepare": "husky"
},
"keywords": [
"bible",
"bible reference",
"obsidian",
"obsidian plugin",
"bible-reference-toolkit"
],
"author": "tim-hub",
"license": "MIT",
"devDependencies": {
"all-contributors-cli": "6.26.1",
"husky": "^9.1.7"
}
}