Skip to content

Instantly share code, notes, and snippets.

@zhanba
Created January 10, 2024 02:58
Show Gist options
  • Save zhanba/e69c4640d4745d48b2a6f72ae9fb6a0b to your computer and use it in GitHub Desktop.
Save zhanba/e69c4640d4745d48b2a6f72ae9fb6a0b to your computer and use it in GitHub Desktop.
build monaco-editor-core
// 1. open vscode on codespaces
// 2. git fetch --all
const url = 'https://cdn.jsdelivr.net/npm/monaco-editor-core@0.45.0/package.json'
const json = await fetch(url).then(res => res.json())
const commitId = json.vscodeCommitId
// git checkout commitid
// 3. build
// vscode/build/gulpfile.editor.js:81 shakeLevel: 2,
// yarn run gulp editor-distro
// cd out-monaco-editor-core/package.json update name version
// npm login & publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment