Skip to content

Commit

Permalink
Merge pull request #10 from wtto00/dev
Browse files Browse the repository at this point in the history
更改名称为@wtto00/jweixin-esm
  • Loading branch information
wtto00 authored Mar 24, 2023
2 parents d48dd01 + daf3079 commit 5e6b02f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}

- name: package.json info
id: info
uses: jaywcjlove/github-action-package@main
with:
rename: '@${{ github.repository }}'

- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

微信 JSSDK, ESM 模块, 附带 TS 类型以及详细注释

[![jweixin:1.6.0](https://img.shields.io/badge/jweixin.js-1.6.0-blue?style=flat-square&logo=WeChat)](http://res.wx.qq.com/open/js/jweixin-1.6.0.js) [![DOCUMENT](https://img.shields.io/badge/GO%20TO-DOCUMENT-blue?style=flat-square)](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html) ![TypeScript:SUPPORT](https://img.shields.io/badge/TypeScript-SUPPORT-blue?style=flat-square) [![PR:WELCOME](https://img.shields.io/badge/PR-WELCOME-blue?style=flat-square)](https://github.com/wtto00/jweixin-esm/pulls) [![ISSUE:WELCOME](https://img.shields.io/badge/ISSUE-WELCOME-blue?style=flat-square)](https://github.com/wtto00/jweixin-esm/issues)
[![jweixin:1.6.0](https://img.shields.io/badge/jweixin.js-1.6.0-blue?style=flat-square&logo=WeChat)](http://res.wx.qq.com/open/js/jweixin-1.6.0.js) [![DOCUMENT](https://img.shields.io/badge/GO%20TO-DOCUMENT-blue?style=flat-square&logo=WeChat)](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html)
[![NPM](https://flat.badgen.net/npm/v/@wtto00/jweixin-esm?icon=npm)](https://www.npmjs.com/package/@wtto00/jweixin-esm) [![GitHub Package](https://img.shields.io/github/package-json/v/wtto00/jweixin-esm?style=flat-square&logo=github&label=package)](https://github.com/wtto00/jweixin-esm/pkgs/npm/jweixin-esm) ![TypeScript:SUPPORT](https://img.shields.io/badge/TypeScript-SUPPORT-blue?style=flat-square)
[![PR:WELCOME](https://img.shields.io/badge/PR-WELCOME-blue?style=flat-square)](https://github.com/wtto00/jweixin-esm/pulls) [![ISSUE:WELCOME](https://img.shields.io/badge/ISSUE-WELCOME-blue?style=flat-square)](https://github.com/wtto00/jweixin-esm/issues)

## About

Expand All @@ -11,17 +13,17 @@
## Installation

```shell
pnpm add jweixin-esm
# npm i jweixin-esm
# yarn add jweixin-esm
pnpm add @wtto00/jweixin-esm
# npm i @wtto00/jweixin-esm
# yarn add @wtto00/jweixin-esm
```

## Usage

```typescript
import weixin from 'jweixin-esm'
import weixin from '@wtto00/jweixin-esm'
// or:
// import 'jweixin-esm'
// import '@wtto00/jweixin-esm'

// weixin的类型是WX,已全局声明

Expand Down
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ declare namespace WX {
/* --------------------------------- 快速输入 End --------------------------------- */
}

declare module 'jweixin-esm' {
declare module '@wtto00/jweixin-esm' {
export default WX
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "jweixin-esm",
"name": "@wtto00/jweixin-esm",
"version": "1.6.0",
"description": "微信JSSDK ESM模块 附带TS类型以及详细注释",
"type": "module",
Expand Down

0 comments on commit 5e6b02f

Please sign in to comment.