Skip to content

Commit

Permalink
fix: type error when doFlow
Browse files Browse the repository at this point in the history
Signed-off-by: zxypro1 <[email protected]>
  • Loading branch information
zxypro1 committed Feb 1, 2024
1 parent d725d13 commit 0a490ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ npm run test #测试
### 本地beta发布测试

- 修改package.json中的版本号,格式为`x.x.x-beta.x(如0.0.1-beta.1)`
- 使用`npm publish --tag=beta`发布到npm。
- 使用`pnpm publish --tag=beta`发布到npm。

### 发布到npm

Expand Down
4 changes: 2 additions & 2 deletions packages/parse-spec/src/order.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { includes, map, split, set, sortBy, isEmpty, get, cloneDeep, unset } from 'lodash';
import { includes, map, split, set, sortBy, isEmpty, get, cloneDeep, unset, isObject } from 'lodash';
import { REGXG } from './contants';
import { IStep } from './types';
const debug = require('@serverless-cd/debug')('serverless-devs:parse-spec');
Expand Down Expand Up @@ -67,7 +67,7 @@ class Order {
}
}
}
result[i] = typeof val === 'object' ? deepCopy(val) : val;
result[i] = isObject(val) ? deepCopy(val) : val;
}
} else {
result = obj;
Expand Down

0 comments on commit 0a490ac

Please sign in to comment.