@serverless-devs/s 2.0.83 → 2.0.84-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.prettierrc.json +0 -1
  2. package/bin/s-set-analysis +2 -0
  3. package/bin/s-set-locale +2 -0
  4. package/lib/cli/cli-manager.js +6 -7
  5. package/lib/cli/index.js +2 -2
  6. package/lib/config/add/index.d.ts +0 -1
  7. package/lib/config/add/index.js +2 -2
  8. package/lib/config/delete/index.js +2 -2
  9. package/lib/config/get/index.js +2 -2
  10. package/lib/config/index.js +2 -2
  11. package/lib/core/command/command-manager.js +14 -15
  12. package/lib/core/component/index.js +4 -4
  13. package/lib/error/index.d.ts +1 -1
  14. package/lib/error/index.js +36 -3
  15. package/lib/index.js +10 -2
  16. package/lib/init/index.js +3 -52
  17. package/lib/init/init-config.d.ts +8 -41
  18. package/lib/init/init-config.js +163 -351
  19. package/lib/init/init-manager.d.ts +5 -2
  20. package/lib/init/init-manager.js +49 -55
  21. package/lib/onboarding/index.d.ts +2 -0
  22. package/lib/onboarding/index.js +123 -0
  23. package/lib/set/analysis/index.d.ts +1 -0
  24. package/lib/set/analysis/index.js +17 -0
  25. package/lib/set/index.d.ts +0 -1
  26. package/lib/set/index.js +2 -2
  27. package/lib/set/locale/index.d.ts +1 -0
  28. package/lib/set/locale/index.js +17 -0
  29. package/lib/set/registry/index.js +3 -3
  30. package/lib/specification/parse.js +4 -6
  31. package/lib/utils/common.d.ts +3 -1
  32. package/lib/utils/common.js +27 -76
  33. package/lib/utils/i18n/en.d.ts +39 -0
  34. package/lib/utils/i18n/en.js +41 -0
  35. package/lib/utils/i18n/index.d.ts +2 -0
  36. package/lib/utils/i18n/index.js +16 -0
  37. package/lib/utils/i18n/zh.d.ts +39 -0
  38. package/lib/utils/i18n/zh.js +41 -0
  39. package/lib/utils/index.d.ts +1 -0
  40. package/lib/utils/index.js +4 -2
  41. package/lib/utils/logger.d.ts +1 -0
  42. package/lib/utils/logger.js +4 -1
  43. package/package.json +6 -6
  44. package/post-publish.sh +3 -1
@@ -1,54 +1,21 @@
1
1
  /** @format */
2
- export declare const APPLICATION_TEMPLATE: {
2
+ export declare const APPLICATION_TEMPLATE: ({
3
3
  type: string;
4
4
  name: string;
5
- message: string;
6
5
  loop: boolean;
7
- pageSize: number;
8
- source: (answersSoFar: any, input: any) => (import("inquirer/lib/objects/separator") | {
9
- key: string;
10
- name: string;
11
- value: string;
12
- })[];
13
- }[];
14
- export declare const ALIBABA_APPLICATION_TEMPLATE: {
15
- type: string;
16
- name: string;
17
6
  message: string;
18
- loop: boolean;
19
- pageSize: number;
20
- source: (answersSoFar: any, input: any) => (import("inquirer/lib/objects/separator") | {
21
- key: string;
22
- name: string;
23
- value: string;
24
- })[];
25
- }[];
26
- export declare const TENCENT_APPLICATION_TEMPLATE: {
7
+ source: (answersSoFar: any, input: any) => any[];
8
+ } | {
27
9
  type: string;
28
10
  name: string;
29
- message: string;
30
11
  loop: boolean;
31
- pageSize: number;
32
- source: (answersSoFar: any, input: any) => {
33
- key: string;
34
- name: string;
35
- value: string;
36
- }[];
37
- }[];
38
- export declare const AWS_APPLICATION_TEMPLATE: {
39
- type: string;
40
- name: string;
41
- message: string;
42
- loop: boolean;
43
- pageSize: number;
44
- source: (answersSoFar: any, input: any) => {
45
- key: string;
46
- name: string;
47
- value: string;
48
- }[];
49
- }[];
12
+ when(answers: any): boolean;
13
+ message: any;
14
+ source: (answersSoFar: any, input: any) => any[];
15
+ })[];
50
16
  export declare const PROJECT_NAME_INPUT: {
51
17
  type: string;
52
18
  name: string;
53
19
  message: string;
20
+ validate(input: any): true | "You must provide a project name";
54
21
  }[];