Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
Signed-off-by: zxypro1 <[email protected]>
  • Loading branch information
zxypro1 committed Jul 30, 2024
1 parent ec24f5d commit 5986678
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless-devs/engine",
"version": "0.1.4-beta.13",
"version": "0.1.4-beta.14",
"description": "a engine lib for serverless-devs",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/parse-spec/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless-devs/parse-spec",
"version": "0.0.28-beta.10",
"version": "0.0.28-beta.11",
"description": "a parse yaml spec lib for serverless-devs",
"main": "lib/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions packages/parse-spec/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const extend2 = require('extend2');
interface IOptions {
argv?: string[];
logger?: any;
isPreview?: boolean;
}

export class ParseSpecForContent {
Expand All @@ -61,6 +62,7 @@ export class ParseSpecForContent {
this.options.logger = this.options.logger || console;
this.yaml.path = '';
this.yaml.content = jsYaml.load(yamlContent) || {};
this.options.isPreview = this.options.isPreview || false;
}
private async doYamlinit() {
await this.doExtend();
Expand Down Expand Up @@ -208,6 +210,7 @@ export class ParseSpecForContent {
projectName: this.record.projectName,
access: this.record.access,
environment: this.yaml.environment,
isPreview: this.options.isPreview,
};
}
async start(): Promise<ISpec> {
Expand Down

0 comments on commit 5986678

Please sign in to comment.