@choochmeque/tauri-apple-extensions 0.2.2 → 0.2.3
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 +4 -1
- package/package.json +1 -2
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'module';
|
|
2
3
|
import { Command } from 'commander';
|
|
3
4
|
import fs from 'fs';
|
|
4
5
|
import path from 'path';
|
|
@@ -541,11 +542,13 @@ async function addExtension(type, options) {
|
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
544
|
|
|
545
|
+
const require$1 = createRequire(import.meta.url);
|
|
546
|
+
const { version } = require$1("../package.json");
|
|
544
547
|
const program = new Command();
|
|
545
548
|
program
|
|
546
549
|
.name("tauri-apple-extensions")
|
|
547
550
|
.description("Add Apple extensions to Tauri apps")
|
|
548
|
-
.version(
|
|
551
|
+
.version(version);
|
|
549
552
|
function createPlatformCommand(platform) {
|
|
550
553
|
const cmd = new Command(platform);
|
|
551
554
|
cmd.description(`Manage ${platform === "ios" ? "iOS" : "macOS"} extensions`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choochmeque/tauri-apple-extensions",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Add iOS and macOS extensions to Tauri apps with a single command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
39
|
-
"@rollup/plugin-replace": "^6.0.3",
|
|
40
39
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
41
40
|
"@types/node": "^25.0.3",
|
|
42
41
|
"@vitest/coverage-v8": "^4.0.16",
|