Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update the package.json for publishing with typescript #91

Merged
merged 2 commits into from
Mar 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
"name": "hexo-fs",
"version": "3.1.0",
"description": "File system module for Hexo.",
"main": "lib/fs.js",
"main": "./dist/fs.js",
Copy link
Member Author

@yoshinorin yoshinorin Mar 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After execute npm run build the source code will be generate in the dist folder.

"scripts": {
"prepublish ": "npm run clean && npm run build",
"build": "tsc -b",
"clean": "tsc -b --clean",
"eslint": "eslint .",
"test": "mocha test/index.js --require ts-node/register",
"test-cov": "nyc --reporter=lcovonly npm run test"
},
"directories": {
"lib": "./lib"
},
"files": [
"lib/fs.js"
"dist/**"
],
"types": "./dist/fs.d.ts",
"repository": "hexojs/hexo-fs",
"homepage": "https://hexo.io/",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"target": "es6",
"sourceMap": true,
"outDir": "dist",
"declaration": true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for include fs.d.ts.

himself65 marked this conversation as resolved.
Show resolved Hide resolved
"esModuleInterop": true,
"types": [
"node"
Expand Down