Skip to content

Commit 7a0ca0c

Browse files
authored
Rename plugins (#24)
* rename plugins backstage- * use link:* for local deps * update yarn.lock * add prepare release command * yarn install * prepare release before running npm ls * change cwd * x-compatible prepare release
1 parent fe43b0e commit 7a0ca0c

File tree

30 files changed

+99
-120
lines changed

30 files changed

+99
-120
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
cache: 'yarn'
6363
# failures with peer dependencies will fail release
6464
- run: yarn install
65+
- run: scripts/prepare-release.sh
6566
- name: Check for dependency resolution issues
6667
run: npm ls
6768
# on main, dry run the release

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@backstage/cli": "^0.25.1",
3535
"@backstage/e2e-test-utils": "^0.1.0",
3636
"@playwright/test": "^1.32.3",
37+
"@semantic-release/exec": "^6.0.3",
3738
"@spotify/prettier-config": "^12.0.0",
3839
"concurrently": "^8.0.0",
3940
"conventional-changelog-conventionalcommits": "^6.1.0",
@@ -73,6 +74,13 @@
7374
"preset": "conventionalcommits"
7475
}
7576
],
77+
[
78+
"@semantic-release/exec",
79+
{
80+
"execCwd": "../../",
81+
"prepareCmd": "scripts/prepare-release.sh"
82+
}
83+
],
7684
"@semantic-release/npm",
7785
"@semantic-release/github"
7886
]

packages/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"@backstage/plugin-techdocs-react": "^1.1.15",
3939
"@backstage/plugin-user-settings": "^0.8.0",
4040
"@backstage/theme": "^0.5.0",
41-
"@seatgeek/plugin-awards": "*",
42-
"@seatgeek/plugin-entity-scaffolder-content": "*",
41+
"@seatgeek/backstage-plugin-awards": "link:*",
42+
"@seatgeek/backstage-plugin-entity-scaffolder-content": "link:*",
4343
"@material-ui/core": "^4.12.2",
4444
"@material-ui/icons": "^4.9.1",
4545
"history": "^5.0.0",

packages/app/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
3737
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
3838
import { RequirePermission } from '@backstage/plugin-permission-react';
39-
import { AwardsPage } from '@seatgeek/plugin-awards';
39+
import { AwardsPage } from '@seatgeek/backstage-plugin-awards';
4040

4141
const app = createApp({
4242
apis,

packages/app/src/components/catalog/EntityPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ import {
4141
} from '@backstage/plugin-org';
4242
import { EntityTechdocsContent } from '@backstage/plugin-techdocs';
4343
import { Button, Grid } from '@material-ui/core';
44-
import { UserAwardsCard } from '@seatgeek/plugin-awards';
45-
import { EntityScaffolderContent } from '@seatgeek/plugin-entity-scaffolder-content';
44+
import { UserAwardsCard } from '@seatgeek/backstage-plugin-awards';
45+
import { EntityScaffolderContent } from '@seatgeek/backstage-plugin-entity-scaffolder-content';
4646
import React from 'react';
4747

4848
import { ReportIssue } from '@backstage/plugin-techdocs-module-addons-contrib';

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@backstage/plugin-search-backend-module-techdocs": "^0.1.13",
3737
"@backstage/plugin-search-backend-node": "^1.2.13",
3838
"@backstage/plugin-techdocs-backend": "^1.9.2",
39-
"@seatgeek/plugin-awards-backend": "*",
39+
"@seatgeek/backstage-plugin-awards-backend": "link:*",
4040
"app": "*",
4141
"better-sqlite3": "^9.0.0",
4242
"dockerode": "^3.3.1",

packages/backend/src/plugins/awards.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createRouter } from '@seatgeek/plugin-awards-backend';
1+
import { createRouter } from '@seatgeek/backstage-plugin-awards-backend';
22
import { Router } from 'express';
33
import { PluginEnvironment } from '../types';
44

plugins/awards-backend/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# @seatgeek/plugin-awards-backend
1+
# @seatgeek/backstage-plugin-awards-backend
22

3-
[![npm latest version](https://img.shields.io/npm/v/@seatgeek/plugin-awards-backend/latest.svg)](https://www.npmjs.com/package/@seatgeek/plugin-awards-backend)
3+
[![npm latest version](https://img.shields.io/npm/v/@seatgeek/backstage-plugin-awards-backend/latest.svg)](https://www.npmjs.com/package/@seatgeek/backstage-plugin-awards-backend)
44

55
Welcome to the backend package for awards plugin!
66

@@ -12,18 +12,18 @@ Currently we support only `SQLite` and `PostgreSQL` databases.
1212

1313
## Installation
1414

15-
Install the @seatgeek/plugin-awards-backend package in your backend package:
15+
Install the @seatgeek/backstage-plugin-awards-backend package in your backend package:
1616

1717
```shell
1818
# From your Backstage root directory
19-
yarn add --cwd packages/backend @seatgeek/plugin-awards-backend
19+
yarn add --cwd packages/backend @seatgeek/backstage-plugin-awards-backend
2020
```
2121

2222
Then create a plugin entry inside `packages/src/plugins/awards.ts` in your
2323
Backstage root with the following content:
2424

2525
```typescript
26-
import { createRouter } from '@seatgeek/plugin-awards-backend';
26+
import { createRouter } from '@seatgeek/backstage-plugin-awards-backend';
2727
import { Router } from 'express';
2828
import { PluginEnvironment } from '../types';
2929

plugins/awards-backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@seatgeek/plugin-awards-backend",
2+
"name": "@seatgeek/backstage-plugin-awards-backend",
33
"version": "0.0.0-semantically-released",
44
"main": "src/index.ts",
55
"types": "src/index.ts",
@@ -28,7 +28,7 @@
2828
"@backstage/config": "^1.1.1",
2929
"@backstage/errors": "^1.2.3",
3030
"@backstage/plugin-auth-node": "^0.4.3",
31-
"@seatgeek/plugin-awards-common": "*",
31+
"@seatgeek/backstage-plugin-awards-common": "link:*",
3232
"@types/express": "*",
3333
"express": "^4.17.1",
3434
"express-promise-router": "^4.1.0",

plugins/awards-backend/src/database/awards.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
import { DatabaseManager } from '@backstage/backend-common';
66
import { ConfigReader } from '@backstage/config';
7-
import { Award } from '@seatgeek/plugin-awards-common';
7+
import { Award } from '@seatgeek/backstage-plugin-awards-common';
88
import { Knex } from 'knex';
99
import { v4 as uuid } from 'uuid';
1010
import { DatabaseAwardsStore } from './awards';

0 commit comments

Comments
 (0)