Skip to content

Commit cda43f6

Browse files
committed
Merge remote-tracking branch 'upstream/main' into refactCode
2 parents eed1b4b + f9204e1 commit cda43f6

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,24 @@ pnpm create hexo [path]
2727
# pnpm dlx create-hexo [path]
2828
```
2929

30-
> [pnpm.io](https://pnpm.io/)
30+
> - [pnpm create](https://pnpm.io/cli/create)
3131
3232
### npm
3333

3434
```bash
3535
npm init hexo [path]
3636

37+
# npm create hexo [path]
3738
# npm exec create-hexo [path]
3839
# npx create-hexo [path]
3940
```
4041

41-
> [npm init](https://docs.npmjs.com/cli/commands/npm-init)
42+
> - [npm init](https://docs.npmjs.com/cli/commands/npm-init)
4243
43-
### Yarn
44+
### Yarn 1 (Classic)
4445

4546
```bash
4647
yarn create hexo [path]
4748
```
49+
50+
> - [yarn create](https://classic.yarnpkg.com/docs/cli/create)

package.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
{
22
"name": "create-hexo",
33
"version": "0.4.0",
4-
"description": "Hexo site initializer",
4+
"description": "Hexo site initializer. (`npm create hexo`) ",
55
"keywords": [
66
"hexo",
7-
"initializer"
7+
"initializer",
8+
"npm",
9+
"pnpm",
10+
"yarn",
11+
"script",
12+
"cli",
13+
"create",
14+
"init",
15+
"typescript"
816
],
917
"homepage": "https://github.com/hexojs/create-hexo",
1018
"bugs": {
@@ -65,6 +73,6 @@
6573
"typescript": "^5.7.3"
6674
},
6775
"engines": {
68-
"node": ">=20"
76+
"node-lts": ">=20"
6977
}
7078
}

scripts/getHash.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
echo -n $(cat .git/modules/hexo-starter/refs/heads/master) > hash
3+
echo -n "$(cat .git/modules/hexo-starter/refs/heads/master)" > ./hash
4+
echo "starter version: $(cat ./hash)"

0 commit comments

Comments
 (0)