Skip to content

Strange behavior on latest recursive mode #91

@JounQin

Description

@JounQin

I installed latest cpy with yarn add cpy@sindresorhus/cpy.

// copy.js

// @ts-check

import cpy from 'cpy'

const args = process.argv.slice(2)

cpy(args, args.pop())
node copy 'node_modules/shiki/{dist/*.wasm,languages,themes}/**' public/shiki

image

node copy 'node_modules/shiki/{dist/*.wasm,languages,themes}/**' public/shiki/_ # note the `/_` here

image

I also tried the following one and it failed.

node copy 'node_modules/shiki/{dist/*.wasm,languages/**,themes/**}' public/shiki

But the following one also worked

node copy 'node_modules/shiki/{dist/*.wasm,languages/**,themes/**}' public/shiki/_

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