Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
starknt committed Jan 7, 2024
1 parent f0439d2 commit 3191ad6
Show file tree
Hide file tree
Showing 18 changed files with 1,275 additions and 769 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"prettier": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
Expand All @@ -9,5 +8,6 @@
],
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "/.github/workflows/deploy.yml"
}
},
"eslint.experimental.useFlatConfig": true
}
2 changes: 1 addition & 1 deletion browser.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/browser'
export * from './dist/browser'
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ features:
title: Flexible type
details: Out of the box type hit, and flexible type extendsion
---

14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import antfu from '@antfu/eslint-config'

export default antfu({
rules: {
'no-console': 'off',
'no-new': 'off',
},
ignores: [
'node_modules',
'dist',
'**/.vitepress/cache/',
'**/*brotli.ts',
],
})
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tiny-bilibili-ws",
"type": "module",
"version": "0.1.10",
"packageManager": "pnpm@8.9.2",
"packageManager": "pnpm@8.14.0",
"description": "Bilibili Live WebSocket/TCP API",
"author": "starknt",
"license": "MIT",
Expand All @@ -22,21 +22,21 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./browser": {
"types": "./dist/browser.d.ts",
"require": "./dist/browser.cjs",
"import": "./dist/browser.mjs"
"import": "./dist/browser.mjs",
"require": "./dist/browser.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"browser.d.ts"
"browser.d.ts",
"dist"
],
"scripts": {
"build": "unbuild",
Expand All @@ -56,23 +56,23 @@
},
"dependencies": {
"pako": "^2.1.0",
"ws": "^8.14.2"
"ws": "^8.16.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.43.1",
"@types/node": "^20.8.7",
"@types/pako": "^2.0.2",
"@types/ws": "^8.5.8",
"@antfu/eslint-config": "^2.6.1",
"@types/node": "^20.10.6",
"@types/pako": "^2.0.3",
"@types/ws": "^8.5.10",
"brotli-size": "^4.0.0",
"bumpp": "^9.2.0",
"bumpp": "^9.2.1",
"dotenv": "^16.3.1",
"eslint": "^8.52.0",
"eslint": "^8.56.0",
"eventemitter3": "5.0.1",
"pnpm": "^8.9.2",
"terser": "^5.22.0",
"tsx": "^3.14.0",
"typescript": "^5.2.2",
"pnpm": "^8.14.0",
"terser": "^5.26.0",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vitest": "^0.34.6"
"vitest": "^1.1.3"
}
}
1 change: 1 addition & 0 deletions playground/src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare module '*.vue' {
import type { DefineComponent } from 'vue'

const component: DefineComponent<{}, {}, any>
export default component
}
14 changes: 7 additions & 7 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"target": "ESNext",
"jsx": "preserve",
"lib": ["ESNext", "DOM"],
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"skipLibCheck": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
"references": [{ "path": "./tsconfig.node.json" }],
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
8 changes: 4 additions & 4 deletions playground/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"target": "ESNext",
"strict": true,
"forceConsistentCasingInFileNames": true,
"composite": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
"strict": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true
},
"include": ["vite.config.ts"]
}
Loading

0 comments on commit 3191ad6

Please sign in to comment.