fix: add main.js shim at plugin root for Obsidian loader

Obsidian's plugin loader expects main.js at the plugin root alongside
manifest.json — it does not resolve subdirectory paths in the 'main'
field.  Added a thin CommonJS shim that re-exports from dist/main.js.

- main.js: new entry shim (module.exports = require('./dist/main.js'))
- manifest.json: 'main' changed from 'dist/main.js' to 'main.js'
- install.sh: copy main.js shim to plugin folder, verify its presence
- README.md: add main.js to manual install instructions
This commit is contained in:
2026-05-19 18:12:14 +02:00
parent d31c989423
commit 44cff07ea1
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
"author": "Anonymous",
"authorUrl": "",
"isDesktopOnly": true,
"main": "dist/main.js",
"main": "main.js",
"authorization": [],
"permissions": [],
"defaultEnabled": true,