@teambit/snapping 1.0.336 → 1.0.337
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 +4 -4
- package/artifacts/schema.json +805 -805
- package/dist/snapping.main.runtime.d.ts +0 -1
- package/dist/snapping.main.runtime.js +1 -29
- package/dist/snapping.main.runtime.js.map +1 -1
- package/dist/snapping.spec.js +1 -8
- package/dist/snapping.spec.js.map +1 -1
- package/package.json +23 -23
- package/dist/components-have-issues.d.ts +0 -5
- package/dist/components-have-issues.js +0 -69
- package/dist/components-have-issues.js.map +0 -1
- /package/dist/{preview-1721013596376.js → preview-1721099996991.js} +0 -0
|
@@ -161,7 +161,6 @@ export declare class SnappingMain {
|
|
|
161
161
|
_getObjectsToEnrichComp(consumerComponent: ConsumerComponent, modifiedLog?: Log): Promise<BitObject[]>;
|
|
162
162
|
private transformArtifactsFromVinylToSource;
|
|
163
163
|
private loadComponentsForTagOrSnap;
|
|
164
|
-
private throwForComponentIssues;
|
|
165
164
|
private throwForPendingImport;
|
|
166
165
|
private throwForLegacyDependenciesInsideHarmony;
|
|
167
166
|
/**
|
|
@@ -256,13 +256,6 @@ function _tagCmd() {
|
|
|
256
256
|
};
|
|
257
257
|
return data;
|
|
258
258
|
}
|
|
259
|
-
function _componentsHaveIssues() {
|
|
260
|
-
const data = require("./components-have-issues");
|
|
261
|
-
_componentsHaveIssues = function () {
|
|
262
|
-
return data;
|
|
263
|
-
};
|
|
264
|
-
return data;
|
|
265
|
-
}
|
|
266
259
|
function _resetCmd() {
|
|
267
260
|
const data = _interopRequireDefault(require("./reset-cmd"));
|
|
268
261
|
_resetCmd = function () {
|
|
@@ -905,7 +898,7 @@ in case you're unsure about the pattern syntax, use "bit pattern [--help]"`);
|
|
|
905
898
|
const componentsToCheck = components.filter(c => !c.isDeleted());
|
|
906
899
|
const consumerComponents = componentsToCheck.map(c => c.state._consumer);
|
|
907
900
|
await this.throwForLegacyDependenciesInsideHarmony(consumerComponents);
|
|
908
|
-
await this.throwForComponentIssues(componentsToCheck, ignoreIssues);
|
|
901
|
+
await this.builder.throwForComponentIssues(componentsToCheck, ignoreIssues);
|
|
909
902
|
this.throwForPendingImport(consumerComponents);
|
|
910
903
|
}
|
|
911
904
|
async throwForDepsFromAnotherLaneForComp(component, allIds, lane, throwForMissingObjects = false) {
|
|
@@ -1139,27 +1132,6 @@ another option, in case this dependency is not in main yet is to remove all refe
|
|
|
1139
1132
|
}
|
|
1140
1133
|
return this.workspace.getMany(ids.map(id => id.changeVersion(undefined)));
|
|
1141
1134
|
}
|
|
1142
|
-
async throwForComponentIssues(components, ignoreIssues) {
|
|
1143
|
-
if (ignoreIssues === '*') {
|
|
1144
|
-
// ignore all issues
|
|
1145
|
-
return;
|
|
1146
|
-
}
|
|
1147
|
-
const issuesToIgnoreFromFlag = ignoreIssues?.split(',').map(issue => issue.trim()) || [];
|
|
1148
|
-
const issuesToIgnoreFromConfig = this.issues.getIssuesToIgnoreGlobally();
|
|
1149
|
-
const issuesToIgnore = [...issuesToIgnoreFromFlag, ...issuesToIgnoreFromConfig];
|
|
1150
|
-
await this.issues.triggerAddComponentIssues(components, issuesToIgnore);
|
|
1151
|
-
this.issues.removeIgnoredIssuesFromComponents(components, issuesToIgnore);
|
|
1152
|
-
const legacyComponents = components.map(c => c.state._consumer);
|
|
1153
|
-
const componentsWithBlockingIssues = legacyComponents.filter(component => component.issues?.shouldBlockTagging());
|
|
1154
|
-
if (componentsWithBlockingIssues.length) {
|
|
1155
|
-
throw new (_componentsHaveIssues().ComponentsHaveIssues)(componentsWithBlockingIssues);
|
|
1156
|
-
}
|
|
1157
|
-
const workspaceIssues = this.workspace.getWorkspaceIssues();
|
|
1158
|
-
if (workspaceIssues.length) {
|
|
1159
|
-
const issuesStr = workspaceIssues.map(issueErr => issueErr.message).join('\n');
|
|
1160
|
-
throw new (_bitError().BitError)(`the workspace has the following issues:\n${issuesStr}`);
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
1135
|
throwForPendingImport(components) {
|
|
1164
1136
|
const componentsMissingFromScope = components.filter(c => !c.componentFromModel && this.scope.isExported(c.id)).map(c => c.id.toString());
|
|
1165
1137
|
if (componentsMissingFromScope.length) {
|