Skip to content

Commit

Permalink
Merge pull request #8 from Cansiny0320/chore-tsup
Browse files Browse the repository at this point in the history
feat: support node14
  • Loading branch information
Cansiny0320 authored Aug 27, 2022
2 parents 78cf13e + 4b75318 commit 1fdb8c7
Show file tree
Hide file tree
Showing 7 changed files with 479 additions and 861 deletions.
23 changes: 23 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false,
"dynamicImport": false,
"decorators": false
},
"target": "es2015"
},
"env": {
"targets": {
"node": "14"
},
"mode": "usage",
"coreJs": "3.25.0",
"shippedProposals": true
},
"module": {
"type": "es6"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

## 💡 使用方法

> 需要 Node 版本 >= 15.0.0
> 需要 Node 版本 >= 14.0.0
```bash
$ npm i book-spider -g
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node
'use strict'
import '../dist/cli.mjs'
import '../dist/cli.js'
11 changes: 0 additions & 11 deletions build.config.ts

This file was deleted.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"build": "tsup",
"dev": "tsup --watch",
"check-source": "esno ./scripts/checkSource.ts",
"prepublishOnly": "nr build",
"release": "bumpp && npm publish",
Expand All @@ -40,21 +40,23 @@
"axios": "^0.27.2",
"cac": "^6.7.12",
"cheerio": "^1.0.0-rc.10",
"core-js": "^3.25.0",
"iconv-lite": "^0.6.3",
"mri": "^1.2.0",
"signale": "^1.4.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.26.1",
"@swc/core": "^1.2.244",
"@types/cheerio": "^0.22.31",
"@types/node": "^18.7.13",
"@types/optimist": "^0.0.30",
"@types/signale": "^1.4.4",
"bumpp": "^8.2.1",
"eslint": "^8.22.0",
"esno": "^0.16.3",
"typescript": "^4.8.2",
"unbuild": "^0.8.9"
"tsup": "^6.2.3",
"typescript": "^4.8.2"
},
"packageManager": "pnpm@7.2.1"
}
Loading

0 comments on commit 1fdb8c7

Please sign in to comment.