{
	"name": "wikiparser-node",
	"version": "2.1.0",
	"description": "A Node.js parser for MediaWiki markup with AST",
	"keywords": [
		"mediawiki",
		"wikitext",
		"parser",
		"browser"
	],
	"homepage": "https://github.com/bhsd-harry/wikiparser-node#readme",
	"bugs": {
		"url": "https://github.com/bhsd-harry/wikiparser-node/issues"
	},
	"license": "GPL-3.0-or-later",
	"author": "Bhsd",
	"files": [
		"/bundle/bundle*.js",
		"/extensions/dist/*.js",
		"/extensions/*.css",
		"!/extensions/dist/*-page*.js",
		"!/extensions/*-page.css",
		"/printed/README",
		"/errors/README",
		"/config/",
		"!/config/mediawikiwiki.json",
		"!/config/github.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": {
		"ls": "npm i --package-lock-only && npm ls --package-lock-only -a --omit=dev",
		"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 -w --color=always $1 $2 -- . | grep '\\.ts'; }; f",
		"lint:ts": "[ ! -f dist/bin/config.js ] && npm run build:core; tsc --noEmit && eslint --cache .",
		"lint:md": "myMarkdownlint && myMarkdownlint wiki",
		"lint:bundle": "eslint --no-config-lookup --no-inline-config --parser=@typescript-eslint/parser --rule 'no-unused-vars: [2, {args: none}]' build/*.js",
		"lint": "npm run lint:ts && npm run lint:md",
		"prof": "node dist/test/prof.js",
		"coverage": "tsc -d false -t es2024 && npm run build:define && c8 npm run test:ci && node dist/script/coverage.js && open coverage/index.html",
		"test:unit": "testUtil dist/test/test.js",
		"test:math": "testUtil dist/test/math.js",
		"test:json": "testUtil dist/test/json.js",
		"test:clonenode": "CLONENODE=1 testUtil --require=./dist/test/env.js dist/test/test.js",
		"test:parser": "LC_ALL=en.UTF-8 testUtil dist/test/parserTests.js",
		"test:perf": "testUtil --test-reporter=spec dist/test/perf.js",
		"test": "npm run test:unit && npm run test:clonenode && npm run test:parser && npm run test:json",
		"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"
		]
	},
	"peerDependencies": {
		"ajv": ">=8.0.0",
		"ajv-errors": ">=3.0.0",
		"katex": ">=0.14.0",
		"mathoid-texvcjs": ">=0.4.0",
		"prism-wiki": ">=1.0.0",
		"prismjs": "^1.0.0",
		"stylelint-config-recommended": ">=14.0.0",
		"vscode-css-languageservice": ">=3.0.0",
		"vscode-html-languageservice": ">=3.1.0",
		"vscode-json-languageservice": ">=3.2.0"
	},
	"peerDependenciesMeta": {
		"ajv": {
			"optional": true
		},
		"ajv-errors": {
			"optional": true
		},
		"katex": {
			"optional": true
		},
		"mathoid-texvcjs": {
			"optional": true
		},
		"prism-wiki": {
			"optional": true
		},
		"prismjs": {
			"optional": true
		},
		"stylelint-config-recommended": {
			"optional": true
		},
		"vscode-css-languageservice": {
			"optional": true
		},
		"vscode-html-languageservice": {
			"optional": true
		},
		"vscode-json-languageservice": {
			"optional": true
		}
	},
	"dependencies": {
		"@bhsd/cm-util": "^2.4.2",
		"@bhsd/common": "^4.1.0",
		"@bhsd/nodejs": "^1.2.1",
		"@bhsd/stylelint-util": "^2.0.0",
		"culori": "^4.0.2",
		"entities": "^8.1.0",
		"vscode-languageserver-types": "^3.18.5"
	},
	"devDependencies": {
		"@bhsd/code-standard": "^5.1.0",
		"@bhsd/test-util": "^3.3.0",
		"@codemirror/lint": "^6.9.7",
		"@eslint/markdown": "^8.0.3",
		"@types/jsdom": "^30.0.0",
		"@types/prismjs": "^1.26.6",
		"ajv": "^8.20.0",
		"ajv-errors": "^3.0.0",
		"c8": "^12.0.0",
		"codejar-async": "^4.3.1",
		"diff2html-cli": "^5.2.15",
		"dompurify": "^3.4.17",
		"esbuild": "^0.28.2",
		"eslint": "^10.14.0",
		"jsdom": "^30.1.3",
		"katex": "^0.19.1",
		"mathoid-texvcjs": "^0.6.0",
		"monaco-editor": "^0.57.0",
		"prism-wiki": "^2.5.0",
		"prismjs": "^1.30.0",
		"stylelint": "^17.16.0",
		"stylelint-config-recommended": "^18.0.0",
		"tsx": "^4.23.15",
		"typescript": "^6.0.3",
		"vscode-css-languageservice": "^6.3.10",
		"vscode-html-languageservice": "^5.6.2",
		"vscode-json-languageservice": "^5.7.2",
		"vscode-languageserver-textdocument": "^1.0.16"
	},
	"engines": {
		"node": "^22.13.0 || >=24.11.0"
	}
}
