Skip to content

Commit 7a3417e

Browse files
committed
update 5 files
1 parent 2ad4408 commit 7a3417e

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ scriptup 2.0.0-beta
9595

9696
オプション:
9797

98+
- --lib: package/ 配下にローカルライブラリ雛形を含める
9899
- --no-workflow: GitHub Actions workflow を生成しない
99100

100101
実行内容:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Initialize the current directory as a ScriptAPI project.
9595

9696
Options:
9797

98+
- --lib: Include local library scaffold under package/
9899
- --no-workflow: Do not generate GitHub Actions workflow files
99100

100101
What it does:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nano191225/scriptup",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "ScriptAPI version updater for Minecraft Bedrock",
55
"license": "MIT",
66
"author": "Nano191225",

src/commands/init.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { detectPackageManager, PackageManager } from "../utils/package-manager.j
66
import { scaffoldProject } from "../utils/scaffold.js";
77

88
interface InitCommandOptions {
9+
lib?: boolean;
910
workflow?: boolean;
1011
}
1112

@@ -14,6 +15,7 @@ export async function init(targetDir = process.cwd(), options: InitCommandOption
1415

1516
await scaffoldProject({
1617
targetDir: resolvedTargetDir,
18+
lib: options.lib,
1719
workflow: options.workflow,
1820
});
1921

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ program
5252
program
5353
.command("init")
5454
.description("Initialize a ScriptAPI project in the current directory")
55+
.option("--lib", "Include local library scaffolding under package/")
5556
.option("--no-workflow", "Do not create the GitHub Actions workflow files")
56-
.action(async (options: { workflow?: boolean }) => {
57+
.action(async (options: { lib?: boolean; workflow?: boolean }) => {
5758
await init(undefined, options);
5859
});
5960

0 commit comments

Comments
 (0)