Implements dual-strategy template distribution for reliable plugin deployment: Template Embedding System: - Add esbuild plugin to embed .typ templates as base64 strings in main.js - Create EmbeddedTemplateManager for automatic template extraction - Add TypeScript declarations for virtual template-embed module - Templates auto-extract on plugin load if missing from disk Release Automation: - Add GitHub Actions workflow for automated ZIP releases - Create package-plugin.js script for complete distribution packages - Update version-bump.mjs for Obsidian-compliant tags (no 'v' prefix) - Ensure releases include templates/ directory for manual installations Documentation Updates: - Comprehensive installation instructions with troubleshooting - Clear warnings about requiring complete ZIP packages - Multiple installation methods including manual and automated This ensures the plugin works regardless of installation method: - ZIP releases provide templates/ directory (primary method) - Embedded templates auto-extract as fallback (secondary method) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
1002 B
JSON
40 lines
1002 B
JSON
{
|
|
"name": "obsidian-typst-pdf-export",
|
|
"version": "1.0.0",
|
|
"description": "Exports a note or collection of notes to a pretty Typst PDF.",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
|
"package": "node scripts/package-plugin.js",
|
|
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
|
},
|
|
"keywords": [
|
|
"pdf",
|
|
"export",
|
|
"typst",
|
|
"obsidian-plugin",
|
|
"typesetting"
|
|
],
|
|
"author": "Alexander Kucera",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.34.0",
|
|
"@types/node": "^16.11.6",
|
|
"@typescript-eslint/eslint-plugin": "5.29.0",
|
|
"@typescript-eslint/parser": "5.29.0",
|
|
"archiver": "^7.0.1",
|
|
"builtin-modules": "3.3.0",
|
|
"esbuild": "0.17.3",
|
|
"globals": "^16.3.0",
|
|
"obsidian": "latest",
|
|
"tslib": "2.4.0",
|
|
"typescript": "4.7.4"
|
|
},
|
|
"dependencies": {
|
|
"gray-matter": "^4.0.3",
|
|
"pdf-to-img": "^4.5.0"
|
|
}
|
|
}
|