diff --git a/.gitignore b/.gitignore index a611977..38e9d10 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,8 @@ tmp/ .idea/ coverage dist -package-lock.json \ No newline at end of file +**/package-lock.json +**/yarn.lock +*pnpm-lock.yml +*pnpm-lock.yaml +**/.yarn \ No newline at end of file diff --git a/package.json b/package.json index 7cc0d55..e6d5109 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "hexo-front-matter", "version": "4.2.1", "description": "Front-matter parser.", - "main": "dist/front_matter", + "main": "dist/front_matter.js", "scripts": { "prepublish ": "npm run clean && npm run build", "build": "tsc -b", diff --git a/tsconfig.json b/tsconfig.json index c2b1773..00f0103 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,9 +6,8 @@ "outDir": "dist", "declaration": true, "esModuleInterop": true, - "types": [ - "node" - ] + "lib": ["ES2020", "ES6"], + "moduleResolution": "Node" }, "include": [ "lib/front_matter.ts"