@teambit/builder 1.0.228 → 1.0.230

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 (47) hide show
  1. package/artifacts/__bit_junit.xml +1 -1
  2. package/artifacts/preview/teambit_pipelines_builder-preview.js +1 -1
  3. package/artifacts/schema.json +706 -180
  4. package/dist/artifact/artifact-definition.d.ts +65 -0
  5. package/dist/artifact/artifact-extractor.d.ts +35 -0
  6. package/dist/artifact/artifact-factory.d.ts +20 -0
  7. package/dist/artifact/artifact-list.d.ts +52 -0
  8. package/dist/artifact/artifact.d.ts +59 -0
  9. package/dist/artifact/artifacts.cmd.d.ts +26 -0
  10. package/dist/artifact/extension-artifact.d.ts +10 -0
  11. package/dist/artifact/fs-artifact.d.ts +18 -0
  12. package/dist/artifact/index.d.ts +6 -0
  13. package/dist/build-pipe.d.ts +75 -0
  14. package/dist/build-pipeline-order.d.ts +35 -0
  15. package/dist/build-pipeline-result-list.d.ts +34 -0
  16. package/dist/build-task.d.ts +128 -0
  17. package/dist/build.cmd.d.ts +39 -0
  18. package/dist/builder-env-type.d.ts +15 -0
  19. package/dist/builder.aspect.d.ts +2 -0
  20. package/dist/builder.composition.d.ts +1 -0
  21. package/dist/builder.graphql.d.ts +102 -0
  22. package/dist/builder.main.runtime.d.ts +153 -0
  23. package/dist/builder.route.d.ts +20 -0
  24. package/dist/builder.service.d.ts +105 -0
  25. package/dist/exceptions/artifact-definition-no-glob.d.ts +3 -0
  26. package/dist/exceptions/artifact-storage-error.d.ts +7 -0
  27. package/dist/exceptions/capsule-not-found.d.ts +5 -0
  28. package/dist/exceptions/index.d.ts +3 -0
  29. package/dist/exceptions/invalid-task.d.ts +5 -0
  30. package/dist/index.d.ts +19 -0
  31. package/dist/pipeline/index.d.ts +1 -0
  32. package/dist/pipeline/pipeline-results.d.ts +2 -0
  33. package/dist/pipeline.d.ts +43 -0
  34. package/dist/{preview-1712805335812.js → preview-1712891953391.js} +2 -2
  35. package/dist/storage/default-resolver.d.ts +7 -0
  36. package/dist/storage/index.d.ts +2 -0
  37. package/dist/storage/s3-resolver.d.ts +0 -0
  38. package/dist/storage/storage-resolver.d.ts +26 -0
  39. package/dist/task-results-list.d.ts +22 -0
  40. package/dist/task.d.ts +44 -0
  41. package/dist/tasks-queue.d.ts +16 -0
  42. package/dist/templates/build-task/files/index-file.d.ts +2 -0
  43. package/dist/templates/build-task/files/task-file.d.ts +2 -0
  44. package/dist/templates/build-task/index.d.ts +2 -0
  45. package/dist/types.d.ts +32 -0
  46. package/package.json +18 -18
  47. package/tsconfig.json +1 -49
@@ -0,0 +1,32 @@
1
+ import { Component } from '@teambit/component';
2
+ export type TaskMetadata = {
3
+ [key: string]: any;
4
+ };
5
+ export type ComponentResult = {
6
+ /**
7
+ * instance of the component
8
+ */
9
+ component: Component;
10
+ /**
11
+ * metadata generated during component build.
12
+ * this eventually gets saved into `aspectsData` prop of the builder aspect data.
13
+ * it can be retrieved later on by `builder.getDataByAspect()` method.
14
+ */
15
+ metadata?: TaskMetadata;
16
+ /**
17
+ * returning errors from build tasks will cause a pipeline failure and logs all returned errors.
18
+ */
19
+ errors?: Array<Error | string>;
20
+ /**
21
+ * warnings generated throughout the build task.
22
+ */
23
+ warnings?: string[];
24
+ /**
25
+ * timestamp in milliseconds when the task started
26
+ */
27
+ startTime?: number;
28
+ /**
29
+ * timestamp in milliseconds when the task ended
30
+ */
31
+ endTime?: number;
32
+ };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/builder",
3
- "version": "1.0.228",
3
+ "version": "1.0.230",
4
4
  "homepage": "https://bit.cloud/teambit/pipelines/builder",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.pipelines",
