Skip to content

Commit e048f09

Browse files
fix(cli): keep files located in node_modules dir (botpress#14123)
1 parent c075edc commit e048f09

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@botpress/cli",
3-
"version": "4.15.1",
3+
"version": "4.15.2",
44
"description": "Botpress CLI",
55
"scripts": {
66
"build": "pnpm run bundle && pnpm run template:gen",

packages/cli/src/command-implementations/init-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class InitCommand extends GlobalCommand<InitCommandDefinition> {
195195
throw new errors.AbortedOperationError()
196196
}
197197

198-
await fs.promises.cp(srcDir, destination, { recursive: true, filter: (src) => !src.includes('node_modules') })
198+
await fs.promises.cp(srcDir, destination, { recursive: true })
199199

200200
const pkgJsonPath = pathlib.join(destination, 'package.json')
201201
const strContent = await fs.promises.readFile(pkgJsonPath, 'utf-8')

0 commit comments

Comments
 (0)