ai-localize-reporting 1.0.0 → 2.0.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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/cli-reporter.ts +1 -1
- package/src/html-reporter.ts +2 -2
- package/src/report-builder.ts +1 -1
package/CHANGELOG.md
ADDED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -67,9 +67,9 @@ function buildReport(input) {
|
|
|
67
67
|
// src/html-reporter.ts
|
|
68
68
|
var fs = __toESM(require("fs"));
|
|
69
69
|
var path = __toESM(require("path"));
|
|
70
|
-
var
|
|
70
|
+
var import_ai_localize_shared = require("ai-localize-shared");
|
|
71
71
|
function generateHtmlReport(report, outputPath) {
|
|
72
|
-
(0,
|
|
72
|
+
(0, import_ai_localize_shared.ensureDir)(path.dirname(outputPath));
|
|
73
73
|
const html = `<!DOCTYPE html>
|
|
74
74
|
<html lang="en">
|
|
75
75
|
<head>
|
package/dist/index.mjs
CHANGED
|
@@ -29,7 +29,7 @@ function buildReport(input) {
|
|
|
29
29
|
// src/html-reporter.ts
|
|
30
30
|
import * as fs from "fs";
|
|
31
31
|
import * as path from "path";
|
|
32
|
-
import { ensureDir } from "
|
|
32
|
+
import { ensureDir } from "ai-localize-shared";
|
|
33
33
|
function generateHtmlReport(report, outputPath) {
|
|
34
34
|
ensureDir(path.dirname(outputPath));
|
|
35
35
|
const html = `<!DOCTYPE html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-localize-reporting",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Localization scan reporting: JSON, HTML, CLI summary",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"ai-localize-shared": "
|
|
16
|
+
"ai-localize-shared": "2.0.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsup": "^8.0.1",
|
package/src/cli-reporter.ts
CHANGED
package/src/html-reporter.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Report } from "
|
|
1
|
+
import type { Report } from "ai-localize-shared";
|
|
2
2
|
import * as fs from "fs";
|
|
3
3
|
import * as path from "path";
|
|
4
|
-
import { ensureDir } from "
|
|
4
|
+
import { ensureDir } from "ai-localize-shared";
|
|
5
5
|
|
|
6
6
|
export function generateHtmlReport(report: Report, outputPath: string): void {
|
|
7
7
|
ensureDir(path.dirname(outputPath));
|
package/src/report-builder.ts
CHANGED