Skip to content

Commit

Permalink
migrate to ts (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored Jan 19, 2025
1 parent d2b634a commit 6ce3893
Show file tree
Hide file tree
Showing 16 changed files with 1,251 additions and 78 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.next
node_modules
dist
13 changes: 0 additions & 13 deletions lib/index.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions lib/index.js

This file was deleted.

19 changes: 13 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"version": "0.5.0",
"type": "module",
"exports": {
".": "./lib/index.js",
".": "./dist/index.js",
"./package.json": "./package.json"
},
"license": "MIT",
"files": [
"lib"
"dist"
],
"types": "./lib/index.d.ts",
"types": "./dist/index.d.ts",
"scripts": {
"build:site": "next build ./site",
"build": "bunchee",
"prepublishOnly": "pnpm run build",
"build:site": "pnpm run build && next build ./site",
"start": "next start ./site",
"dev": "next dev ./site"
},
Expand All @@ -25,12 +27,17 @@
"sucrase": "3.35.0"
},
"devDependencies": {
"@types/node": "^22.10.7",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"bunchee": "^6.3.2",
"codice": "^0.4.4",
"devjar": "link:",
"devjar": "link:./",
"next": "^15.1.5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sugar-high": "^0.8.2"
"sugar-high": "^0.8.2",
"typescript": "^5.7.3"
},
"packageManager": "pnpm@9.15.4"
}
Loading

0 comments on commit 6ce3893

Please sign in to comment.