Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
fix: include file overwrite generate file
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar committed Dec 11, 2019
1 parent bd23562 commit affc3ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/serverless-midway-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@


### 打包函数的流程

'midway-cleanup',
'midway-compileFunctions',
'midway-spec',
'midway-copyFile',
'midway-wrapper',
'midway-copyFile',
'midway-layerInstall',
'midway-depInstall',
'midway-package',
Expand All @@ -51,12 +50,13 @@
支持 `--skipClean=true` 参数跳过清理目录
1. midway-spec
生成对应平台的spec描述文件
1. midway-wrapper
生成对应平台的handler包裹文件
1. midway-copyFile
拷贝文件到待打包目录
主要是在 `serverless.yml``package.include` 中指定的文件及文件夹列表
默认会将 `package.json` 文件进行拷贝
1. midway-wrapper
生成对应平台的handler包裹文件

1. midway-layerInstall
安装layer
1. midway-depInstall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export class Package extends CommandBase {
const lifecycleEvents = [
'midway-cleanup',
'midway-spec',
'midway-copyFile',
'midway-wrapper',
'midway-copyFile',
'midway-layerInstall',
'midway-depInstall',
'midway-compileFunctions',
Expand Down

0 comments on commit affc3ed

Please sign in to comment.