|
24 | 24 | "compile": "webpack --mode production", |
25 | 25 | "compile-debug": "webpack --mode none", |
26 | 26 | "lint": "eslint --ignore-pattern bundle.js --ignore-pattern bundle.web.js --no-warn-ignored *.mjs *.js test-ui/*.cjs eslint.config.mjs && markdownlint-cli2 *.md", |
27 | | - "schema": "cpy ./node_modules/markdownlint/schema/markdownlint-config-schema.json . --flat && cpy ./node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json . --flat", |
28 | | - "test": "node --test --experimental-test-coverage && npm run lint && npm run compile && npm run schema && git diff --exit-code", |
| 27 | + "schema-copy": "cpy ./node_modules/markdownlint/schema/markdownlint-config-schema.json . --flat && cpy ./node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json . --flat", |
| 28 | + "schema-update": "replace-in-files --regex='\"\\$ref\": \"https://raw\\.githubusercontent\\.com/DavidAnson/markdownlint/v\\d+\\.\\d+\\.\\d+/schema/markdownlint-config-schema\\.json\"' --replacement='\"$ref\": \"./markdownlint-config-schema.json\"' ./markdownlint-cli2-config-schema.json", |
| 29 | + "test": "node --test --experimental-test-coverage && npm run lint && npm run compile && npm run schema-copy && npm run schema-update && git diff --exit-code", |
29 | 30 | "test-ui": "node ./test-ui/run-tests.mjs", |
30 | 31 | "test-web": "npm install --no-save @vscode/test-web && sed -i '.bak' -e 's/\\/{{uuid}}\\./\\//' node_modules/@vscode/test-web/out/server/workbench.js && vscode-test-web --browser=none --verbose --extensionDevelopmentPath=. .", |
31 | 32 | "upgrade": "npx --yes npm-check-updates --upgrade" |
|
53 | 54 | "eslint-plugin-n": "17.23.1", |
54 | 55 | "eslint-plugin-unicorn": "62.0.0", |
55 | 56 | "path-browserify": "1.0.1", |
| 57 | + "replace-in-files-cli": "4.0.0", |
56 | 58 | "stream-browserify": "3.0.0", |
57 | 59 | "terser-webpack-plugin": "5.3.16", |
58 | 60 | "util": "0.12.5", |
|
0 commit comments