Skip to content

Commit ca317b2

Browse files
authored
chore: update deprecated prepublish and repository in package.json (#504)
1 parent 1322213 commit ca317b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"types": "./dist/hexo.d.ts",
1616
"scripts": {
17-
"prepublish ": "npm install && npm run clean && npm run build",
17+
"prepublishOnly": "npm install && npm run clean && npm run build",
1818
"build": "tsc -b",
1919
"clean": "tsc -b --clean",
2020
"eslint": "eslint .",
@@ -23,7 +23,10 @@
2323
"test-cov": "nyc --reporter=lcovonly npm test",
2424
"prepare": "git submodule init && git submodule update && git submodule foreach git pull origin master"
2525
},
26-
"repository": "hexojs/hexo-cli",
26+
"repository": {
27+
"type": "git",
28+
"url": "git+https://github.com/hexojs/hexo-cli.git"
29+
},
2730
"homepage": "https://hexo.io/",
2831
"keywords": [
2932
"website",

0 commit comments

Comments
 (0)