Files
docx/package.json
T
003f348248 build(deps-dev): bump typescript from 5.9.3 to 7.0.2 (#3566)
* build(deps-dev): bump typescript from 5.9.3 to 7.0.2

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 7.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v7.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 7.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* build: build with TypeScript 7, keeping TypeScript 6 for tools

TypeScript 7 has no JavaScript API yet, which typescript-eslint, typedoc,
vite-plugin-dts and our build scripts all import. Following the
TypeScript team's setup, "typescript" is now @typescript/typescript6 for
those tools, and TypeScript 7 is installed as @typescript/native, which
provides tsc.

- tsconfig: TypeScript 7 removed baseUrl, so the paths are relative to
  the tsconfig instead, with tests/* added for the specs that imported
  through baseUrl
- vite.config: API Extractor uses its own TypeScript's lib files, as the
  entries build already does. Pointed at TypeScript 6's, it can't follow
  Readonly

The built package is byte-identical to master's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 12:17:47 +01:00

191 lines
6.1 KiB
JSON

{
"name": "docx",
"version": "9.9.0",
"description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
"type": "module",
"main": "dist/index.umd.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./shapes": {
"import": {
"types": "./dist/shapes.d.ts",
"default": "./dist/shapes.mjs"
},
"require": {
"types": "./dist/shapes.d.cts",
"default": "./dist/shapes.cjs"
}
},
"./watermarks": {
"import": {
"types": "./dist/watermarks.d.ts",
"default": "./dist/watermarks.mjs"
},
"require": {
"types": "./dist/watermarks.d.cts",
"default": "./dist/watermarks.cjs"
}
},
"./charts": {
"import": {
"types": "./dist/charts.d.ts",
"default": "./dist/charts.mjs"
},
"require": {
"types": "./dist/charts.d.cts",
"default": "./dist/charts.cjs"
}
},
"./math": {
"import": {
"types": "./dist/math.d.ts",
"default": "./dist/math.mjs"
},
"require": {
"types": "./dist/math.d.cts",
"default": "./dist/math.cjs"
}
},
"./layout": {
"import": {
"types": "./dist/layout.d.ts",
"default": "./dist/layout.mjs"
},
"require": {
"types": "./dist/layout.d.cts",
"default": "./dist/layout.cjs"
}
}
},
"typesVersions": {
"*": {
"shapes": [
"./dist/shapes.d.ts"
],
"watermarks": [
"./dist/watermarks.d.ts"
],
"charts": [
"./dist/charts.d.ts"
],
"math": [
"./dist/math.d.ts"
],
"layout": [
"./dist/layout.d.ts"
]
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && vite build && vite build --config vite.entries.config.ts --mode shapes && vite build --config vite.entries.config.ts --mode watermarks && vite build --config vite.entries.config.ts --mode charts && vite build --config vite.entries.config.ts --mode math && vite build --config vite.entries.config.ts --mode layout",
"test": "vitest --ui --coverage",
"test:ci": "vitest run --coverage",
"prepublishOnly": "npm run build --omit=dev",
"lint": "eslint --config eslint.config.ts",
"predemo": "npm run build",
"demo": "tsx ./demo/index.ts",
"typedoc": "typedoc src/index.ts src/shapes/index.ts src/watermarks/index.ts src/charts/index.ts src/math/index.ts src/layout/index.ts --tsconfig tsconfig.typedoc.json",
"prettier": "prettier -l \"{src,scripts,demo,docs}/**/*.{ts,html,md}\"",
"prettier:fix": "npm run prettier -- --write",
"cspell": "cspell \"{src,demo,docs,scripts}/**/*.{ts,scss,html,md}\" && cspell \"./*.*\"",
"build.docs": "npm run build && mkdir -p docs/live-examples/lib && cp dist/*.iife.js dist/*.d.ts docs/live-examples/lib/",
"serve.docs": "cd docs && docsify serve",
"extract": "tsx scripts/extract-document.ts",
"check-api": "tsx scripts/check-api.ts",
"run-ts": "tsx"
},
"pre-commit": [
"prettier",
"lint"
],
"repository": {
"type": "git",
"url": "git+https://github.com/dolanmiu/docx.git"
},
"keywords": [
"docx",
"office",
"word",
"generate",
"creator",
"create",
"document",
"doc",
"officegen",
"clippy"
],
"dependencies": {
"@types/node": "^26.6.2",
"hash.js": "^1.1.7",
"jszip": "^3.10.1",
"nanoid": "^6.0.1",
"xml": "^1.0.1",
"xml-js": "^1.6.8"
},
"author": "Dolan Miu",
"license": "MIT",
"bugs": {
"url": "https://github.com/dolanmiu/docx/issues"
},
"homepage": "https://docx.js.org",
"devDependencies": {
"@eslint/js": "^10.0.1",
"@microsoft/api-extractor": "^7.58.7",
"@types/pngjs": "^6.0.5",
"@types/unzipper": "^0.10.4",
"@types/xml": "^1.0.8",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@typescript/native": "npm:typescript@7.0.2",
"@vitest/coverage-v8": "^5.0.2",
"@vitest/ui": "^5.0.2",
"cspell": "^10.0.0",
"docsify-cli": "^5.0.0",
"eslint": "^10.11.0",
"eslint-import-resolver-typescript": "^4.3.2",
"eslint-plugin-functional": "^10.0.1",
"eslint-plugin-import-x": "^4.17.1",
"eslint-plugin-jsdoc": "^65.0.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-unicorn": "^77.0.0",
"execa": "^10.0.1",
"glob": "^13.0.3",
"globals": "^17.12.0",
"inquirer": "^14.0.0",
"jiti": "^2.3.3",
"jsdom": "^30.1.0",
"pixelmatch": "^8.0.0",
"pngjs": "^7.0.0",
"pre-commit": "^2.0.0",
"prettier": "^3.1.1",
"tsconfig-paths": "^4.0.0",
"tsx": "^4.7.0",
"typedoc": "^0.28.2",
"typescript": "npm:@typescript/typescript6@6.0.2",
"typescript-eslint": "^8.10.0",
"unzipper": "^0.12.3",
"vite": "^8.0.0",
"vite-plugin-dts": "^5.0.1",
"vite-plugin-node-polyfills": "^0.28.0",
"vitest": "^5.0.2"
},
"engines": {
"node": ">=10"
}
}