Skip to content

Commit

Permalink
feat: 升级TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Feb 26, 2024
1 parent 57a9644 commit 4e54b34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 25 deletions.
29 changes: 8 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
},
"devDependencies": {
"@bangbang93/eslint-config-recommended": "^0.0.3",
"@tsconfig/esm": "^1.0.3",
"@tsconfig/node18": "^18.2.2",
"@types/bluebird": "^3.5.27",
"@types/dotenv": "^6.1.1",
Expand All @@ -75,7 +74,7 @@
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"tsc-watch": "^6.0.4",
"typescript": "^5.0.4"
"typescript": "^5.3.3"
},
"npm": {
"publish": false
Expand Down
2 changes: 1 addition & 1 deletion src/storage/file.storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {readdir, stat, unlink} from 'fs/promises'
import {min} from 'lodash-es'
import {join, sep} from 'path'
import {logger} from '../logger.js'
import type {IFileInfo} from '../types'
import type {IFileInfo} from '../types.js'
import {hashToFilename} from '../util.js'
import type {IStorage} from './base.storage.js'

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["@tsconfig/node18", "@tsconfig/esm"],
"extends": ["@tsconfig/node18"],
"compilerOptions": {
"sourceMap": true,
"noUnusedLocals": true,
Expand Down

0 comments on commit 4e54b34

Please sign in to comment.