Skip to content
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"commander": "^12.1.0",
"commander": "^13.1.0",
"execa": "^9.5.2",
"picocolors": "^1.1.1"
},
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
force: boolean;
}

let packageJson: any;

Check warning on line 28 in src/main.ts

View workflow job for this annotation

GitHub Actions / ESLint

Unexpected any. Specify a different type
let starterVersion: string;
let initOptions: InitOptions = {
blogName: "hexo-site",
Expand All @@ -46,7 +46,7 @@
: await checkPath(initOptions.blogPath);

logger.group(`Copying \`${STARTER}\``);
const [voidd, pm] = await Promise.all([

Check warning on line 49 in src/main.ts

View workflow job for this annotation

GitHub Actions / ESLint

'voidd' is assigned a value but never used
cp(STARTER_DIR, initOptions.blogPath, {
force: initOptions.force,
recursive: true,
Expand Down Expand Up @@ -108,7 +108,7 @@
})
.addOption(
new Option(
"-pm, --packageManager <packageManager>",
"--pm, --packageManager <packageManager>",
"Specify the packageManager which use to Install packages",
)
.choices(["auto", "npm", "pnpm", "yarn", "bun"])
Expand Down Expand Up @@ -162,7 +162,7 @@
logger.info(`Your hexo blog will be initialized in "${path}"`);
}
})
.catch((err) => {

Check warning on line 165 in src/main.ts

View workflow job for this annotation

GitHub Actions / ESLint

'err' is defined but never used
logger.info(`Your hexo blog will be initialized in "${path}"`);
});
};
Expand Down Expand Up @@ -218,7 +218,7 @@
};

const post = () => {
const ls: any[] = [];

Check warning on line 221 in src/main.ts

View workflow job for this annotation

GitHub Actions / ESLint

Unexpected any. Specify a different type

RM_FILES.forEach((item) => {
ls.push(
Expand Down
Loading