Skip to content

Make @kson_org/monaco-editor installable from npm - #407

Open
holodorum wants to merge 2 commits into
kson-org:mainfrom
holodorum:fix-monaco-packaging-bug
Open

Make @kson_org/monaco-editor installable from npm#407
holodorum wants to merge 2 commits into
kson-org:mainfrom
holodorum:fix-monaco-packaging-bug

Conversation

@holodorum

Copy link
Copy Markdown
Collaborator

@kson/lsp-shared and kson-language-server were declared as runtime dependencies via monorepo-relative file: paths, but neither package is published and neither path exists outside this repo. The bundler inlines both, so they are build-time only: move them to devDependencies, which is what the relationship actually is. Consumers of the published tarball hit this hard — pnpm fails outright with ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND, while npm silently plants a dangling symlink and a damaged lockfile that breaks the next install.

The demo installs never caught it because a directory file: install resolves the nested file: against the real source tree, so only a packed tarball is a faithful proxy for what consumers receive; the new test packs the package and asserts the shipped manifest declares no local-only specifiers.

`@kson/lsp-shared` and `kson-language-server` were declared as runtime
`dependencies` via monorepo-relative `file:` paths, but neither package
is published and neither path exists outside this repo. The bundler
inlines both, so they are build-time only: move them to `devDependencies`,
which is what the relationship actually is. Consumers of the published
tarball hit this hard — pnpm fails outright with
ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND, while npm silently plants a dangling
symlink and a damaged lockfile that breaks the next install.
The demo installs never caught it because a directory `file:` install
resolves the nested `file:` against the real source tree, so only a
packed tarball is a faithful proxy for what consumers receive; the new
test packs the package and asserts the shipped manifest declares no
local-only specifiers.
@holodorum
holodorum force-pushed the fix-monaco-packaging-bug branch from ee235a4 to 19a42c7 Compare July 16, 2026 14:37
`@kson/lsp-shared` and `kson-language-server` were declared as runtime
`dependencies` via monorepo-relative `file:` paths, but neither package
is published and neither path exists outside this repo. The bundler
inlines both, so they are build-time only: move them to `devDependencies`,
which is what the relationship actually is. Consumers of the published
tarball hit this hard — pnpm fails outright with
ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND, while npm silently plants a dangling
symlink and a damaged lockfile that breaks the next install.
The demo installs never caught it because a directory `file:` install
resolves the nested `file:` against the real source tree, so only a
packed tarball is a faithful proxy for what consumers receive; the new
test packs the package and asserts the shipped manifest declares no
local-only specifiers.
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