Skip to content

Conversation

@xingxinglieo
Copy link
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
Copy link

github-actions bot commented Feb 6, 2026

📦 Canary version published!

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

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

📦 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
Copy link

github-actions bot commented Feb 6, 2026

📦 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
Copy link

github-actions bot commented Feb 6, 2026

📦 Canary version published!

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

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

📦 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