From efff78f2c388e321b99023307a79b4ca17c0b71f Mon Sep 17 00:00:00 2001 From: kirinnee Date: Tue, 14 Nov 2023 18:50:50 +0800 Subject: [PATCH] fix: use **/* glob to match extensionless files --- cyan/src/plugin.ts | 10 +++++----- cyan/src/processor.ts | 10 +++++----- cyan/src/template.ts | 10 +++++----- examples/index.js | 2 +- examples/index.ts | 2 +- examples/main.py | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/cyan/src/plugin.ts b/cyan/src/plugin.ts index f7b674e..69b27df 100644 --- a/cyan/src/plugin.ts +++ b/cyan/src/plugin.ts @@ -28,7 +28,7 @@ export async function PromptPlugin( { root: "plugin/common", exclude: [], - glob: "**/*.*", + glob: "**/*", type: GlobType.Copy, }, { @@ -56,7 +56,7 @@ function CSharpValues(): CyanGlob[] { return [ { root: "plugin/dotnet", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -67,7 +67,7 @@ function PythonValues(): CyanGlob[] { return [ { root: "plugin/python", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -78,7 +78,7 @@ function JavascriptValues(): CyanGlob[] { return [ { root: "plugin/javascript", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -89,7 +89,7 @@ function TypescriptValues(): CyanGlob[] { return [ { root: "plugin/typescript", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, diff --git a/cyan/src/processor.ts b/cyan/src/processor.ts index 5a73ff1..7ce724c 100644 --- a/cyan/src/processor.ts +++ b/cyan/src/processor.ts @@ -28,7 +28,7 @@ export async function PromptProcessor( { root: "processor/common", exclude: [], - glob: "**/*.*", + glob: "**/*", type: GlobType.Copy, }, { @@ -56,7 +56,7 @@ function CSharpValues(): CyanGlob[] { return [ { root: "processor/dotnet", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -67,7 +67,7 @@ function PythonValues(): CyanGlob[] { return [ { root: "processor/python", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -78,7 +78,7 @@ function JavascriptValues(): CyanGlob[] { return [ { root: "processor/javascript", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -89,7 +89,7 @@ function TypescriptValues(): CyanGlob[] { return [ { root: "processor/typescript", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, diff --git a/cyan/src/template.ts b/cyan/src/template.ts index 766a94e..ae45040 100644 --- a/cyan/src/template.ts +++ b/cyan/src/template.ts @@ -66,7 +66,7 @@ export async function PromptTemplate( { root: "template/common", exclude: [], - glob: "**/*.*", + glob: "**/*", type: GlobType.Copy, }, { @@ -127,7 +127,7 @@ function CSharpValues( [ { root: "template/dotnet", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -164,7 +164,7 @@ function PythonValues( [ { root: "template/python", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -200,7 +200,7 @@ function JavascriptValues( [ { root: "template/javascript", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, @@ -236,7 +236,7 @@ function TypescriptValues( [ { root: "template/typescript", - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: [], }, diff --git a/examples/index.js b/examples/index.js index b6cffee..0cf420c 100644 --- a/examples/index.js +++ b/examples/index.js @@ -30,7 +30,7 @@ StartTemplateWithLambda(async (i, d) => { name: "cyan/default", files: [ { - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: ["scripts", ".github", "cyan.yaml"], }, diff --git a/examples/index.ts b/examples/index.ts index 91cde1f..226b5b1 100644 --- a/examples/index.ts +++ b/examples/index.ts @@ -31,7 +31,7 @@ StartTemplateWithLambda(async (i, d) => { name: "cyan/default", files: [ { - glob: "**/*.*", + glob: "**/*", type: GlobType.Template, exclude: ["scripts"], } satisfies CyanGlob, diff --git a/examples/main.py b/examples/main.py index b3f2dfb..49a7082 100644 --- a/examples/main.py +++ b/examples/main.py @@ -31,7 +31,7 @@ async def template(i: IInquirer, d: IDeterminism) -> Cyan: files=[ CyanGlob( root=".", - glob="**/*.*", + glob="**/*", exclude=["scripts"], type=GlobType.Template ),