105 lines
3.1 KiB
JSON
105 lines
3.1 KiB
JSON
{
|
|
"name": "sitemap",
|
|
"version": "9.0.1",
|
|
"description": "Sitemap-generating lib/cli",
|
|
"keywords": [
|
|
"sitemap",
|
|
"sitemap.xml"
|
|
],
|
|
"homepage": "https://github.com/ekalinin/sitemap.js#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/ekalinin/sitemap.js/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/ekalinin/sitemap.js.git"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Eugene Kalinin <e.v.kalinin@gmail.com>",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/esm/index.d.ts",
|
|
"default": "./dist/esm/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/cjs/index.d.ts",
|
|
"default": "./dist/cjs/index.js"
|
|
}
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"main": "./dist/cjs/index.js",
|
|
"module": "./dist/esm/index.js",
|
|
"types": "./dist/esm/index.d.ts",
|
|
"bin": "./dist/esm/cli.js",
|
|
"directories": {
|
|
"lib": "lib",
|
|
"test": "tests"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run build:esm && npm run build:cjs-package && npm run build:cjs",
|
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
"build:cjs-package": "mkdir -p dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
"build:esm": "tsc",
|
|
"lint": "eslint \"{lib,tests}/**/*.ts\" ./cli.ts",
|
|
"lint:fix": "eslint --fix \"{lib,tests}/**/*.ts\" ./cli.ts",
|
|
"prepare": "husky",
|
|
"prepublishOnly": "rm -rf dist && npm run build && npm run test",
|
|
"prettier": "npx prettier --check \"{lib,tests}/**/*.ts\" ./cli.ts",
|
|
"prettier:fix": "npx prettier --write \"{lib,tests}/**/*.ts\" ./cli.ts",
|
|
"test": "jest",
|
|
"test:full": "npm run lint && npm run build && jest && npm run test:xmllint",
|
|
"test:perf": "node ./tests/perf.mjs",
|
|
"test:schema": "node tests/alltags.mjs | xmllint --schema schema/all.xsd --noout -",
|
|
"test:typecheck": "tsc",
|
|
"test:xmllint": "if which xmllint; then npm run test:schema; else echo 'skipping xml tests. xmllint not installed'; fi"
|
|
},
|
|
"lint-staged": {
|
|
"package.json": [
|
|
"sort-package-json"
|
|
],
|
|
"{lib,tests}/**/*.ts": [
|
|
"eslint --fix",
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@types/node": "^24.9.2",
|
|
"@types/sax": "^1.2.1",
|
|
"arg": "^5.0.0",
|
|
"sax": "^1.4.1"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.28.5",
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.39.0",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/memorystream": "^0.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
"@typescript-eslint/parser": "^8.46.2",
|
|
"eslint": "^9.39.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-jest": "^29.0.1",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"express": "^5.1.0",
|
|
"globals": "^16.5.0",
|
|
"husky": "^9.0.11",
|
|
"jest": "^30.2.0",
|
|
"lint-staged": "^16.2.6",
|
|
"memorystream": "^0.3.1",
|
|
"prettier": "^3.2.5",
|
|
"sort-package-json": "^3.4.0",
|
|
"stats-lite": "^2.2.0",
|
|
"stream-json": "^1.7.1",
|
|
"through2-map": "^4.0.0",
|
|
"ts-jest": "^29.1.3",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.19.5",
|
|
"npm": ">=10.8.2"
|
|
}
|
|
}
|