@wrongstack/plugins 0.9.19 → 0.10.0
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/index.js +6 -7
- package/dist/semver-bump.js +0 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -133,10 +133,10 @@ async function runAutoDoc(input, api) {
|
|
|
133
133
|
const results = [];
|
|
134
134
|
for (const file of input.files) {
|
|
135
135
|
try {
|
|
136
|
-
const { readFileSync:
|
|
136
|
+
const { readFileSync: readFileSync2, writeFileSync } = await import('fs');
|
|
137
137
|
let content;
|
|
138
138
|
try {
|
|
139
|
-
content =
|
|
139
|
+
content = readFileSync2(file, "utf-8");
|
|
140
140
|
} catch {
|
|
141
141
|
api.log.warn(`auto-doc: could not read file ${file}`);
|
|
142
142
|
continue;
|
|
@@ -171,8 +171,8 @@ async function runAutoDocPreview(input, api) {
|
|
|
171
171
|
const previews = [];
|
|
172
172
|
for (const file of input.files) {
|
|
173
173
|
try {
|
|
174
|
-
const { readFileSync:
|
|
175
|
-
const content =
|
|
174
|
+
const { readFileSync: readFileSync2 } = await import('fs');
|
|
175
|
+
const content = readFileSync2(file, "utf-8");
|
|
176
176
|
const entities = parseSource(content);
|
|
177
177
|
const generated = entities.filter((e) => !needsDocComment(content, e)).map((e) => style === "jsdoc" ? generateJSDoc(e, includeTypes) : generateTSDoc(e, includeTypes));
|
|
178
178
|
previews.push({ file, entities: generated });
|
|
@@ -2175,8 +2175,8 @@ var plugin9 = {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
let content;
|
|
2177
2177
|
try {
|
|
2178
|
-
const { readFileSync:
|
|
2179
|
-
content =
|
|
2178
|
+
const { readFileSync: readFileSync2 } = await import('fs');
|
|
2179
|
+
content = readFileSync2(templatePath, "utf-8");
|
|
2180
2180
|
} catch (err) {
|
|
2181
2181
|
return { ok: false, error: `Could not read template file: ${err}` };
|
|
2182
2182
|
}
|
|
@@ -2437,7 +2437,6 @@ var plugin10 = {
|
|
|
2437
2437
|
setup(api) {
|
|
2438
2438
|
const tagPrefix = api.config.extensions?.["semver-bump"]?.["tagPrefix"] ?? "v";
|
|
2439
2439
|
const autoTag = api.config.extensions?.["semver-bump"]?.["autoTag"] ?? true;
|
|
2440
|
-
api.config.extensions?.["semver-bump"]?.["changelogFile"] ?? "CHANGELOG.md";
|
|
2441
2440
|
api.tools.register({
|
|
2442
2441
|
name: "semver_bump",
|
|
2443
2442
|
description: "Determine the next version bump from conventional commits since the last tag, or force a specific bump. Creates a git tag.",
|
package/dist/semver-bump.js
CHANGED
|
@@ -154,7 +154,6 @@ var plugin = {
|
|
|
154
154
|
setup(api) {
|
|
155
155
|
const tagPrefix = api.config.extensions?.["semver-bump"]?.["tagPrefix"] ?? "v";
|
|
156
156
|
const autoTag = api.config.extensions?.["semver-bump"]?.["autoTag"] ?? true;
|
|
157
|
-
api.config.extensions?.["semver-bump"]?.["changelogFile"] ?? "CHANGELOG.md";
|
|
158
157
|
api.tools.register({
|
|
159
158
|
name: "semver_bump",
|
|
160
159
|
description: "Determine the next version bump from conventional commits since the last tag, or force a specific bump. Creates a git tag.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Official WrongStack plugin collection — auto-doc, git-autocommit, shell-check, cost-tracker, file-watcher, web-search, json-path, cron, template-engine, semver-bump",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ECOSTACK TECHNOLOGY OÜ",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@types/node": "^22.19.19",
|
|
61
61
|
"tsup": "^8.5.1",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
|
-
"vitest": "^
|
|
63
|
+
"vitest": "^4.1.7"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@wrongstack/core": "0.
|
|
66
|
+
"@wrongstack/core": "0.10.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "tsup",
|