Skip to content

Update footer snippet to include new types/enums, fix enumerators exported incorrectly - #45

Merged
paramsiddharth merged 3 commits into
mainfrom
new-types-update-docs
May 24, 2026
Merged

Update footer snippet to include new types/enums, fix enumerators exported incorrectly#45
paramsiddharth merged 3 commits into
mainfrom
new-types-update-docs

Conversation

@paramsiddharth

Copy link
Copy Markdown
Owner

Update footer snippet to include new types/enums, fix enumerators exported incorrectly

Signed-off-by: Param Siddharth contact@paramsid.com

Signed-off-by: Param Siddharth <contact@paramsid.com>
Signed-off-by: Param Siddharth <contact@paramsid.com>
Signed-off-by: Param Siddharth <contact@paramsid.com>
Copilot AI review requested due to automatic review settings May 24, 2026 22:39
@paramsiddharth
paramsiddharth merged commit d465570 into main May 24, 2026
2 checks passed
@paramsiddharth
paramsiddharth deleted the new-types-update-docs branch May 24, 2026 22:40

Copilot AI left a comment

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.

Pull request overview

Updates the browser (IIFE) build output so the global Aksharamukha points at the default export while still exposing named exports (enums/helpers), and updates documentation/dependencies accordingly.

Changes:

  • Adjust tsup IIFE footer to merge named exports onto the default export and keep it as window.Aksharamukha.
  • Update README usage to reference Aksharamukha.Scripts.* instead of raw string literals.
  • Refresh package-lock.json with newer dependency resolutions.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
tsup.config.ts Updates the IIFE footer to preserve named exports on the global default export; adds a TS suppression comment for runtime Node import.
README.md Updates the CDN usage example to use exported Scripts constants.
package-lock.json Bumps resolved versions for various (primarily dev) dependencies.

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

Comment thread tsup.config.ts
Comment on lines +29 to +34
var ns = window.${options.globalName};
var main = ns && ns.default ? ns.default : ns;
if (main && ns) {
Object.assign(main, ns);
}
window.${options.globalName} = main;
Comment thread tsup.config.ts
},
onSuccess: async () => {
// Copy everything from downloads to dist
// @ts-expect-error Runtime Node import; this TS setup doesn't resolve built-in module types here.
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