Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samuelneff opened this issue May 8, 2024 · 0 comments
Open

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

samuelneff opened this issue May 8, 2024 · 0 comments

Comments

@samuelneff
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant