npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jump-mp/td-chat

v0.1.23

Published

TDesign Chat Components for Vue 2.7 (standalone)

Readme

td-chat(独立工程)

TDesign Chat 组件库 - Vue 2.7 独立版本,不依赖 monorepo,可直接在本目录完成安装与构建。

环境要求

  • Node.js >= 18
  • Vue 2.7.16
  • tdesign-vue(peer)

安装

npm install
# 若遇 peer vue 版本冲突(如 tdesign-vue 要求 ~2.6),可使用:
npm install --legacy-peer-deps
# 或
pnpm install

脚本

| 命令 | 说明 | |------|------| | npm run build | 构建产物到 es/esm/,并打包完整 chat 样式到 es/style/index.css | | npm run build:full | 使用独立临时环境构建,结束后同样会补全 es/style/index.css | | npm run build:style | 仅构建完整样式(依赖 style/index.js → tdesign-web-components less) | | npm run build:type | 仅生成 TypeScript 声明 | | npm run test | 运行单测 | | npm run test:dev | 单测 watch 模式 | | npm run test:coverage | 单测覆盖率 |

构建产物

  • es/:ESM(.mjs),供现代打包器使用,module 入口
  • esm/:ESM(.js),含 esm/style/index.js 引用 tdesign-vue 样式

使用方需安装并引入 tdesign-vue 的样式;组件样式依赖 tdesign-vue 主题变量。

与 monorepo 的差异

  1. 无 workspace 依赖:不再使用 @tdesign/shared-utils,已用工程内 utils/withInstall.ts(Vue 2.7 版)替代。
  2. 构建:默认 npm run build 在本进程执行 Rollup,无需临时目录,避免与根 workspace 的 Vue 版本冲突。
  3. 样式:从 tdesign-web-components 内嵌的 chat less 打包出完整 es/style/index.css(与 build:chat 逻辑一致,行数约 430;monorepo 中 build:chat 使用 @tdesign/common-style 时约 808 行)。

从 monorepo 迁出

本目录由 packages/td-chat 迁出并做上述适配,可直接作为独立仓库使用或复制到其他项目。