Skip to content

Commit d338a50

Browse files
committed
fix: removed unnecesary React import, fixed Dockerfile with new node version, fixed package.json
1 parent 090cca4 commit d338a50

21 files changed

+18
-27
lines changed

.changeset/dark-seals-watch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@stackoverflow/backstage-plugin-stack-overflow-teams': patch
3+
---
4+
5+
Removed unnecessary React imports

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# This is not intended for production use.
88

99
# Stage 1 - Create yarn install skeleton layer
10-
FROM node:22-bookworm-slim AS packages
10+
FROM node:24-bookworm-slim AS packages
1111

1212
WORKDIR /app
1313
COPY backstage.json package.json yarn.lock ./
@@ -22,7 +22,7 @@ COPY plugins plugins
2222
RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -exec rm -rf {} \+
2323

2424
# Stage 2 - Install dependencies and build packages
25-
FROM node:20-bookworm-slim AS build
25+
FROM node:24-bookworm-slim AS build
2626

2727
# Set Python interpreter for `node-gyp` to use
2828
ENV PYTHON=/usr/bin/python3
@@ -60,7 +60,7 @@ RUN mkdir packages/backend/dist/skeleton packages/backend/dist/bundle \
6060
&& tar xzf packages/backend/dist/bundle.tar.gz -C packages/backend/dist/bundle
6161

6262
# Stage 3 - Build the actual backend image and install production dependencies
63-
FROM node:20-bookworm-slim
63+
FROM node:24-bookworm-slim
6464

6565
# Set Python interpreter for `node-gyp` to use
6666
ENV PYTHON=/usr/bin/python3

plugins/search-backend-module-stack-overflow-teams-collator/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
"main": "src/index.ts",
1111
"types": "src/index.ts",
1212
"publishConfig": {
13-
"access": "public",
14-
"main": "dist/index.esm.js",
15-
"types": "dist/index.d.ts"
13+
"access": "public"
1614
},
1715
"repository": {
1816
"type": "git",

plugins/stack-overflow-teams/dev/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { createDevApp } from '@backstage/dev-utils';
32
import { stackOverflowTeamsPlugin, StackOverflowTeamsPage } from '../src/plugin';
43

plugins/stack-overflow-teams/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"types": "src/index.ts",
66
"license": "Apache-2.0",
77
"publishConfig": {
8-
"access": "public",
9-
"main": "dist/index.esm.js",
10-
"types": "dist/index.d.ts"
8+
"access": "public"
119
},
1210
"backstage": {
1311
"role": "frontend-plugin",

plugins/stack-overflow-teams/src/components/StackOverflow/StackOverflowMe.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useApi } from '@backstage/core-plugin-api';
22
import { stackoverflowteamsApiRef, User } from '../../api';
33
import { useEffect, useState } from 'react';
4-
import React from 'react';
54
// eslint-disable-next-line no-restricted-imports
65
import {
76
Box,

plugins/stack-overflow-teams/src/components/StackOverflow/StackOverflowPostQuestionModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect, useCallback, useMemo } from 'react';
1+
import { useState, useEffect, useCallback, useMemo } from 'react';
22
import { useApi } from '@backstage/core-plugin-api';
33
import Chip from '@mui/material/Chip';
44
import { stackoverflowteamsApiRef } from '../../api';

plugins/stack-overflow-teams/src/components/StackOverflow/StackOverflowPosts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState, useCallback, useMemo, useRef } from 'react';
1+
import { useEffect, useState, useCallback, useMemo, useRef } from 'react';
22
import {
33
makeStyles,
44
Theme,

plugins/stack-overflow-teams/src/components/StackOverflow/StackOverflowSearchResultListItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
import React from 'react';
1918
import { Link } from '@backstage/core-components';
2019
import Divider from '@material-ui/core/Divider';
2120
import ListItem from '@material-ui/core/ListItem';

plugins/stack-overflow-teams/src/components/StackOverflow/StackOverflowTags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState, useCallback } from 'react';
1+
import { useEffect, useState, useCallback } from 'react';
22
import { Link, Progress, ResponseErrorPanel } from '@backstage/core-components';
33
import { useStackOverflowData } from './hooks/';
44
import {

0 commit comments

Comments
 (0)