{
	"name": "wikiparser-node",
	"version": "1.38.1",
	"description": "A Node.js parser for MediaWiki markup with AST",
	"keywords": [
		"mediawiki",
		"wikitext",
		"parser",
		"browser"
	],
	"homepage": "https://github.com/bhsd-harry/wikiparser-node/wiki",
	"bugs": {
		"url": "https://github.com/bhsd-harry/wikiparser-node/issues"
	},
	"license": "GPL-3.0-or-later",
	"author": "Bhsd",
	"files": [
		"/bundle/bundle*.js",
		"/extensions/typings.d.ts",
		"/extensions/dist/*.js",
		"/extensions/*.css",
		"!/extensions/dist/*-page*.js",
		"!/extensions/*-page.css",
		"/printed/README",
		"/errors/README",
		"/config/",
		"!/config/mediawikiwiki.json",
		"!/config/testwiki.json",
		"/data/",
		"/i18n/",
		"/coverage/badge.svg",
		"/bin/*.js",
		"/dist/",
		"!/dist/script/",
		"!/dist/test/"
	],
	"bin": {
		"getParserConfig": "bin/config.js"
	},
	"browser": "/bundle/bundle-lsp.min.js",
	"main": "./dist/index.js",
	"types": "./dist/index.d.ts",
	"sideEffects": false,
	"repository": {
		"type": "git",
		"url": "git+https://github.com/bhsd-harry/wikiparser-node.git"
	},
	"scripts": {
		"toc": "node dist/script/toc.js",
		"prepublishOnly": "npm run build:core",
		"build:core": "bash build.sh",
		"build:define": "bash sed.sh -i \"s/pkg = \\$PKG/pkg = $(npm pkg get name)/; s/version = \\$VERSION/version = $(npm pkg get version)/\" dist/bin/config.js",
		"build": "npm run build:core && LC_ALL=en.UTF-8 node dist/script/parserTests.js",
		"diff": "bash diff.sh",
		"diff:stat": "f() { git diff --stat --ignore-all-space --color=always $1 $2 -- . | grep '\\.ts'; }; f",
		"lint:ts": "tsc --noEmit && eslint --cache . && eslint --no-config-lookup -c wiki/eslint.config.mjs wiki/*.md",
		"lint:json": "v8r -s config/.schema.json config/*.json && v8r -s data/.schema.json data/*.json && mocha dist/test/json.js",
		"lint:md": "markdownlint-cli2 '**/*.md'",
		"lint": "npm run lint:ts && npm run lint:json && npm run lint:md",
		"prof": "node dist/test/prof.js",
		"coverage": "tsc --declaration false --target es2024 && npm run build:define && c8 npm run test:ci && node dist/script/coverage.js && open coverage/index.html",
		"test:unit": "mocha dist/test/test.js",
		"test:math": "mocha dist/test/math.js",
		"test:clonenode": "CLONENODE=1 npm run test:unit",
		"test:parser": "LC_ALL=en.UTF-8 mocha dist/test/parserTests.js",
		"test:perf": "mocha --reporter spec dist/test/perf.js",
		"test": "npm run test:unit && npm run test:clonenode && npm run test:parser",
		"test:parseronly": "LSP=0 npm run test:parser",
		"test:ci": "LSP=0 npm test",
		"test:end": "pkill -x http-server",
		"test:real": "node dist/test/real.js"
	},
	"c8": {
		"exclude": [
			"dist/bin/*.js",
			"dist/script/*.js",
			"dist/test/*.js"
		],
		"reporter": [
			"html",
			"text-summary",
			"json-summary"
		]
	},
	"dependencies": {
		"@bhsd/cm-util": "^1.0.0",
		"@bhsd/common": "^2.0.0",
		"@bhsd/nodejs": "^1.0.0",
		"@bhsd/stylelint-util": "^1.0.1",
		"binary-search": "^1.3.6",
		"vscode-languageserver-types": "^3.17.5"
	},
	"optionalDependencies": {
		"color-name": "^2.0.0",
		"entities": "^8.0.0",
		"mathoid-texvcjs": "^0.6.0",
		"prism-wiki": "^2.0.0",
		"prismjs": "^1.30.0",
		"stylelint": "^17.6.0",
		"vscode-css-languageservice": "^6.3.10",
		"vscode-html-languageservice": "^5.6.2",
		"vscode-json-languageservice": "^5.7.2"
	},
	"devDependencies": {
		"@bhsd/code-standard": "^2.2.0",
		"@bhsd/test-util": "^1.0.0",
		"@codemirror/lint": "^6.9.5",
		"@eslint/markdown": "^8.0.1",
		"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
		"@stylistic/eslint-plugin": "^5.10.0",
		"@types/color-name": "^2.0.0",
		"@types/color-rgba": "^2.1.3",
		"@types/mocha": "^10.0.10",
		"@types/node": "^24.11.0",
		"@types/prismjs": "^1.26.6",
		"@typescript-eslint/eslint-plugin": "^8.58.0",
		"@typescript-eslint/parser": "^8.58.0",
		"c8": "^11.0.0",
		"codejar-async": "^4.3.0",
		"color-rgba": "^3.0.0",
		"diff2html-cli": "^5.2.15",
		"esbuild": "^0.27.7",
		"eslint": "^10.2.0",
		"eslint-plugin-jsdoc": "^62.7.1",
		"eslint-plugin-jsonc": "^3.1.2",
		"eslint-plugin-n": "^17.24.0",
		"eslint-plugin-promise": "^7.2.1",
		"eslint-plugin-regexp": "^3.1.0",
		"eslint-plugin-unicorn": "^64.0.0",
		"markdownlint-cli2": "^0.21.0",
		"mocha": "^11.7.5",
		"monaco-editor": "~0.53.0",
		"typescript": "^6.0.2",
		"v8r": "^6.0.0",
		"vscode-languageserver-textdocument": "^1.0.12"
	},
	"engines": {
		"node": "^20.19.0 || ^22.13.0 || >=24.11.0"
	}
}
