1.0.4 • Published 2 years ago
@pjqdyd/npm-ts-demo v1.0.4
The demo project of npm typescript 发布npm仓库的ts模板项目
Background:
此项目并没有什么内容,只是一个发布npm包的示例ts项目.
Install:
// npm 安装
npm install @pjqdyd/npm-ts-demo
// yarn 安装
yarn add @pjqdyd/npm-ts-demo
How to use:
import { getVersion } from '@pjqdyd/npm-ts-demo'
const version = getVersion();
console.log('项目版本号:', version)
All Methods:
- getVersion 获取项目版本号
- getPackageName 获取项目名称
- ...
- ed: 等待后续添加更多 (欢迎pr) ...
How to publish npm:
npm run build
npm login
// 发布@xxx私有包为公共, 使用--access publish
npm publish --access public
How to update npm:
- change the version.
- build.
- npm publish.
License
This project is licensed under the MIT license.