Skip to content

Commit 124fa59

Browse files
committedSep 9, 2021
chore(deps): update dependency tsbb to v3.1.5
1 parent 878f43c commit 124fa59

File tree

5 files changed

+40
-103
lines changed

5 files changed

+40
-103
lines changed
 

‎.babelrc

-37
This file was deleted.

‎.github/workflows/ci.yml

+21-25
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,10 @@ jobs:
77
build-deploy:
88
runs-on: ubuntu-18.04
99
steps:
10-
- uses: actions/checkout@master
11-
12-
- name: Setup Node
13-
uses: actions/setup-node@v1
14-
with:
15-
node-version: '10.x'
16-
17-
- name: Look Changelog
18-
uses: jaywcjlove/changelog-generator@v1.3.9
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
1912
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
head-ref: ${{steps.create_tag.outputs.version}}
22-
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
23-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
13+
node-version: 14
2414

2515
- run: npm install
2616
- run: npm run build
@@ -33,34 +23,40 @@ jobs:
3323
PUBLISH_BRANCH: gh-pages
3424
PUBLISH_DIR: ./build
3525

36-
- name: Create Tag
26+
- name: Is a tag created auto?
3727
id: create_tag
38-
uses: jaywcjlove/create-tag-action@v1.1.7
28+
uses: jaywcjlove/create-tag-action@v1.2.1
3929
with:
4030
token: ${{ secrets.GITHUB_TOKEN }}
4131
package-path: ./package.json
4232

4333
- name: Generate Changelog
4434
id: changelog
45-
uses: jaywcjlove/changelog-generator@v1.3.9
35+
uses: jaywcjlove/changelog-generator@v1.4.3
4636
with:
4737
token: ${{ secrets.GITHUB_TOKEN }}
4838
head-ref: ${{steps.create_tag.outputs.version}}
49-
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
39+
filter-author: (jaywcjlove|小弟调调™|dependabot|dependabot\[bot\]|Renovate Bot)
5040
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
5141

5242

5343
- name: Create Release
54-
id: create_release
55-
uses: actions/create-release@latest
44+
uses: ncipollo/release-action@v1
5645
if: steps.create_tag.outputs.successful
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5946
with:
60-
tag_name: ${{ steps.create_tag.outputs.version }}
61-
release_name: ${{ steps.create_tag.outputs.version }}
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
name: ${{ steps.create_tag.outputs.version }}
49+
tag: ${{ steps.create_tag.outputs.version }}
6250
body: |
51+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-shields@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
52+
53+
```bash
54+
npm i @uiw/react-shields@${{ steps.create_tag.outputs.versionNumber }}
55+
```
56+
6357
${{ steps.changelog.outputs.compareurl }}
58+
6459
${{ steps.changelog.outputs.changelog }}
65-
draft: false
66-
prerelease: false
60+
61+
- run: npm install @jsdevtools/npm-publish -g
62+
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

‎.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
node_modules
2-
lib
1+
esm
2+
cjs
33
build
4+
node_modules
45
npm-debug.log*
56
package-lock.json
7+
68
.DS_Store
79
.cache
810
.rdoc-dist

‎package.json

+8-15
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,15 @@
22
"name": "@uiw/react-shields",
33
"version": "1.1.1",
44
"description": "Shields.io for react component, Quality metadata badges for open source projects.",
5-
"main": "lib/cjs/index.js",
6-
"module": "lib/esm/index.js",
7-
"typings": "lib/cjs/index.d.ts",
5+
"main": "cjs/index.js",
6+
"module": "esm/index.js",
87
"scripts": {
9-
"prepare": "npm run build:lib",
8+
"prepare": "npm run build",
109
"released": "npm run build && npm run doc",
1110
"doc": "kkt build --app-src ./website",
1211
"start": "kkt start --app-src ./website",
13-
"build": "npm run build:lib && npm run doc",
14-
"build:lib": "npm run ts:build && npm run types:esm && npm run types:cjs",
15-
"watch": "npm run ts:watch & npm run types:watch",
16-
"types:build": "tsbb types --sourceRoot src --target ESNEXT",
17-
"types:watch": "npm run types:esm -- --watch & npm run types:cjs -- --watch",
18-
"types:esm": "npm run types:build -- --outDir ../lib/esm",
19-
"types:cjs": "npm run types:build -- --outDir ../lib/cjs",
20-
"ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react",
21-
"ts:build": "tsbb build --target react"
12+
"watch": "tsbb watch",
13+
"build": "tsbb build"
2214
},
2315
"homepage": "https://uiwjs.github.io/react-shields",
2416
"repository": {
@@ -29,7 +21,8 @@
2921
"license": "MIT",
3022
"files": [
3123
"src",
32-
"lib"
24+
"esm",
25+
"cjs"
3326
],
3427
"peerDependencies": {
3528
"@babel/runtime": ">=7.0.0",
@@ -47,7 +40,7 @@
4740
"kkt": "6.8.2",
4841
"react": "17.0.2",
4942
"react-dom": "17.0.2",
50-
"tsbb": "2.1.2"
43+
"tsbb": "3.1.5"
5144
},
5245
"eslintConfig": {
5346
"extends": [

‎src/tsconfig.json

+7-24
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
{
2+
"extends": "../tsconfig",
3+
"include": ["../src"],
24
"compilerOptions": {
3-
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"esModuleInterop": true,
12-
"allowSyntheticDefaultImports": true,
13-
"strict": true,
14-
"forceConsistentCasingInFileNames": true,
15-
"module": "esnext",
16-
"moduleResolution": "node",
17-
"resolveJsonModule": true,
18-
"isolatedModules": true,
19-
"declaration": true,
205
"baseUrl": ".",
21-
"jsx": "react"
22-
},
23-
"include": ["../src"],
24-
"typeRoots": [
25-
"../node_modules/@types",
26-
]
27-
}
6+
"outDir": "../cjs",
7+
"emitDeclarationOnly": true,
8+
"noEmit": false
9+
}
10+
}

0 commit comments

Comments
 (0)
Please sign in to comment.