@bhsd/codemirror-mediawiki 2.24.2 → 2.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hover.d.ts +7 -1
- package/dist/linter.d.mts +40 -0
- package/dist/linter.mjs +6 -1
- package/dist/main.min.js +16 -16
- package/dist/mw.min.js +19 -19
- package/dist/mwConfig.d.mts +15 -0
- package/dist/mwConfig.mjs +22 -11
- package/dist/token.d.ts +0 -2
- package/dist/wiki.min.js +19 -19
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +8 -7
package/i18n/en.json
CHANGED
package/i18n/zh-hans.json
CHANGED
package/i18n/zh-hant.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/codemirror-mediawiki",
|
|
3
|
-
"version": "2.24.
|
|
3
|
+
"version": "2.24.3",
|
|
4
4
|
"description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mediawiki",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"/dist/*.js",
|
|
18
18
|
"/dist/*.d.ts",
|
|
19
19
|
"/dist/*.mjs",
|
|
20
|
+
"/dist/*.d.mts",
|
|
20
21
|
"!/dist/*-page.d.ts",
|
|
21
22
|
"!/dist/parser.*",
|
|
22
23
|
"/mediawiki.css"
|
|
@@ -32,14 +33,14 @@
|
|
|
32
33
|
"scripts": {
|
|
33
34
|
"prepublishOnly": "npm run build",
|
|
34
35
|
"build:css": "esbuild ./css/index.css --bundle --minify --outfile=mediawiki.css",
|
|
35
|
-
"build:core": "esbuild ./src/codemirror.ts --charset=utf8 --bundle --minify --target=es2019 --format=esm --sourcemap --outfile=dist/main.min.js && esbuild ./src/linter.ts --charset=utf8 --target=es2019 --format=esm --outfile=dist/linter.mjs && tsc --emitDeclarationOnly && cp dist/linter.d.ts dist/linter.d.mts",
|
|
36
|
+
"build:core": "esbuild ./src/codemirror.ts --charset=utf8 --bundle --minify --target=es2019 --format=esm --sourcemap --outfile=dist/main.min.js && esbuild ./src/linter.ts --charset=utf8 --target=es2019 --format=esm --outfile=dist/linter.mjs && tsc --emitDeclarationOnly && cp dist/linter.d.ts dist/linter.d.mts && mv dist/mwConfig.d.ts dist/mwConfig.d.mts",
|
|
36
37
|
"build:mw": "esbuild ./mw/base.ts --charset=utf8 --bundle --minify --target=es2019 --format=esm --outfile=dist/mw.min.js && esbuild ./mw/config.ts --charset=utf8 --bundle --target=es2019 --format=esm --outfile=dist/mwConfig.mjs",
|
|
37
38
|
"build:wiki": "esbuild ./mw/base.ts --charset=utf8 --bundle --minify --target=es2019 --format=iife --sourcemap --outfile=dist/wiki.min.js",
|
|
38
39
|
"build:gh-page": "bash build.sh",
|
|
39
40
|
"build:test": "tsc --project test/tsconfig.json && mocha",
|
|
40
41
|
"build": "npm run build:css && rm -rf dist/ && npm run build:core && npm run build:mw && npm run build:wiki && eslint --no-eslintrc -c .eslintrc.dist.cjs dist/*.js",
|
|
41
42
|
"lint:ts": "tsc --noEmit && tsc --project mw/tsconfig.json --noEmit && tsc --project test/tsconfig.json --noEmit && eslint --cache .",
|
|
42
|
-
"lint:css": "stylelint
|
|
43
|
+
"lint:css": "stylelint **/*.css",
|
|
43
44
|
"lint": "npm run lint:ts && npm run lint:css",
|
|
44
45
|
"prof": "node --prof test/dist/test/prof.js && node --prof-process isolate-0x*-v8.log > test/prof.txt && gsed -i '0,/Bottom up/d' test/prof.txt && rm isolate-0x*-v8.log",
|
|
45
46
|
"server": "npm run test:end; http-server .. -c-1 --cors -s &",
|
|
@@ -51,11 +52,11 @@
|
|
|
51
52
|
"@codemirror/state": "^6.5.2",
|
|
52
53
|
"@codemirror/view": "^6.36.5",
|
|
53
54
|
"@lezer/common": "^1.2.3",
|
|
54
|
-
"wikiparser-node": "^1.20.
|
|
55
|
+
"wikiparser-node": "^1.20.2"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@bhsd/codemirror-css-color-picker": "^6.3.0",
|
|
58
|
-
"@bhsd/common": "^0.
|
|
59
|
+
"@bhsd/common": "^0.10.0",
|
|
59
60
|
"@codemirror/autocomplete": "^6.18.6",
|
|
60
61
|
"@codemirror/commands": "^6.8.1",
|
|
61
62
|
"@codemirror/lang-css": "^6.3.1",
|
|
@@ -90,8 +91,8 @@
|
|
|
90
91
|
"luacheck-browserify": "^0.4.0",
|
|
91
92
|
"mocha": "^11.1.0",
|
|
92
93
|
"monaco-editor": "^0.52.2",
|
|
93
|
-
"stylelint": "^16.
|
|
94
|
-
"stylelint-config-recommended": "^
|
|
94
|
+
"stylelint": "^16.19.1",
|
|
95
|
+
"stylelint-config-recommended": "^16.0.0",
|
|
95
96
|
"types-mediawiki": "^1.9.1",
|
|
96
97
|
"typescript": "^5.8.2"
|
|
97
98
|
}
|