Skip to content

Fix export mapping pointing to invalid src folder#181

Merged
Elliot Huffman (elliot-huffman) merged 1 commit into
mainfrom
fix/export-map-points-to-src
Jul 22, 2026
Merged

Fix export mapping pointing to invalid src folder#181
Elliot Huffman (elliot-huffman) merged 1 commit into
mainfrom
fix/export-map-points-to-src

Conversation

@pr0uxx

@pr0uxx pr0uxx commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Correct the root exports entry to point at ./bin/index.js instead of the invalid ./bin/src/index.js, so package consumers resolve the main import correctly.

Before change, imports must be:
import { eslintConfig } from '@shi-corp/development-utilities/optimized/lint/base.js'

after change:
import { baseLintConfig } from '@software-hardware-integration-lab/development-utilities'

Change is backwards compatible so won't break consumers that auto upgrade to 3.0.1 but keep previous import syntax

Release 3.0.1 and correct the root `exports` entry to point at `./bin/index.js` instead of the invalid `./bin/src/index.js`, so package consumers resolve the main import correctly.
@pr0uxx pr0uxx self-assigned this Jul 22, 2026
Copilot AI review requested due to automatic review settings July 22, 2026 08:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the package’s root export map so consumers can import from the package root (via the compiled bin/index.js) instead of an invalid bin/src/index.js path.

Changes:

  • Fix the root exports["."].import entry to point to ./bin/index.js.
  • Bump package version from 3.0.0 to 3.0.1 (and sync the lockfile).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Fixes the root export mapping and bumps the package version.
package-lock.json Updates the lockfile version fields to match the package version bump.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
Comment on lines 15 to 18
"exports": {
".": {
"import": "./bin/src/index.js"
"import": "./bin/index.js"
},

@pr0uxx pr0uxx Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image image

Deleted bin and re-ran build:Prod which produces bin/index.js - AI comment is invalid unless I'm missing something

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI is false positive because it's not accounting for this script:
"prebuild:Prod": "tsc -p prod.tsconfig.json --emitDeclarationOnly false",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@elliot-huffman
Elliot Huffman (elliot-huffman) merged commit 25d4e68 into main Jul 22, 2026
11 of 12 checks passed
@elliot-huffman
Elliot Huffman (elliot-huffman) deleted the fix/export-map-points-to-src branch July 22, 2026 14:40
@pr0uxx
pr0uxx restored the fix/export-map-points-to-src branch July 24, 2026 14:44
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.

3 participants