Skip to content

fix(opt): list luxon as a dependency - #138

Merged
botandbang merged 1 commit into
mainfrom
bnb/opt-luxon-dependency
Nov 8, 2026
Merged

botandbang merged 1 commit into
mainfrom
bnb/opt-luxon-dependency

Conversation

@botandbang

Copy link
Copy Markdown
Contributor

Fixes #120.

Changed

  • luxon moves from devDependencies to dependencies in opt/package.json, at the ^3.5.0 range core uses. opt/index.js requires it at runtime.

Added

  • @types/luxon in dependencies, as core has it, because opt/types/index.d.ts imports from luxon.
  • A test that every package opt/index.js requires is listed in dependencies. It fails without this change.

How it was tested

npm pack of opt, installed alone in an empty project, then require('@nodevu/opt')(): main throws Cannot find module 'luxon', this branch returns the options. npm run coverage -w opt passes 11 tests at 100%, and npm run lint and npm run types pass. The other packages were checked for the same gap and have none: aliases, fetchindex, parsefiles, static and translate require nothing at runtime, and core, newest, oldest and ranges list what they require.

index.js requires luxon and the published types import it, but it was only a
devDependency, so installing @nodevu/opt alone threw "Cannot find module 'luxon'".

Fixes #120
@botandbang
botandbang merged commit 4153e8a into main Nov 8, 2026
13 checks passed
@botandbang
botandbang deleted the bnb/opt-luxon-dependency branch November 8, 2026 22:08
@nodevu-ci nodevu-ci Bot mentioned this pull request Nov 7, 2026
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.

@nodevu/opt lists luxon as a devDependency but requires it at runtime

2 participants