@teambit/compiler 1.0.203 → 1.0.205
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_compilation_compiler-preview.js +1 -1
- package/artifacts/schema.json +7 -541
- package/dist/compiler.cmd.d.ts +2 -10
- package/dist/compiler.cmd.js +5 -26
- package/dist/compiler.cmd.js.map +1 -1
- package/dist/events/index.d.ts +0 -1
- package/dist/events/index.js +0 -11
- package/dist/events/index.js.map +1 -1
- package/dist/output-formatter.d.ts +2 -2
- package/dist/output-formatter.js +1 -1
- package/dist/output-formatter.js.map +1 -1
- package/dist/{preview-1710991124101.js → preview-1711163914029.js} +2 -2
- package/dist/workspace-compiler.d.ts +2 -1
- package/dist/workspace-compiler.js +29 -4
- package/dist/workspace-compiler.js.map +1 -1
- package/events/index.ts +0 -1
- package/package.json +15 -15
- package/dist/events/component-compilation-on-done.d.ts +0 -18
- package/dist/events/component-compilation-on-done.js +0 -36
- package/dist/events/component-compilation-on-done.js.map +0 -1
- package/events/component-compilation-on-done.ts +0 -26
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-classes-per-file */
|
|
2
|
-
import { BitBaseEvent } from '@teambit/pubsub';
|
|
3
|
-
import { Component } from '@teambit/component';
|
|
4
|
-
import { CompileError } from '../workspace-compiler';
|
|
5
|
-
|
|
6
|
-
class ComponentCompilationOnDoneEventData {
|
|
7
|
-
constructor(readonly errors: Array<CompileError>, readonly component: Component, readonly buildResults: string[]) {}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export class ComponentCompilationOnDoneEvent extends BitBaseEvent<ComponentCompilationOnDoneEventData> {
|
|
11
|
-
static readonly TYPE = 'component-compilation-on-done';
|
|
12
|
-
|
|
13
|
-
constructor(
|
|
14
|
-
readonly errors: Array<CompileError>,
|
|
15
|
-
readonly component: Component,
|
|
16
|
-
readonly buildResults: string[],
|
|
17
|
-
readonly timestamp = Date.now()
|
|
18
|
-
) {
|
|
19
|
-
super(
|
|
20
|
-
ComponentCompilationOnDoneEvent.TYPE,
|
|
21
|
-
'0.0.1',
|
|
22
|
-
timestamp,
|
|
23
|
-
new ComponentCompilationOnDoneEventData(errors, component, buildResults)
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
}
|