Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomuso committed Jan 20, 2023
1 parent 810c9e2 commit e788b01
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/gitlab-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"types": "tsc",
"build": "yarn types && backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
"test:ci": "backstage-cli package test --watch false",
Expand Down
1 change: 0 additions & 1 deletion packages/gitlab-backend/src/processor/urls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { join } from 'path';
import type { GitLabIntegrationConfig } from '@backstage/integration';

// Converts
// from: https://gitlab.com/groupA/teams/teamA/subgroupA/repoA/-/blob/branch/filepath
Expand Down
2 changes: 1 addition & 1 deletion packages/gitlab/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ createDevApp()
return response || null;
};
return {
build: (gitlabInstance: string) => cli,
build: () => cli,
};
},
})
Expand Down
3 changes: 2 additions & 1 deletion packages/gitlab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
],
"scripts": {
"start": "backstage-cli package start",
"build": "yarn tsc && backstage-cli package build",
"types": "tsc",
"build": "yarn types && backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
"test:ci": "backstage-cli package test --watch false",
Expand Down
6 changes: 4 additions & 2 deletions packages/gitlab/src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import {
MissingAnnotationEmptyState,
} from '@backstage/core-components';

import { GITLAB_ANNOTATION_PROJECT_ID, GITLAB_ANNOTATION_PROJECT_SLUG } from './gitlabAppData';
import {
GITLAB_ANNOTATION_PROJECT_ID,
GITLAB_ANNOTATION_PROJECT_SLUG,
} from './gitlabAppData';
export * from './gitlabAppData';


export const isGitlabAvailable = (entity: Entity) =>
isGitlabProjectIDAnnotationAvailable(entity) ||
isGitlabSlugAnnotationAvailable(entity);
Expand Down

0 comments on commit e788b01

Please sign in to comment.