question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--exclude with quoted glob does not seem to work

See original GitHub issue

I have a npm script like:

"copy:resources": "copyup --exclude \"**/*.ts\" \"./src/**/*\" build",

It copies all files, including the *.ts files. I don’t want the *.ts files to be copied. I’m running on OSX and if understand correctly I should quote the glob.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
dwjftcommented, Mar 6, 2019
copyup -e \"./src/**/*.ts\" \"./src/**/*\" \"build\"

your glob needs to be more explicit, I ran in to this myself.

0reactions
totszwaicommented, Jun 30, 2022

Facing the same issue?

copyfiles(
  ['./src/assets/**', './dist'],
  {
    all: true,
    up: 1,
    exclude: ['**/stats.txt']
  },
  (err) => err && console.error(err)
);

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exclusion globbing (`-g '!expr'`) does not work properly with ...
When trying to exclude a given folder from my search paths with the globbing option -g , it fails if the expression string...
Read more >
Begin a glob with an exclude pattern - Unix StackExchange
If used with the command compgen the call would be, e.g.: compgen -G "!(foo*)". You need quotes to pass the pattern to the...
Read more >
Exclude subfolders with glob - python - Stack Overflow
I want to start by pointing out that this kind of (recurring) symlinking is a sign of bad design. Any fix would be...
Read more >
SC2086 – Double quote to prevent globbing and word splitting.
Quoting variables prevents word splitting and glob expansion, and prevents the script from breaking when input contains spaces, line feeds, glob characters and ......
Read more >
Documentation: 15: pg_dump - PostgreSQL
When -e is specified, pg_dump makes no attempt to dump any other database objects ... If -N appears without -n , then schemas...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found