Skip to content

fix: packaging#51

Merged
DjDeveloperr merged 2 commits into
mainfrom
feat/packaging-cjs-esm
May 18, 2026
Merged

fix: packaging#51
DjDeveloperr merged 2 commits into
mainfrom
feat/packaging-cjs-esm

Conversation

@NathanWalker
Copy link
Copy Markdown
Collaborator

Refactors the build and packaging process for the nativescript-inspector package to improve compatibility and clarity for consumers. The main changes include switching to a dual CommonJS/ESM output, updating the build scripts, and restructuring TypeScript configurations.

  • Updated package.json to export both CommonJS (index.js) and ESM (index.mjs) entry points, as well as type definitions, and added new scripts for building and cleaning using Node scripts. The output files are now at the package root instead of in a dist folder.

  • Added new build (scripts/build.mjs) and clean (scripts/clean.mjs) scripts to handle compilation for CommonJS, ESM, and types, and to clean up generated files. These scripts replace the previous TypeScript-only build step. [1] [2]

@DjDeveloperr DjDeveloperr merged commit 1b0b9ba into main May 18, 2026
7 checks passed
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.

2 participants