Skip to content

Commit d55bc58

Browse files
committed
feat: tsup build
1 parent 566c831 commit d55bc58

8 files changed

Lines changed: 322 additions & 44 deletions

File tree

.npmignore

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<a href="https://www.npmjs.com/package/url-minify"><img src="https://badgen.net/npm/v/url-minify" alt="NPM version" /></a>
33
<a href="https://www.npmjs.com/package/url-minify"><img src="https://github.com/rubiin/tweeny-weeny/workflows/CI/badge.svg" alt="CI" /></a>
44
<a href="https://www.npmjs.com/package/url-minify"><img src="https://img.shields.io/npm/dm/url-minify" alt="Downloads" /></a>
5-
65
</p>
76

87
# Minify Url
@@ -20,7 +19,7 @@ yarn add url-minify
2019

2120
# USAGE
2221

23-
Currently 6 providers are supported
22+
Currently 12 providers are supported
2423

2524
```ts
2625
import minify from 'url-minify';
@@ -62,7 +61,7 @@ Url shortner supports the following providers.
6261
| Provider | Status |
6362
| ----------- | ------ |
6463
| is.gd | ✔️ |
65-
| cdpt.in | x |
64+
| cdpt.in | ✔️ |
6665
| tinu.be | ✔️ |
6766
| v.gd | ✔️ |
6867
| rb.gy | ✔️ |
@@ -72,6 +71,7 @@ Url shortner supports the following providers.
7271
| haha.se | ✔️ |
7372
| cya.se | ✔️ |
7473
| hideuri.com | ✔️ |
74+
| tny.im | ✔️ |
7575

7676
## Contributing
7777

build.config.ts

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

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
"exports": {
1818
".": {
1919
"types": "./dist/index.d.ts",
20-
"require": "./dist/index.cjs",
21-
"import": "./dist/index.mjs"
20+
"import": "./dist/index.js"
2221
}
2322
},
24-
"main": "./dist/index.mjs",
25-
"module": "./dist/index.mjs",
23+
"main": "./dist/index.js",
24+
"module": "./dist/index.js",
2625
"types": "./dist/index.d.ts",
2726
"typesVersions": {
2827
"*": {
@@ -36,8 +35,7 @@
3635
"dist"
3736
],
3837
"scripts": {
39-
"build": "unbuild",
40-
"dev": "unbuild --stub",
38+
"build": "tsup",
4139
"lint": "eslint .",
4240
"prepublishOnly": "nr build",
4341
"release": "bumpp && clean-publish",
@@ -50,14 +48,15 @@
5048
"@antfu/ni": "^0.17.2",
5149
"@types/node": "^18.7.13",
5250
"bumpp": "^8.2.1",
51+
"clean-publish": "^4.0.1",
5352
"eslint": "^8.22.0",
5453
"esno": "^0.16.3",
5554
"rimraf": "^3.0.2",
55+
"tsup": "^6.2.3",
5656
"typescript": "^4.8.2",
5757
"unbuild": "^0.8.9",
5858
"vite": "^3.0.9",
59-
"vitest": "^0.22.1",
60-
"clean-publish": "^4.0.1"
59+
"vitest": "^0.22.1"
6160
},
6261
"dependencies": {
6362
"axios": "^0.27.2"

0 commit comments

Comments
 (0)