Uses rollup for ESM build and d.ts bundling. (#5048)

* Uses rollup for ESM build and d.ts bundling.
Moves monaco.languages.{typescript, json, html, css} to monaco.*.
Moves monaco.editor.createWebWorker to monaco.createWebWorker.

* Adds excluded files from dist, as they needed to be patched.
This commit is contained in:
Henning Dieterichs 2025-10-13 18:05:43 +02:00 committed by GitHub
parent 0fd6f29a23
commit 5a7e917587
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 1795 additions and 712 deletions

View file

@ -28,10 +28,10 @@
"deps-all-install": "ts-node ./build/npm/installAll",
"update-actions": "pin-github-action ./.github/workflows/website.yml",
"watch": "tsc -w -p ./src",
"build-languages": "ts-node ./build/build-languages",
"build-all": "npm run build-lsp && npm run build-monaco-editor && npm run package-for-smoketest",
"build": "npm run build-lsp && npm run build-monaco-editor",
"build-monaco-editor": "ts-node ./build/build-monaco-editor",
"build-lsp": "cd monaco-lsp-client && npm install && npm run build",
"build": "npm run build-lsp && npm run build-languages && npm run build-monaco-editor"
"build-lsp": "cd monaco-lsp-client && npm install && npm run build"
},
"typings": "./esm/vs/editor/editor.api.d.ts",
"module": "./esm/vs/editor/editor.main.js",
@ -40,7 +40,6 @@
"url": "https://github.com/microsoft/monaco-editor"
},
"devDependencies": {
"@vscode/monaco-lsp-client": "file:./monaco-lsp-client",
"@playwright/test": "^1.53.2",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-node-resolve": "^16.0.2",
@ -48,6 +47,7 @@
"@types/shelljs": "^0.8.11",
"@types/trusted-types": "^1.0.6",
"@typescript/vfs": "^1.3.5",
"@vscode/monaco-lsp-client": "file:./monaco-lsp-client",
"chai": "^4.3.6",
"clean-css": "^5.2.4",
"css-loader": "^6.7.1",
@ -63,6 +63,7 @@
"monaco-editor-core": "^0.55.0-dev-20251008",
"parcel": "^2.7.0",
"pin-github-action": "^1.8.0",
"postcss-url": "^10.1.3",
"prettier": "^2.5.1",
"pretty-quick": "^3.1.3",
"requirejs": "^2.3.7",