Skip to content

Does not find any files when specifying a glob pattern #229

@samuelneff

Description

@samuelneff

tcm is not finding any files whene I specify a glob pattern on the command line. It works when I specify only a folder.

I'm sure I'm doing something wrong but I'm not sure what.

I've checked the README and examples.

Expected Behavior

tcm 'src/client/**/*.scss' 

Output:

Wrote /.../src/client/components/Header.scss.d.ts

Current Behavior

No output and a .d.ts file is not generated.

Steps to Reproduce

This is my repo structure (new project, mostly empty)

src/client
src/client/App.tsx
src/client/main.tsx
src/client/App.css
src/client/include.scss
src/client/index.css
src/client/index.css.d.ts
src/client/components
src/client/components/Header.module.scss
src/client/components/Header.tsx

Running the command with any of these patterns fails as described.

tcm "src/client/*.css"
tcm 'src/client/*.css'
tcm 'src/client/**/*.css'
tcm 'src/client/**/*.scss'
tcm src/client/*.css

Running the command without the pattern does produce output on *.css files but not *.scss files.

# works
tcm src

Context

This is a new project and I've used tcm successfully with *.css files. I haven't used it *.scss files.

Your Environment

  • Version used: 0.9.1
  • Operating System and versions: Mac OS 14.4.1 (23E224)
  • Link to your project: private

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions