Skip to content

Commit 3293bc2

Browse files
committed
chore(deps): update dependency tsbb to v3.1.5
1 parent 25801da commit 3293bc2

File tree

4 files changed

+33
-100
lines changed

4 files changed

+33
-100
lines changed

.babelrc

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,53 @@ 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
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
1412
with:
15-
node-version: 12
16-
17-
- name: Look Changelog
18-
uses: jaywcjlove/[email protected]
19-
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
26-
- run: npm run build:lib
16+
- run: npm run build
2717
- run: npm run doc
2818

2919
- name: Deploy
3020
uses: peaceiris/actions-gh-pages@v3
3121
with:
32-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
3323
publish_dir: ./build
3424

35-
- name: Create Tag
25+
- name: Is a tag created auto?
3626
id: create_tag
37-
uses: jaywcjlove/create-tag-action@v1.1.7
27+
uses: jaywcjlove/create-tag-action@v1.2.1
3828
with:
3929
token: ${{ secrets.GITHUB_TOKEN }}
4030
package-path: ./package.json
4131

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

5141
- name: Create Release
52-
id: create_release
53-
uses: actions/create-release@latest
42+
uses: ncipollo/release-action@v1
5443
if: steps.create_tag.outputs.successful
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5744
with:
58-
tag_name: ${{ steps.create_tag.outputs.version }}
59-
release_name: ${{ steps.create_tag.outputs.version }}
45+
token: ${{ secrets.GITHUB_TOKEN }}
46+
name: ${{ steps.create_tag.outputs.version }}
47+
tag: ${{ steps.create_tag.outputs.version }}
6048
body: |
49+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codesandbox@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
50+
51+
```bash
52+
npm i @uiw/react-codesandbox@${{ steps.create_tag.outputs.versionNumber }}
53+
```
54+
6155
${{ steps.changelog.outputs.compareurl }}
56+
6257
${{ steps.changelog.outputs.changelog }}
6358
draft: false
6459
prerelease: false

package.json

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,15 @@
22
"name": "@uiw/react-codesandbox",
33
"version": "1.1.0",
44
"description": "A React component is provided that allows you to programmatically generate codesandbox projects from code samples on the fly.",
5-
"main": "lib/cjs/index.js",
6-
"module": "lib/esm/index.js",
7-
"typings": "lib/esm/index.d.ts",
5+
"main": "cjs/index.js",
6+
"module": "esm/index.js",
87
"homepage": "https://uiwjs.github.io/react-codesandbox/",
98
"scripts": {
10-
"prepare": "npm run build:lib",
9+
"prepare": "npm run build",
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 && npm run css:build",
15-
"watch": "npm run ts:watch & npm run types:watch & npm run css: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-
"css:build": "compile-less -d src -o lib/esm",
21-
"css:watch": "compile-less -d src -o lib/esm --watch",
22-
"ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react",
23-
"ts:build": "tsbb build --target react"
12+
"watch": "tsbb watch",
13+
"build": "tsbb build"
2414
},
2515
"repository": {
2616
"type": "git",
@@ -49,11 +39,10 @@
4939
"@types/react-dom": "17.0.3",
5040
"@uiw/react-github-corners": "1.2.0",
5141
"@uiw/react-markdown-preview": "2.1.1",
52-
"compile-less-cli": "1.7.0",
5342
"react": "17.0.2",
5443
"react-dom": "17.0.2",
5544
"kkt": "6.8.2",
56-
"tsbb": "2.1.2"
45+
"tsbb": "3.1.5"
5746
},
5847
"eslintConfig": {
5948
"extends": [

src/tsconfig.json

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +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-jsx"
22-
},
23-
"include": ["../src"]
24-
}
6+
"outDir": "../cjs",
7+
"emitDeclarationOnly": true,
8+
"noEmit": false
9+
}
10+
}

0 commit comments

Comments
 (0)