Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Mar 15, 2024
1 parent 28cebd1 commit 5bcb42e
Show file tree
Hide file tree
Showing 13 changed files with 1,390 additions and 1,452 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ node_modules
.idea/
*.log
.vercel

.vercel
1 change: 0 additions & 1 deletion .vercelignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.github
.husky
.vscode
dist
node_modules
scripts
CHANGELOG.md
Expand Down
15 changes: 0 additions & 15 deletions api/index.ts

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ export default antfu({
],
rules: {
'no-console': 'off',
'ts/no-require-imports': 'off',
'ts/no-var-requires': 'off',
'node/prefer-global/process': 'off',
},
})
22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,36 @@
"type": "git",
"url": "https://github.com/Chilfish/hono-ncm.git"
},
"exports": {
".": {
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"files": [
"dist"
],
"scripts": {
"start": "vercel dev",
"dev": "tsx watch --no-cache src/node.ts",
"build": "unbuild",
"start": "tsx src/node.ts",
"prepare": "husky",
"lint": "eslint . --fix",
"deploy": "vercel"
"lint": "eslint . --fix"
},
"dependencies": {
"hono": "^4.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.8.2",
"@hono/node-server": "^1.8.2",
"@types/node": "^20.11.27",
"eslint": "npm:eslint-ts-patch@8.57.0-0",
"eslint-ts-patch": "8.57.0-0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"vercel": "^33.6.0"
"module-alias": "^2.2.3",
"tsx": "^4.7.1",
"unbuild": "^2.0.0"
},
"lint-staged": {
"*": "eslint --fix"
Expand Down
Loading

0 comments on commit 5bcb42e

Please sign in to comment.