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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tms-auth

v1.2.68

Published

<!-- * @Author : [email protected] * @Date : 2025-04-25 11:15:50 * @LastEditors : [email protected] * @LastEditTime : 2025-05-21 15:35:50 * @FilePath : /tms-auth/README.md -->

Downloads

110

Readme

tms-auth

启动项目

安装依赖

$ npm i

Start the dev server,

$ npm start

$ npm run dev

本地调试

  1. 用 npm run dev 启动项目后
  2. 运行 npm link 或 yarn link
  3. 在本地的项目 A 中运行 npm link tms-auth 或 yarn link tms-auth 即可调试

注意事项

提示 react 版本升级为 17 问题

用 yarn link 和 yarn link tms-auth

当前项目修改的数据如遇到 link 失败问题
  1. 可以试试先把本地的项目A的 node_modules 删掉
  2. 再执行一下命令 npm link tms-auth --legacy-peer-deps 或 npm link tms-auth --force
若运行后项目 A 提示 css 文件引入问题
方案 1
  1. 把 @import '~tms-auth/index.css'; 改为 @import '~tms-auth/dist/index.css';
方案 2

临时方案:直接在项目 A 中复制 CSS 文件 ​​,手动复制 tms-auth 的 CSS 文件到项目 A 中:

  • 2.1 复制 node_modules/tms-auth/dist/index.css 到 src/assets/css/
  • 2.2 在项目中导入:@import './assets/css/index.css';

发布到 dev / uat / live 环境

$ npm run pubilsh (dev|uat|live)

dev 环境打包后会在 tms-dist-dev uat 环境打包后会在 tms-dist-uat live 环境打包后会在 tms-dist

项目在 package.json 中根据需求引入不同的环境变量,分别是:

"tms-auth": "git+https://bitbucket.org/chatly-biz-tool/tms-auth.git#tms-dist-dev"
"tms-auth": "git+https://bitbucket.org/chatly-biz-tool/tms-auth.git#tms-dist-uat"
"tms-auth": "git+https://bitbucket.org/chatly-biz-tool/tms-auth.git#tms-dist"

发布失败的原因

1.网络原因:重新发布 2.其他原因:删除 nodemoudles 下的.cache 文件(一般是发布过其他环境后容易出现这个问题)

发布到 npm 包

  1. 设置源 npm config set registry https://registry.npmjs.org/
  2. 登录 npm 账号:npm login
  3. 发布:npm publish