Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit a802393

Browse files
committed
函数打包默认配置排除.git
1 parent 1f9a1db commit a802393

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/commands/functions/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function deploy(ctx, commandOptions) {
6363
installDependency: true
6464
},
6565
handler: 'index.main',
66-
ignore: ['node_modules', 'node_modules/**/*']
66+
ignore: ['node_modules', 'node_modules/**/*', '.git']
6767
};
6868
}
6969
else {

src/commands/functions/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function deploy(ctx: FunctionContext, commandOptions) {
5757
installDependency: true
5858
},
5959
handler: 'index.main',
60-
ignore: ['node_modules', 'node_modules/**/*']
60+
ignore: ['node_modules', 'node_modules/**/*', '.git']
6161
}
6262
} else {
6363
throw new CloudBaseError(`函数 ${name} 配置不存在`)

0 commit comments

Comments
 (0)