Skip to content

Make the Monaco package installable from npm - #432

Open
holodorum wants to merge 1 commit into
kson-org:mainfrom
holodorum:fix/monaco-publishing
Open

Make the Monaco package installable from npm#432
holodorum wants to merge 1 commit into
kson-org:mainfrom
holodorum:fix/monaco-publishing

Conversation

@holodorum

Copy link
Copy Markdown
Collaborator

@kson_org/monaco-editor declared @kson/lsp-shared and kson-language-server as dependencies, by file: path. Neither is published to npm, so a file: path that exists only on the publishing machine went to the registry. Installing from it produces a dangling symlink and a failing npm ls:

@kson/lsp-shared@ invalid: "file:../shared"
npm error code ELSPROBLEMS

Vite inlines both into the bundle at build time, so they are build-time inputs rather than install-time requirements — the shipped dist names no external module beyond the monaco-editor and react peers, and the bundled language
server runs with neither package present on disk. Moving them to devDependencies leaves the package working exactly as before and stops npm directing consumers at packages that do not exist.

Also fixed

The readme referenced @kson/monaco-editor throughout — the wrong scope — so both install commands 404'd and no import example resolved.

The license claimed ISC while the project is Apache-2.0. Corrected, and the terms now ship: npm includes a LICENSE file whether or not files lists it.

Its `file:` dependencies pointed at packages that are not published, so
installing from the registry left a dangling link and broke `npm ls`.
Vite inlines both at build time, so they belong in `devDependencies`.
Also fixes the readme's package name, which 404'd, and the license,
which claimed ISC.

Documents the publishing steps, which existed nowhere, so the next release
does not depend on remembering this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant