@cenk1cenk2/md-printer 2.14.0 → 2.15.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.
@@ -1,6 +1,6 @@
1
- import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "../constants/template.constants.js";
2
- import { InputFileType, OutputFileType } from "../constants/file.constants.js";
3
- import "../constants/index.js";
1
+ import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "../constants/template.constants.mjs";
2
+ import { InputFileType, OutputFileType } from "../constants/file.constants.mjs";
3
+ import "../constants/index.mjs";
4
4
  import tailwind from "@tailwindcss/postcss";
5
5
  import { watch } from "chokidar";
6
6
  import graymatter from "gray-matter";
@@ -88,6 +88,7 @@ var MDPrinter = class extends Command {
88
88
  return new showdown.Converter().makeHtml(markdown);
89
89
  });
90
90
  this.tasks.options = { silentRendererCondition: true };
91
+ if (!this.args.file && !this.flags.stdin) throw new Error("Either --stdin or file argument must be provided.");
91
92
  }
92
93
  async run() {
93
94
  this.tasks.add([{ task: async (ctx) => {
@@ -1,4 +1,4 @@
1
- import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "./template.constants.js";
2
- import { INPUT_FILE_ACCEPTED_TYPES, InputFileType, OUTPUT_FILE_ACCEPTED_TYPES, OutputFileType } from "./file.constants.js";
1
+ import { RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles } from "./template.constants.mjs";
2
+ import { INPUT_FILE_ACCEPTED_TYPES, InputFileType, OUTPUT_FILE_ACCEPTED_TYPES, OutputFileType } from "./file.constants.mjs";
3
3
 
4
4
  export { INPUT_FILE_ACCEPTED_TYPES, InputFileType, OUTPUT_FILE_ACCEPTED_TYPES, OutputFileType, RequiredTemplateFiles, TEMPLATE_DIRECTORY, TemplateFiles };
@@ -151,5 +151,5 @@
151
151
  "enableJsonFlag": false
152
152
  }
153
153
  },
154
- "version": "2.13.1"
154
+ "version": "2.15.0"
155
155
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/md-printer",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
4
4
  "description": "A markdown printer.",
5
- "main": "dist/index.js",
5
+ "module": "dist/index.mjs",
6
6
  "type": "module",
7
7
  "repository": "https://gitlab.kilic.dev/utils/md-printer",
8
8
  "author": "Cenk Kilic",
@@ -49,7 +49,7 @@
49
49
  "dirname": "md-printer",
50
50
  "commands": {
51
51
  "strategy": "single",
52
- "target": "./dist/commands/index.js"
52
+ "target": "./dist/commands/index.mjs"
53
53
  },
54
54
  "plugins": [
55
55
  "@oclif/plugin-help"
@@ -63,22 +63,21 @@
63
63
  "topicSeparator": " "
64
64
  },
65
65
  "engines": {
66
- "node": ">=20.0.0"
66
+ "node": ">=24.0.0"
67
67
  },
68
68
  "keywords": [
69
69
  "oclif",
70
70
  "cenk1cenk2"
71
71
  ],
72
72
  "dependencies": {
73
- "@cenk1cenk2/oclif-common": "^6.4.12",
73
+ "@cenk1cenk2/oclif-common": "^7.0.0",
74
74
  "@listr2/manager": "^3.0.3",
75
75
  "@oclif/core": "^4.5.3",
76
76
  "@oclif/plugin-help": "^6.2.32",
77
77
  "@tailwindcss/forms": "^0.5.10",
78
78
  "@tailwindcss/postcss": "^4.1.13",
79
79
  "@tailwindcss/typography": "^0.5.16",
80
- "@tsconfig/node20": "^20.1.6",
81
- "chokidar": "^4.0.3",
80
+ "chokidar": "^5.0.0",
82
81
  "fs-extra": "^11.3.1",
83
82
  "get-port": "^7.1.0",
84
83
  "gray-matter": "^4.0.3",
@@ -95,6 +94,7 @@
95
94
  "devDependencies": {
96
95
  "@cenk1cenk2/cz-cc": "^2.1.5",
97
96
  "@cenk1cenk2/eslint-config": "^3.1.69",
97
+ "@tsconfig/node24": "^24.0.3",
98
98
  "@types/config": "^3.3.5",
99
99
  "@types/fs-extra": "^11.0.4",
100
100
  "@types/node": "^24.3.1",
@@ -102,7 +102,7 @@
102
102
  "@types/showdown": "^2.0.6",
103
103
  "eslint": "^9.35.0",
104
104
  "execa": "^9.6.0",
105
- "globby": "^15.0.0",
105
+ "globby": "^16.1.0",
106
106
  "lint-staged": "^16.1.6",
107
107
  "oclif": "^4.22.18",
108
108
  "prettier": "^3.6.2",
@@ -112,7 +112,7 @@
112
112
  "tpm": "^1.4.14",
113
113
  "ts-node": "^10.9.2",
114
114
  "tsconfig-paths": "^4.2.0",
115
- "tsdown": "^0.15.0",
115
+ "tsdown": "^0.18.0",
116
116
  "typescript": "^5.9.2"
117
117
  },
118
118
  "config": {
@@ -120,5 +120,5 @@
120
120
  "path": "./node_modules/@cenk1cenk2/cz-cc"
121
121
  }
122
122
  },
123
- "packageManager": "pnpm@10.18.2"
123
+ "packageManager": "pnpm@10.27.0"
124
124
  }
File without changes