mduck 1.0.4 → 1.0.6

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/bin/mduck ADDED
@@ -0,0 +1,2 @@
1
+ #!/bin/sh
2
+ exec bun "$(dirname "$0")/mduck.js" "$@" 2>/dev/null || exec node "$(dirname "$0")/mduck.js" "$@"
package/bin/mduck.cmd ADDED
@@ -0,0 +1,9 @@
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+ set scriptdir=%~dp0
4
+ set scriptpath=!scriptdir!mduck.js
5
+
6
+ bun "!scriptpath!" %* 2>nul
7
+ if !errorlevel! equ 0 goto :eof
8
+
9
+ node "!scriptpath!" %*
package/bin/mduck.js CHANGED
@@ -14,7 +14,7 @@ var template_default = '<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta cha
14
14
  // package.json
15
15
  var package_default = {
16
16
  name: "mduck",
17
- version: "1.0.4",
17
+ version: "1.0.5",
18
18
  description: "A CLI tool to convert Markdown files into HTML and PDF documents using Tailwind CSS v4 for styling.",
19
19
  files: [
20
20
  "bin/",
@@ -314,4 +314,4 @@ var main = defineCommand({
314
314
  version: versionCommand
315
315
  }
316
316
  });
317
- runMain(main);
317
+ await runMain(main);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mduck",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A CLI tool to convert Markdown files into HTML and PDF documents using Tailwind CSS v4 for styling.",
5
5
  "files": [
6
6
  "bin/",
@@ -20,10 +20,10 @@
20
20
  "author": "Jean M. Lescure",
21
21
  "license": "Apache-2.0",
22
22
  "bin": {
23
- "mduck": "./bin/mduck.js"
23
+ "mduck": "./bin/mduck"
24
24
  },
25
25
  "scripts": {
26
- "build": "tsup --config tsup.config.ts",
26
+ "build": "tsup --config tsup.config.ts && chmod +x ./bin/mduck ./bin/mduck.js",
27
27
  "dev": "bun --watch run ./src/index.ts convert test/input/test.md test/output/"
28
28
  },
29
29
  "type": "module",