Skip to content

toy subpath export in NPM#41

Open
r-chong wants to merge 1 commit intostagingfrom
extensions/toy-export
Open

toy subpath export in NPM#41
r-chong wants to merge 1 commit intostagingfrom
extensions/toy-export

Conversation

@r-chong
Copy link
Copy Markdown
Collaborator

@r-chong r-chong commented Apr 13, 2026

Builds toy/ to dist/toy/ via a separate tsconfig and adds the ./toy subpath export so the browser demo can do import { Tensor } from '@mni-ml/framework/toy' without loading the native addon.

@webgpu/types lands as a devDep so tsc picks up GPU* ambient types.

Verified: npm run build clean, dist/toy/index.js present, import resolves.

@r-chong r-chong mentioned this pull request Apr 13, 2026
@r-chong r-chong force-pushed the extensions/toy-export branch from 3bca4dc to 450b54a Compare April 13, 2026 03:54
Build toy/ to dist/toy/ with a separate tsconfig so it can be
imported as @mni-ml/framework/toy without pulling in the native
addon. Needed for the browser demo.
@r-chong r-chong force-pushed the extensions/toy-export branch from 450b54a to 7c0e9cc Compare April 13, 2026 06:48
@r-chong r-chong changed the title feat: add ./toy subpath export Ttoy subpath export in NPM Apr 13, 2026
@r-chong r-chong changed the title Ttoy subpath export in NPM toy subpath export in NPM Apr 13, 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.

1 participant