Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
125 lines (125 loc) · 8.9 KB
/
Copy pathpackage.json
File metadata and controls
125 lines (125 loc) · 8.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "safe-docx-suite",
"version": "0.25.0",
"private": true,
"description": "Monorepo for Safe DOCX packages",
"repository": {
"type": "git",
"url": "git+https://github.com/usejunior/safe-docx.git"
},
"homepage": "https://github.com/usejunior/safe-docx#readme",
"bugs": {
"url": "https://github.com/usejunior/safe-docx/issues"
},
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"build": "npm run build --workspaces --if-present",
"lint:workspaces": "npm run lint --workspaces --if-present && npm run lint:allure-imports",
"lint:allure-imports": "eslint \"packages/**/*.test.ts\" --ignore-pattern \"packages/google-docs-core/**\" --ignore-pattern \"packages/odf-core/**\"",
"check:cycles": "madge --circular --extensions ts packages/*/src",
"check:control-bytes": "node scripts/check_control_bytes.mjs",
"test": "npm run test --workspaces --if-present",
"test:run": "npm run test:run --workspaces --if-present",
"allure:version": "allure --version",
"allure:generate": "node scripts/generate_allure_report.mjs",
"allure:brand": "node scripts/brand_allure_report.mjs --report-dir allure-report-repo",
"allure:open": "./node_modules/.bin/allure open allure-report-repo --port 9098",
"allure:serve": "npm run allure:generate && npm run allure:open",
"check:tool-docs": "npm run docs:generate:tools -w @usejunior/docx-mcp && git diff --exit-code -- packages/docx-mcp/docs/tool-reference.generated.md",
"site:build": "npm --prefix site run build",
"site:dev": "npm --prefix site run dev",
"check:site-links": "node scripts/check_site_internal_links.mjs",
"check:site": "npm run site:build && npm run check:site-links",
"check:spec-coverage": "npm run check:spec-coverage:openspec -w @usejunior/docx-core -- --strict && npm run check:spec-coverage:primitives -w @usejunior/docx-core -- --strict && npm run check:spec-coverage:tag-density -w @usejunior/docx-core && npm run check:spec-coverage -w @usejunior/docx-mcp -- --strict && npm run check:spec-coverage-generation -w @usejunior/docx-core -- --strict",
"check:allure-labels": "node scripts/validate_allure_test_labels.mjs",
"check:allure-quality": "node scripts/validate_allure_test_quality.mjs",
"check:bdd-coverage": "node scripts/check_bdd_coverage.mjs",
"check:allure-filenames": "node scripts/check_allure_test_filename_policy.mjs --baseline coverage/allure-test-filename-baseline.json",
"check:mcpb-manifest": "npm run check:manifest-contract -w @usejunior/safedocx-mcpb",
"check:gemini-extension-manifest": "node scripts/check_gemini_extension_manifest.mjs",
"check:release-isolation": "node scripts/check-release-isolation.mjs",
"test:release-isolation": "node --test scripts/check-release-isolation.test.mjs",
"check:docx-formatting-loss": "node scripts/check_docx_formatting_loss.mjs",
"test:docx-formatting-loss": "node --test scripts/check_docx_formatting_loss.test.mjs && node scripts/check_docx_formatting_loss.mjs --self-test",
"update:strategy-differential-manifest": "tsx scripts/update_strategy_differential_manifest.ts",
"oracle:aspose-fields": "python3 scripts/aspose_field_oracle.py --output packages/docx-compare/src/testing/oracles/aspose-field-oracle.v1.json",
"oracle:word:serve": "node scripts/oracle/word/serve-addin.mjs",
"oracle:word:compare": "node scripts/oracle/word/cli.mjs",
"oracle:word:fixtures": "node scripts/oracle/word/fixtures.mjs",
"oracle:word:test": "node --test scripts/oracle/word/*.test.mjs",
"preflight:ci": "npm run lint:workspaces && npm run check:spec-coverage && npm run check:tool-docs && npm run check:mcpb-manifest && npm run check:gemini-extension-manifest && npm run check:allure-labels && npm run check:allure-filenames && npm run check:allure-quality && npm run check:conformance-citations && npm run check:conformance-doc && npm run check:ecma-376-coverage && npm run check:capability-projection && npm run check:conformance-explorer && npm run check:invariants-doc && npm run check:site && npm run check:cycles",
"test:coverage:reporter": "node --test scripts/report_package_coverage.test.mjs",
"test:coverage:packages": "npm run test:coverage:reporter && npm run test:coverage -w @usejunior/docx-core && npm run test:coverage -w @usejunior/docx-compare && npm run test:coverage -w @usejunior/docx-markdoc && npm run test:coverage -w @usejunior/docx-mcp",
"coverage:matrix": "node scripts/print_coverage_matrix.mjs",
"coverage:packages:report": "node scripts/report_package_coverage.mjs --baseline coverage/package-coverage-baseline.json --output coverage/package-coverage-summary.json",
"coverage:packages:check": "node scripts/report_package_coverage.mjs --baseline coverage/package-coverage-baseline.json --output coverage/package-coverage-summary.json --enforce",
"coverage:packages:rebaseline": "npm run test:coverage:packages && node scripts/report_package_coverage.mjs --baseline coverage/package-coverage-baseline.json --write-baseline && npm run coverage:packages:check",
"pack:mcpb": "npm run pack:mcpb -w @usejunior/safedocx-mcpb",
"allure:generate:deep": "node scripts/generate_allure_report.mjs --group-by epic,feature,suite,subSuite,story",
"allure:generate:package-view": "node scripts/generate_allure_report.mjs --group-by epic,feature,suite,package,story",
"allure:deploy": "node scripts/deploy_allure_report.mjs",
"allure:summary:export": "node scripts/export_allure_summary.mjs",
"generate:changelog": "node scripts/generate_changelog_data.mjs",
"check:changelog": "node scripts/check_changelog_data.mjs",
"generate:trust-metrics": "node scripts/generate_trust_metrics.mjs",
"check:trust-metrics": "npm run generate:trust-metrics && git diff --exit-code -- site/src/trust/metrics.json",
"trust:rebuild": "npm run generate:trust-metrics && npm run allure:summary:export",
"trust:check": "npm run check:trust-metrics",
"generate:conformance-doc": "node scripts/generate_conformance_doc.mjs",
"check:conformance-citations": "node scripts/check_conformance_citations.mjs",
"check:conformance-doc": "node scripts/check_conformance_doc.mjs",
"generate:ecma-376-coverage": "node scripts/generate_ecma_376_coverage.mjs",
"generate:advanced-revision-evidence": "node scripts/generate_advanced_revision_evidence.mjs",
"check:advanced-revision-classification": "node scripts/generate_advanced_revision_evidence.mjs --check && node --test scripts/check_advanced_revision_classification.test.mjs && node scripts/check_advanced_revision_classification.mjs",
"check:ecma-376-coverage": "node scripts/generate_advanced_revision_evidence.mjs --check && node --test scripts/generate_ecma_376_coverage.test.mjs scripts/check_advanced_revision_classification.test.mjs && node scripts/generate_ecma_376_coverage.mjs --check && node scripts/check_advanced_revision_classification.mjs",
"generate:capability-projection": "node scripts/generate_capability_projection.mjs",
"check:capability-projection": "node --test scripts/generate_capability_projection.test.mjs && node scripts/generate_capability_projection.mjs --check",
"generate:conformance-explorer": "node scripts/generate_conformance_explorer.mjs",
"check:conformance-explorer": "node --test scripts/generate_conformance_explorer.test.mjs && node scripts/generate_conformance_explorer.mjs --check",
"generate:invariants-doc": "node scripts/generate_invariants_doc.mjs",
"check:invariants-doc": "node scripts/check_invariants_doc.mjs",
"check:emitted-schema": "node --test scripts/check_emitted_document_schema.test.mjs && node scripts/check_emitted_document_schema.mjs --self-test --known-failures coverage/emitted-schema-known-failures.json",
"generate:tests-corpus-schema": "npm run build -w @usejunior/test-narrative && node scripts/generate_tests_corpus_schema.mjs",
"check:tests-corpus-schema": "npm run build -w @usejunior/test-narrative && node scripts/check_tests_corpus_schema.mjs",
"build:tests-corpus": "npm run build -w @usejunior/test-narrative && node scripts/build_tests_corpus.mjs",
"check:test-narratives": "npm run build -w @usejunior/test-narrative && node scripts/check_test_narratives.mjs",
"sync:readme": "node scripts/sync_readme_blocks.mjs",
"check:readme-sync": "node scripts/sync_readme_blocks.mjs --check"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"@vitest/runner": "4.1.8",
"@xmldom/xmldom": "^0.9.12",
"ajv": "^8.18.0",
"allure": "3.15.0",
"eslint": "^10.0.1",
"fast-xml-parser": "^5.7.0",
"jszip": "^3.10.1",
"madge": "8.0.0",
"prismjs": "^1.30.0"
},
"overrides": {
"@vitest/runner": "4.1.8"
},
"engines": {
"node": ">=20"
},
"keywords": [
"docx",
"word",
"document",
"ai",
"mcp",
"legal",
"contract",
"editing",
"tracked-changes",
"redline",
"safedocx"
],
"license": "Apache-2.0"
}