@choochmeque/tauri-apple-extensions 0.1.0 → 0.1.1
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/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -440,8 +440,8 @@ function resolveTemplatesDir(options, extensionType) {
|
|
|
440
440
|
}
|
|
441
441
|
return templatesPath;
|
|
442
442
|
}
|
|
443
|
-
// Option 3: Default templates
|
|
444
|
-
const defaultTemplates = path.join(__dirname$1, "
|
|
443
|
+
// Option 3: Default templates (from bundled dist/cli.js -> ../templates)
|
|
444
|
+
const defaultTemplates = path.join(__dirname$1, "../templates", extensionType);
|
|
445
445
|
if (!fs.existsSync(defaultTemplates)) {
|
|
446
446
|
throw new Error(`No templates found. Use --plugin or --templates to specify templates.`);
|
|
447
447
|
}
|
|
@@ -526,7 +526,7 @@ const program = new Command();
|
|
|
526
526
|
program
|
|
527
527
|
.name("tauri-apple-extensions")
|
|
528
528
|
.description("Add iOS extensions to Tauri apps")
|
|
529
|
-
.version("0.1.
|
|
529
|
+
.version("0.1.1");
|
|
530
530
|
program
|
|
531
531
|
.command("add <type>")
|
|
532
532
|
.description("Add an extension (e.g., share)")
|
package/dist/index.js
CHANGED
|
@@ -438,8 +438,8 @@ function resolveTemplatesDir(options, extensionType) {
|
|
|
438
438
|
}
|
|
439
439
|
return templatesPath;
|
|
440
440
|
}
|
|
441
|
-
// Option 3: Default templates
|
|
442
|
-
const defaultTemplates = path.join(__dirname$1, "
|
|
441
|
+
// Option 3: Default templates (from bundled dist/cli.js -> ../templates)
|
|
442
|
+
const defaultTemplates = path.join(__dirname$1, "../templates", extensionType);
|
|
443
443
|
if (!fs.existsSync(defaultTemplates)) {
|
|
444
444
|
throw new Error(`No templates found. Use --plugin or --templates to specify templates.`);
|
|
445
445
|
}
|