Skip to content

Commit d6f6cde

Browse files
committed
chore: update http-server command to use npx and bump version to 1.0.9
1 parent 2f3345c commit d6f6cde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ userInputReader.question(`${promptArrow}${promptLabel}请输入资源所在的
8686
console.log(`${promptArrow}${promptLabel}脚本将会自动从 ${promptValue}${baseUrl}${promptLabel} 下载任何缺失的资源。`);
8787
console.log('--------------------------------------------------------\n');
8888

89-
const httpServerProcess = exec(`http-server -p ${port}`);
89+
const httpServerProcess = exec(`npx http-server -p ${port}`);
9090

9191
httpServerProcess.stdout.on('data', async (data) => {
9292
const output = data.toString();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "resource-save-script",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "HTTP server with auto-download capability",
55
"homepage": "https://github.com/luckfunc/resource-save-script#readme",
66
"bugs": {

0 commit comments

Comments
 (0)