Skip to content

Commit

Permalink
move dependencies to devDependencies (#1758)
Browse files Browse the repository at this point in the history
* move dependencies to devDependencies

* typescript was already in devDependencies
* dependencies used only by the frontend widget are only devDependencies,
  and are not required by the backend (at runtime):
  - react
  - react-dom
  - matrix-widget-api
  - url-join
  - classnames
* cross-fetch is only used in tests

Signed-off-by: Дамјан Георгиевски <gdamjan@gmail.com>

* Create 1758.misc

---------

Signed-off-by: Дамјан Георгиевски <gdamjan@gmail.com>
Co-authored-by: Will Hunt <will@half-shot.uk>
  • Loading branch information
gdamjan and Half-Shot authored Aug 9, 2023
1 parent 4163275 commit d5efc41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog.d/1758.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove some build-time dependencies from the runtime dependency list.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
"@sentry/node": "^6.17.9",
"ajv": "^8.12.0",
"bluebird": "^3.7.2",
"classnames": "^2.3.2",
"cross-fetch": "^3.1.5",
"diff": "^5.1.0",
"escape-string-regexp": "^4.0.0",
"extend": "^3.0.2",
Expand All @@ -46,18 +44,13 @@
"matrix-appservice-bridge": "^9.0.1",
"matrix-bot-sdk": "npm:@vector-im/matrix-bot-sdk@^0.6.6-element.1",
"matrix-org-irc": "^2.1.0",
"matrix-widget-api": "^1.4.0",
"nopt": "^6.0.0",
"p-queue": "^6.6.2",
"pg": "^8.8.0",
"quick-lru": "^5.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sanitize-html": "^2.7.2",
"semver": "^7.5.4",
"typed-emitter": "^2.1.0",
"typescript": "^5.0.4",
"url-join": "^5.0.0",
"winston": "^3.8.2",
"winston-daily-rotate-file": "^4.7.1"
},
Expand All @@ -83,21 +76,27 @@
"@typescript-eslint/parser": "^5.38.0",
"@vitejs/plugin-react": "^3.0.1",
"autoprefixer": "^10.4.13",
"classnames": "^2.3.2",
"cross-fetch": "^3.1.5",
"eslint": "^8.24.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"homerunner-client": "^0.0.6",
"jasmine": "^3.99.0",
"jest": "^29.1.1",
"matrix-widget-api": "^1.4.0",
"node-mocks-http": "^1.12.1",
"nyc": "^15.1.0",
"postcss": "^8.4.21",
"proxyquire": "^2.1.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.2.4",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"url-join": "^5.0.0",
"vite": "^4.0.4"
}
}

0 comments on commit d5efc41

Please sign in to comment.