Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/engine/__tests__/engine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ describe('Engine Class', () => {

expect(loggerSpy).toHaveBeenCalledWith(
`The [deploy] command was not found.`,
`Please check the component ${mockItem.component} has the deploy command. Serverless Devs documents:https://manual.serverless-devs.com/`
`Please check the component ${mockItem.component} has the deploy command. Serverless Devs documents:https://docs.serverless-devs.com/`
);
});
});
Expand Down
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.6-beta.2",
"version": "0.1.6-beta.3",
"description": "a engine lib for serverless-devs",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ You can still use them now, but we suggest to modify them.`)
exitCode: EXIT_CODE.DEVS,
prefix: `${this.record.label} ${hook.hookType}-action failed to [${this.record.command}]:`,
tips: `Please check the component ${componentName} has the ${command} command. Serverless Devs documents:${chalk.underline(
'https://manual.serverless-devs.com/',
'https://docs.serverless-devs.com/',
)}`,
trackerType: ETrackerType.parseException,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/engine/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ class Engine {
throw new DevsError(`The [${command}] command was not found.`, {
exitCode: EXIT_CODE.DEVS,
tips: `Please check the component ${item.component} has the ${command} command. Serverless Devs documents:${chalk.underline(
'https://manual.serverless-devs.com/',
'https://docs.serverless-devs.com/',
)}`,
prefix: `[${item.projectName}] failed to [${command}]:`,
trackerType: ETrackerType.parseException,
Expand Down Expand Up @@ -774,7 +774,7 @@ class Engine {
// 方法不存在,进行警告,但是并不会报错,最终的exit code为0;
this.logger.tips(
`The [${command}] command was not found.`,
`Please check the component ${item.component} has the ${command} command. Serverless Devs documents:https://manual.serverless-devs.com/`,
`Please check the component ${item.component} has the ${command} command. Serverless Devs documents:https://docs.serverless-devs.com/`,
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/registry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless-devs/registry",
"version": "0.0.12-beta.4",
"version": "0.0.12-beta.5",
"description": "request for serverless-devs",
"main": "lib/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions packages/registry/src/actions/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ const validate = (codeUri: string) => {
checkEdition(publishYaml);
const yamlObject = yaml.load(publishYaml) as Record<string, any>;
const errorMsg = `Publish.yaml illegal.
Application dev: https://manual.serverless-devs.com/dev-guide/application/
Component dev: https://manual.serverless-devs.com/dev-guide/component/
Plugin dev: https://manual.serverless-devs.com/dev-guide/plugin/
Application dev: https://docs.serverless-devs.com/dev-guide/application/
Component dev: https://docs.serverless-devs.com/dev-guide/component/
Plugin dev: https://docs.serverless-devs.com/dev-guide/plugin/
`
const ajv = new Ajv({ allErrors: true });
const validate = ajv.compile(publishSchema);
Expand Down
7 changes: 4 additions & 3 deletions packages/registry/src/request-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ const baseUrl =
? 'https://server-serverlgistry-v-awljqvnszb.cn-hangzhou.fcapp.run/v3'
: getGlobalConfig('registry', 'https://api.devsapp.cn/v3');
// *** 登陆 *** //
const baseUrlLogin = getGlobalConfig('registry', 'https://api.devsapp.cn/v3');
// 登陆
export const REGISTRY_INFORMATION_GITHUB = `${baseUrl}/user/check`;
export const REGISTRY_INFORMATION_GITHUB = `${baseUrlLogin}/user/check`;

// github回调
export const GITHUB_LOGIN_URL = `https://github.com/login/oauth/authorize?client_id=ef1df7f4f6b9e5a343af&redirect_uri=${baseUrl}/user/login`;
export const GITHUB_LOGIN_URL = `https://github.com/login/oauth/authorize?client_id=ef1df7f4f6b9e5a343af&redirect_uri=${baseUrlLogin}/user/login`;
// 刷新 token
export const RESET_URL = `${baseUrl}/user/token`;
export const RESET_URL = `${baseUrlLogin}/user/token`;

// *** 发布 *** //
export const PUBLISH_URL = `${baseUrl}/packages/releases`;
Expand Down
Loading