Skip to content

Commit

Permalink
fix: use **/* glob to match extensionless files
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Nov 14, 2023
1 parent c0cf0aa commit efff78f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions cyan/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function PromptPlugin(
{
root: "plugin/common",
exclude: [],
glob: "**/*.*",
glob: "**/*",
type: GlobType.Copy,
},
{
Expand Down Expand Up @@ -56,7 +56,7 @@ function CSharpValues(): CyanGlob[] {
return [
{
root: "plugin/dotnet",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand All @@ -67,7 +67,7 @@ function PythonValues(): CyanGlob[] {
return [
{
root: "plugin/python",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand All @@ -78,7 +78,7 @@ function JavascriptValues(): CyanGlob[] {
return [
{
root: "plugin/javascript",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand All @@ -89,7 +89,7 @@ function TypescriptValues(): CyanGlob[] {
return [
{
root: "plugin/typescript",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand Down
10 changes: 5 additions & 5 deletions cyan/src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function PromptProcessor(
{
root: "processor/common",
exclude: [],
glob: "**/*.*",
glob: "**/*",
type: GlobType.Copy,
},
{
Expand Down Expand Up @@ -56,7 +56,7 @@ function CSharpValues(): CyanGlob[] {
return [
{
root: "processor/dotnet",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand All @@ -67,7 +67,7 @@ function PythonValues(): CyanGlob[] {
return [
{
root: "processor/python",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand All @@ -78,7 +78,7 @@ function JavascriptValues(): CyanGlob[] {
return [
{
root: "processor/javascript",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand All @@ -89,7 +89,7 @@ function TypescriptValues(): CyanGlob[] {
return [
{
root: "processor/typescript",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand Down
10 changes: 5 additions & 5 deletions cyan/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function PromptTemplate(
{
root: "template/common",
exclude: [],
glob: "**/*.*",
glob: "**/*",
type: GlobType.Copy,
},
{
Expand Down Expand Up @@ -127,7 +127,7 @@ function CSharpValues(
[
{
root: "template/dotnet",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand Down Expand Up @@ -164,7 +164,7 @@ function PythonValues(
[
{
root: "template/python",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand Down Expand Up @@ -200,7 +200,7 @@ function JavascriptValues(
[
{
root: "template/javascript",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand Down Expand Up @@ -236,7 +236,7 @@ function TypescriptValues(
[
{
root: "template/typescript",
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: [],
},
Expand Down
2 changes: 1 addition & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ StartTemplateWithLambda(async (i, d) => {
name: "cyan/default",
files: [
{
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: ["scripts", ".github", "cyan.yaml"],
},
Expand Down
2 changes: 1 addition & 1 deletion examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ StartTemplateWithLambda(async (i, d) => {
name: "cyan/default",
files: [
{
glob: "**/*.*",
glob: "**/*",
type: GlobType.Template,
exclude: ["scripts"],
} satisfies CyanGlob,
Expand Down
2 changes: 1 addition & 1 deletion examples/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def template(i: IInquirer, d: IDeterminism) -> Cyan:
files=[
CyanGlob(
root=".",
glob="**/*.*",
glob="**/*",
exclude=["scripts"],
type=GlobType.Template
),
Expand Down

0 comments on commit efff78f

Please sign in to comment.