Skip to content

Commit

Permalink
fix: delete unsued dependencies and add untracked once
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinOm committed Sep 26, 2024
1 parent c2fcd51 commit 933b912
Show file tree
Hide file tree
Showing 15 changed files with 1,543 additions and 4,857 deletions.
29 changes: 29 additions & 0 deletions app/client/knip.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": ["src/index.tsx"],
"project": ["src/**/*.{tsx,ts,js}"],
"ignore": [
Expand All @@ -13,12 +14,40 @@
"src/plugins/Linting/**",
"src/ee/plugins/Linting/**",
"src/ce/plugins/Linting/**",
"src/ce/sagas/EnvironmentSagas.ts",
"src/ce/utils/analyticsHelpers.ts",
"src/ce/utils/autocomplete/helpers.ts",
"src/ce/utils/workflowHelpers.ts",
"src/workers/Evaluation/**",
"src/widgets/ExternalWidget/component/script.js",
"src/widgets/ListWidgetV2/widget/derived.js",
"src/workers/Tern/tern.worker.ts",
"src/widgets/CustomWidget/component/appsmithConsole.js",
"src/serviceWorker.ts",
"src/ee/utils/serviceWorkerUtils.ts"
],
"ignoreDependencies": [
"craco-alias",
"craco-babel-loader",
"babel-plugin-lodash",
"@types/google.maps",
"@types/web",
"postcss-url",
"@types/dom-view-transitions",
"@types/jest",
"@sentry/webpack-plugin",
"compression-webpack-plugin",
"webpack-retry-chunk-load-plugin",
"lint-staged",
"ts-jest-mock-import-meta",
"cypress-log-to-output",
"cypress-repeat-pro",
"cypress-multi-reporters",
"@aws-sdk/client-s3",
"@aws-sdk/lib-storage",
"@octokit/rest",
"@faker-js/faker",
"pg",
"factory.ts"
]
}
48 changes: 1 addition & 47 deletions app/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,14 @@
"@blueprintjs/icons": "3.22.0",
"@blueprintjs/popover2": "^0.5.0",
"@blueprintjs/select": "^3.10.0",
"@design-system/storybook": "workspace:^",
"@design-system/widgets-old": "workspace:^",
"@floating-ui/dom": "^1.6.4",
"@fusioncharts/powercharts": "^3.16.0",
"@github/g-emoji-element": "^1.1.5",
"@googlemaps/markerclusterer": "^2.0.14",
"@googlemaps/react-wrapper": "^1.1.35",
"@loadable/component": "^5.15.3",
"@manaflair/redux-batch": "^1.0.0",
"@mantine/hooks": "^5.10.1",
"@newrelic/browser-agent": "^1.255.0",
"@opentelemetry/auto-instrumentations-web": "0.40.0",
"@opentelemetry/context-zone": "1.25.1",
"@opentelemetry/exporter-metrics-otlp-http": "0.52.1",
"@opentelemetry/exporter-trace-otlp-proto": "0.52.1",
Expand All @@ -95,15 +91,13 @@
"@types/web": "^0.0.99",
"@uppy/core": "^1.16.0",
"@uppy/dashboard": "^1.16.0",
"@uppy/file-input": "^1.4.22",
"@uppy/google-drive": "^1.5.22",
"@uppy/image-editor": "^0.2.4",
"@uppy/onedrive": "^1.1.22",
"@uppy/react": "^1.11.2",
"@uppy/url": "^1.5.16",
"@uppy/webcam": "^1.8.4",
"@welldone-software/why-did-you-render": "^4.2.5",
"algoliasearch": "^4.2.0",
"appsmith-icons": "workspace:^",
"assert-never": "^1.2.1",
"astring": "^1.7.5",
Expand All @@ -117,7 +111,6 @@
"core-js": "^3.9.1",
"craco-alias": "^2.1.1",
"craco-babel-loader": "^1.0.4",
"cssnano": "^6.0.1",
"cypress-log-to-output": "^1.1.2",
"cypress-repeat-pro": "^1.0.1",
"d3-geo": "^3.1.0",
Expand All @@ -133,18 +126,13 @@
"fusioncharts": "^3.18.0",
"graphql": "^16.8.1",
"history": "^4.10.1",
"http-proxy": "^1.18.1",
"immer": "^9.0.6",
"instantsearch.css": "^7.4.2",
"interweave": "^12.7.2",
"interweave-autolink": "^4.4.2",
"jest-preview": "^0.3.1",
"js-beautify": "^1.14.0",
"js-regex-pl": "^1.0.1",
"js-sha256": "^0.9.0",
"jshint": "^2.13.4",
"klona": "^2.0.5",
"konva": "8.0.1",
"libphonenumber-js": "^1.9.44",
"linkedom": "^0.14.20",
"localforage": "^1.7.3",
Expand All @@ -153,47 +141,37 @@
"loglevel": "^1.7.1",
"lottie-web": "^5.7.4",
"mammoth": "^1.5.1",
"marked": "^4.0.18",
"memoize-one": "^6.0.0",
"micro-memoize": "^4.0.10",
"microdiff": "^1.4.0",
"moment": "2.29.4",
"moment-timezone": "^0.5.35",
"nanoid": "^2.0.4",
"node-forge": "^1.3.0",
"normalizr": "^3.3.0",
"object-hash": "^3.0.0",
"path-to-regexp": "^6.3.0",
"popper.js": "^1.15.0",
"prismjs": "^1.27.0",
"proxy-memoize": "^1.2.0",
"punycode": "^2.1.1",
"rc-pagination": "^3.1.3",
"rc-select": "^14.1.9",
"rc-tree-select": "^5.4.0",
"re-reselect": "^3.4.0",
"react": "^17.0.2",
"react-append-to-body": "^2.0.26",
"react-beautiful-dnd": "^12.2.0",
"react-custom-scrollbars": "^4.2.1",
"react-device-detect": "^2.2.2",
"react-dnd": "^9.3.4",
"react-dnd-html5-backend": "^9.3.4",
"react-dnd-touch-backend": "^9.4.0",
"react-documents": "^1.0.4",
"react-dom": "^17.0.2",
"react-full-screen": "^1.1.0",
"react-google-recaptcha": "^2.1.0",
"react-helmet": "^5.2.1",
"react-hook-form": "^7.28.0",
"react-instantsearch-dom": "^6.4.0",
"react-json-view": "^1.21.3",
"react-konva": "17.0.2-6",
"react-masonry-css": "^1.0.16",
"react-media-recorder": "^1.6.1",
"react-modal": "^3.15.1",
"react-page-visibility": "^7.0.0",
"react-paginating": "^1.4.0",
"react-player": "^2.3.1",
"react-qr-barcode-scanner": "^1.0.6",
"react-rating": "^2.0.5",
Expand All @@ -202,9 +180,7 @@
"react-router": "^5.1.2",
"react-router-dom": "^5.1.2",
"react-scripts": "^5.0.1",
"react-select": "^3.0.8",
"react-spring": "^9.4.0",
"react-syntax-highlighter": "^15.5.0",
"react-table": "^7.0.0",
"react-table-sticky": "^1.1.3",
"react-tabs": "^3.0.0",
Expand All @@ -231,15 +207,13 @@
"tailwindcss": "^3.3.3",
"tern": "^0.21.0",
"tinycolor2": "^1.4.2",
"to-json-schema": "^0.2.5",
"toposort": "^2.0.2",
"tslib": "^2.3.1",
"typescript": "^5.5.4",
"unescape-js": "^1.1.4",
"url-search-params-polyfill": "^8.0.0",
"uuid": "^9.0.0",
"validate-color": "^2.2.4",
"webfontloader": "^1.6.28",
"webpack-retry-chunk-load-plugin": "^3.1.1",
"yjs": "^13.5.12",
"zipcelx": "^1.6.2"
Expand All @@ -252,14 +226,11 @@
],
"devDependencies": {
"@appsmith/eslint-plugin": "workspace:^",
"@babel/helper-create-regexp-features-plugin": "^7.18.6",
"@babel/helper-string-parser": "^7.19.4",
"@craco/craco": "^7.0.0",
"@cypress/grep": "^4.0.1",
"@faker-js/faker": "^7.4.0",
"@octokit/rest": "^20.0.1",
"@peculiar/webcrypto": "^1.4.3",
"@redux-saga/testing-utils": "^1.1.5",
"@sentry/webpack-plugin": "^1.18.9",
"@simonsmith/cypress-image-snapshot": "^9.1.0",
"@testing-library/jest-dom": "5.16.1",
Expand All @@ -268,49 +239,39 @@
"@testing-library/user-event": "13.5.0",
"@types/codemirror": "^0.0.96",
"@types/deep-diff": "^1.0.0",
"@types/dom-mediacapture-record": "^1.0.11",
"@types/dom-view-transitions": "^1.0.5",
"@types/downloadjs": "^1.4.2",
"@types/jest": "^27.4.1",
"@types/js-beautify": "^1.13.2",
"@types/jshint": "^2.12.0",
"@types/lodash": "^4.14.120",
"@types/marked": "^4.0.3",
"@types/moment-timezone": "^0.5.10",
"@types/nanoid": "^2.0.0",
"@types/node": "^10.12.18",
"@types/node-fetch": "^2.6.11",
"@types/node-forge": "^0.10.0",
"@types/object-hash": "^2.2.1",
"@types/pg": "^8.10.2",
"@types/prismjs": "^1.16.1",
"@types/react": "^17.0.2",
"@types/react-beautiful-dnd": "^11.0.4",
"@types/react-custom-scrollbars": "^4.0.7",
"@types/react-dom": "^17.0.2",
"@types/react-google-recaptcha": "^2.1.1",
"@types/react-helmet": "^5.0.14",
"@types/react-instantsearch-dom": "^6.3.0",
"@types/react-instantsearch-core": "^6.26.10",
"@types/react-modal": "^3.13.1",
"@types/react-redux": "^7.0.1",
"@types/react-router-dom": "^5.1.2",
"@types/react-select": "^3.0.5",
"@types/react-syntax-highlighter": "^13.5.2",
"@types/react-table": "^7.0.13",
"@types/react-tabs": "^2.3.1",
"@types/react-test-renderer": "^17.0.1",
"@types/react-window": "^1.8.2",
"@types/redux-form": "^8.1.9",
"@types/redux-mock-store": "^1.0.2",
"@types/resize-observer-browser": "^0.1.5",
"@types/showdown": "^1.9.4",
"@types/styled-components": "^5.1.26",
"@types/tern": "0.22.0",
"@types/tinycolor2": "^1.4.2",
"@types/to-json-schema": "^0.2.1",
"@types/toposort": "^2.0.3",
"@types/uuid": "^9.0.5",
"@types/webfontloader": "1.6.33",
"@types/zipcelx": "^1.5.0",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
Expand All @@ -337,7 +298,6 @@
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-babel-module": "^5.3.2",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
Expand All @@ -346,7 +306,6 @@
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-testing-library": "^6.2.0",
"esm": "^3.2.25",
"factory.ts": "^0.5.1",
"husky": "^8.0.0",
"jest": "^27.4.1",
Expand All @@ -366,22 +325,17 @@
"postcss-modules-values": "^4.0.0",
"postcss-nesting": "^12.0.1",
"postcss-url": "^10.1.3",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.0.3",
"prop-types": "^15.8.1",
"raw-loader": "^4.0.2",
"react-is": "^16.12.0",
"react-test-renderer": "^16.11.0",
"redux-devtools": "^3.5.0",
"redux-devtools-extension": "^2.13.8",
"redux-mock-store": "^1.5.4",
"redux-saga-test-plan": "^4.0.6",
"ts-jest": "29.1.0",
"ts-jest-mock-import-meta": "^0.12.0",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"webpack-merge": "^5.8.0",
"workbox-webpack-plugin": "^6.5.3",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
},
"resolutions": {
Expand Down
2 changes: 0 additions & 2 deletions app/client/packages/ast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"build": "rollup -c"
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@rollup/plugin-commonjs": "^22.0.0",
"@types/escodegen": "^0.0.7",
"@types/lodash": "^4.14.120",
Expand All @@ -32,7 +31,6 @@
"unescape-js": "^1.1.4"
},
"devDependencies": {
"@babel/preset-typescript": "^7.17.12",
"@types/jest": "29.0.3",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
Expand Down
13 changes: 2 additions & 11 deletions app/client/packages/design-system/ads-old/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,12 @@
],
"license": "Apache-2.0",
"devDependencies": {
"@types/loadable__component": "^5.13.4",
"@types/react-form": "^4.0.2",
"@types/wait-on": "^5.2.0",
"concurrently": "^7.3.0",
"identity-obj-proxy": "3.0.0",
"react-toastify": "^5.5.0",
"wait-on": "^5.3.0"
"identity-obj-proxy": "3.0.0"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"dependencies": {
"emoji-mart": "3.0.1"
}
]
}
12 changes: 3 additions & 9 deletions app/client/packages/design-system/ads/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,14 @@
"license": "ISC",
"devDependencies": {
"@react-aria/focus": "^3.10.1",
"@react-types/button": "^3.7.0",
"@types/loadable__component": "^5.13.4",
"@types/react-datepicker": "^4.10.0",
"axe-core": "^4.7.2",
"concurrently": "^8.2.0",
"file-loader": "6.2.0",
"normalize.css": "^8.0.1",
"remark-gfm": "^3.0.1"
"@types/react-datepicker": "^4.10.0"
},
"dependencies": {
"@radix-ui/react-dialog": "^1.0.2",
"@radix-ui/react-dropdown-menu": "^2.0.4",
"@radix-ui/react-hover-card": "^1.0.7",
"@radix-ui/react-popover": "^1.0.6",
"@radix-ui/react-tabs": "^1.0.2",
"@react-aria/button": "^3.7.0",
"@react-aria/checkbox": "^3.7.1",
"@react-aria/focus": "^3.10.1",
"@react-aria/link": "^3.3.6",
Expand All @@ -38,7 +30,9 @@
"@react-aria/textfield": "^3.8.1",
"@react-stately/radio": "^3.6.2",
"@react-stately/toggle": "^3.4.4",
"@react-types/textfield": "^3.9.6",
"@xstyled/styled-components": "^3.8.0",
"@xstyled/system": "^3.8.1",
"csstype": "^3.1.2",
"date-fns": "^2.29.3",
"overlayscrollbars": "^2.7.2",
Expand Down
18 changes: 3 additions & 15 deletions app/client/packages/design-system/headless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,16 @@
},
"dependencies": {
"@floating-ui/react": "^0.24.0",
"@react-aria/button": "^3.7.0",
"@react-aria/checkbox": "^3.9.0",
"@react-aria/focus": "^3.11.0",
"@react-aria/interactions": "^3.14.0",
"@react-aria/menu": "^3.11.1",
"@react-aria/radio": "^3.6.1",
"@react-aria/switch": "^3.5.2",
"@react-aria/textfield": "^3.11.0",
"@react-aria/utils": "^3.16.0",
"@react-aria/visually-hidden": "^3.8.0",
"@react-spectrum/utils": "^3.9.0",
"@react-stately/checkbox": "^3.4.1",
"@react-stately/collections": "^3.10.2",
"@react-stately/menu": "^3.5.6",
"@react-stately/radio": "^3.8.1",
"@react-stately/toggle": "^3.5.1",
"@react-types/button": "^3.7.1",
"@react-types/checkbox": "^3.4.3",
"@react-stately/utils": "^3.10.3",
"@react-types/label": "^3.7.3",
"@react-types/menu": "^3.9.5",
"@react-types/shared": "^3.23.1",
"classnames": "*"
"@react-types/textfield": "^3.9.6",
"react-aria-components": "^1.3.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
Expand Down
Loading

0 comments on commit 933b912

Please sign in to comment.