Skip to content

feat: add build step to output compiled JS - #8

Merged
xingxinglieo merged 5 commits into
mainfrom
feat/build-output
Feb 6, 2026
Merged

xingxinglieo merged 5 commits into
mainfrom
feat/build-output

Conversation

@xingxinglieo

Copy link
Copy Markdown
Contributor

Summary

  • 添加 build 脚本输出编译后的 JS 文件到 dist/
  • 更新 exports 指向编译产物
  • 添加 prepublishOnly 钩子确保发布前构建
  • 设置 type: module 输出 ESM 格式

这样外部项目(如使用 Turbopack 的 Next.js)可以直接使用,无需配置 transpilePackages。

Made with Cursor

- Add build script with tsc
- Update exports to point to dist/
- Add prepublishOnly hook
- Set type: module for ESM output

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

📦 Canary version published!

pnpm add statsig@0.0.2-canary.pr8.a39902a
# or
pnpm add statsig@canary

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

📦 Canary version published!

pnpm add statsig@0.0.2-canary.pr8.0a8f978
# or
pnpm add statsig@canary

ts-node with commonjs module cannot resolve subpath exports
without a default fallback condition.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

📦 Canary version published!

pnpm add statsig@0.0.2-canary.pr8.b7151df
# or
pnpm add statsig@canary

lodash is CJS-only and breaks named imports in ESM context.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

📦 Canary version published!

pnpm add statsig@0.0.2-canary.pr8.c7ad2cb
# or
pnpm add statsig@canary

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown

📦 Canary version published!

pnpm add statsig@0.0.2-canary.pr8.ee6bc55
# or
pnpm add statsig@canary

@xingxinglieo
xingxinglieo merged commit 954b610 into main Feb 6, 2026
2 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.

1 participant