mirror of
https://github.com/onlyworlds/obsidian-plugin.git
synced 2026-07-22 11:00:31 +00:00
Add a destination choice to "Export as OnlyWorlds folder": keep the vault-internal default (OW-folder-export/) and add "Choose a folder..." that writes the conformant folder into any real OS directory -- point it at the Atlas root for a one-step handoff. - External sink uses node fs/promises + absolute paths (escapes the vault sandbox, verified); vault sink unchanged (vault API). - Serialization shared via planFiles(); only the sink differs. - Native picker reached by a guarded multi-path probe; falls back to a paste-absolute-path modal if no Electron dialog is reachable. - Desktop-only: external option hidden on mobile. - R3 safety: refuse if target exists or dest holds an open Atlas world (.atlas / lock). Pure refusal logic in export-plan.ts, unit-tested. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
424 B
JSON
21 lines
424 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"noEmit": false,
|
|
"outDir": "test-dist",
|
|
"module": "CommonJS",
|
|
"moduleResolution": "node",
|
|
"target": "ES2022",
|
|
"inlineSourceMap": false,
|
|
"inlineSources": false,
|
|
"sourceMap": false,
|
|
"esModuleInterop": true,
|
|
"rootDir": "."
|
|
},
|
|
"include": [
|
|
"vault/element-transform.ts",
|
|
"vault/folder-format.ts",
|
|
"Commands/export-plan.ts",
|
|
"test/**/*.ts"
|
|
]
|
|
}
|