Skip to content

📦 Make @proconnect-gouv/proconnect.email publishable standalone#2017

Open
douglasduteil wants to merge 1 commit into
mainfrom
douglasduteil/Make-proconnect-gouv-proconnect.email-publishable-standalone
Open

📦 Make @proconnect-gouv/proconnect.email publishable standalone#2017
douglasduteil wants to merge 1 commit into
mainfrom
douglasduteil/Make-proconnect-gouv-proconnect.email-publishable-standalone

Conversation

@douglasduteil

Copy link
Copy Markdown
Contributor

Problem

The package built fine inside the monorepo but was unusable as a standalone npm dependency: tsc emitted extensionless relative imports under Bundler resolution, which plain Node ESM can't resolve (ERR_MODULE_NOT_FOUND). It was also still marked private, shipped src/tests/stories in the tarball, and listed a TS-only editor plugin as a runtime dependency.

Proposal

Switch module/moduleResolution to NodeNext and add explicit .js extensions to all relative imports (directory imports resolve to index.js). Flip private to false, scope the published tarball to dist via "files", and move @kitajs/ts-html-plugin to devDependencies. Verified by packing, installing the tarball into a clean throwaway Node project, and rendering a template with plain node.

**Problem**

The package built fine inside the monorepo but was unusable as a
standalone npm dependency: tsc emitted extensionless relative imports
under Bundler resolution, which plain Node ESM can't resolve
(ERR_MODULE_NOT_FOUND). It was also still marked private, shipped
src/tests/stories in the tarball, and listed a TS-only editor plugin
as a runtime dependency.

**Proposal**

Switch module/moduleResolution to NodeNext and add explicit .js
extensions to all relative imports (directory imports resolve to
index.js). Flip private to false, scope the published tarball to
dist via "files", and move @kitajs/ts-html-plugin to devDependencies.
Verified by packing, installing the tarball into a clean throwaway
Node project, and rendering a template with plain `node`.
@douglasduteil douglasduteil force-pushed the douglasduteil/Make-proconnect-gouv-proconnect.email-publishable-standalone branch from f130a4b to efb9b61 Compare July 1, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant