Skip to content

Commit

Permalink
chore: make ts happy (#301)
Browse files Browse the repository at this point in the history
* chore: re-order types property

* refactor: change prepare to postinstall

* refactor: fix TS2550 - add lib `es2020`, `es2019`

Property 'fromEntries' does not exist on type 'ObjectConstructor'

Property 'matchAll' does not exist on type 'string'
  • Loading branch information
dimaslanjaka committed May 6, 2023
1 parent 406770c commit 3b0bc15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "3.0.1",
"description": "Utilities for Hexo.",
"main": "dist/index",
"types": "./dist/index.d.ts",
"scripts": {
"prepublishOnly": "npm install && npm run clean && npm run build",
"build": "tsc -b",
Expand All @@ -13,14 +14,13 @@
"test": "mocha --require ts-node/register",
"test-cov": "nyc --reporter=lcovonly npm run test",
"build:highlight": "node scripts/build_highlight_alias.js",
"prepare": "npm run build:highlight"
"postinstall": "npm run build:highlight"
},
"files": [
"dist/**",
"scripts/",
"highlight_alias.json"
],
"types": "./dist/index.d.ts",
"repository": "hexojs/hexo-util",
"homepage": "https://hexo.io/",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -8,7 +8,8 @@
"esModuleInterop": true,
"types": [
"node"
]
],
"lib": ["ES2020", "ES2019"]
},
"include": [
"lib/index.ts"
Expand Down

0 comments on commit 3b0bc15

Please sign in to comment.