制作npm包

2020-07-10  本文已影响0人  RadishHuang
// westore
import store from './utils/store';
import create from './utils/lib/westore/create';
// async
import regeneratorRuntime from './utils/lib/runtime';
// 初始化程序
const init = require('./utils/init');
module.exports = {
  store,
  create,
  regeneratorRuntime,
  init,
}
{
  "name": "radish_wx_mini_store",
  "version": "1.0.1",
  "description": "小程序store组件",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/radishyell/wx_mini_store.git"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/radishyell/wx_mini_store/issues"
  },
  "homepage": "https://github.com/radishyell/wx_mini_store#readme"
}

image.png
:wx_mini_store n-321$ npm login
Username: radishhuang
Password: 
Email: (this IS public) 597395959@qq.com
Logged in as radishhuang on https://registry.npmjs.org/.
N-321deMacBook-Pro:wx_mini_store n-321$ npm publish
  
npm notice === Tarball Details === 
npm notice name:          radish_wx_mini_store                    
npm notice version:       1.0.1                                   
npm notice package size:  37.5 kB                                 
npm notice unpacked size: 97.8 kB                                 
npm notice shasum:        02bc287ed0cbfb7a4b0fb85f3be8cc3213e49773
npm notice integrity:     sha512-g9bVRfZYS/0Db[...]yQObpAD+cRCow==
npm notice total files:   26                                      
npm notice 
+ radish_wx_mini_store@1.0.1
N-321deMacBook-Pro:wx_mini_store n-321$ 
上一篇 下一篇

猜你喜欢

热点阅读