8
8
  "name": "builder",
9
- "version": "1.0.228"
9
+ "version": "1.0.230"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -26,23 +26,23 @@
26
26
  "@teambit/harmony": "0.4.6",
27
27
  "@teambit/bit-error": "0.0.404",
28
28
  "@teambit/component-id": "1.2.0",
29
- "@teambit/component": "1.0.228",
30
- "@teambit/envs": "1.0.228",
31
- "@teambit/logger": "0.0.954",
29
+ "@teambit/component": "1.0.230",
30
+ "@teambit/envs": "1.0.230",
31
+ "@teambit/logger": "0.0.955",
32
32
  "@teambit/toolbox.string.capitalize": "0.0.496",
33
- "@teambit/tester": "1.0.228",
34
- "@teambit/isolator": "1.0.228",
35
- "@teambit/cli": "0.0.861",
36
- "@teambit/workspace": "1.0.228",
37
- "@teambit/aspect-loader": "1.0.228",
38
- "@teambit/aspect": "1.0.228",
39
- "@teambit/generator": "1.0.229",
40
- "@teambit/global-config": "0.0.864",
41
- "@teambit/graphql": "1.0.228",
42
- "@teambit/scope": "1.0.228",
33
+ "@teambit/tester": "1.0.230",
34
+ "@teambit/isolator": "1.0.230",
35
+ "@teambit/cli": "0.0.862",
36
+ "@teambit/workspace": "1.0.230",
37
+ "@teambit/aspect-loader": "1.0.230",
38
+ "@teambit/aspect": "1.0.230",
39
+ "@teambit/generator": "1.0.231",
40
+ "@teambit/global-config": "0.0.865",
41
+ "@teambit/graphql": "1.0.230",
42
+ "@teambit/scope": "1.0.230",
43
43
  "@teambit/toolbox.array.duplications-finder": "0.0.1",
44
- "@teambit/ui": "1.0.228",
45
- "@teambit/express": "0.0.960"
44
+ "@teambit/ui": "1.0.230",
45
+ "@teambit/express": "0.0.961"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/lodash": "4.14.165",
@@ -52,7 +52,7 @@
52
52
  "@types/minimatch": "3.0.4",
53
53
  "@types/mocha": "9.1.0",
54
54
  "chai": "4.3.0",
55
- "@teambit/harmony.envs.core-aspect-env": "0.0.30",
55
+ "@teambit/harmony.envs.core-aspect-env": "0.0.33",
56
56
  "@teambit/pipelines.aspect-docs.builder": "0.0.167"
57
57
  },
58
58
  "peerDependencies": {
package/tsconfig.json CHANGED
@@ -20,8 +20,7 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false,
24
- "composite": true
23
+ "noImplicitAny": false
25
24
  },
26
25
  "exclude": [
27
26
  "artifacts",
@@ -36,52 +35,5 @@
36
35
  "include": [
37
36
  "**/*",
38
37
  "**/*.json"
39
- ],
40
- "references": [
41
- {
42
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
43
- },
44
- {
45
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_envs@1.0.228"
46
- },
47
- {
48
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.954"
49
- },
50
- {
51
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@1.0.228"
52
- },
53
- {
54
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_isolator@1.0.228"
55
- },
56
- {
57
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
58
- },
59
- {
60
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.228"
61
- },
62
- {
63
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.228"
64
- },
65
- {
66
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.228"
67
- },
68
- {
69
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@1.0.229"
70
- },
71
- {
72
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.864"
73
- },
74
- {
75
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.228"
76
- },
77
- {
78
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.228"
79
- },
80
- {
81
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.228"
82
- },
83
- {
84
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.960"
85
- }
86
38
  ]
87
39
  }