Skip to content

Commit 0bdb74c

Browse files
committed
feat: add -f to publish
Signed-off-by: zxypro1 <1018995004@qq.com>
1 parent 1562c13 commit 0bdb74c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/command/cli/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const isFc3 = async (componentName: string) => {
5555
const instance = await loadComponent(componentName, { logger: componentLogger });
5656
if (instance.__path) return true;
5757
} catch (error) {
58+
logger.warn(`error: ${error}`);
5859
return false;
5960
}
6061
};

src/command/registry/command/publish.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default (program: Command) => {
1818
.summary(`Public Serverless Package to Serverless Registry`)
1919
.usage('[options]')
2020
.helpOption('-h, --help', 'Display help for command')
21+
.option('-f, --force', 'Force push your template')
2122
.action(async () => {
2223
const registry = new Registry({ logger });
2324
await registry.publish();

0 commit comments

Comments
 (0)