From 83982ee3d8026eb2ce806578cb58bdd354879422 Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Mon, 15 Aug 2022 14:57:47 +0200 Subject: [PATCH] chore: package.json clean-up (#1030) * fix: clean-up of package.json and exclude swc/core-linux-x64 libs * chore: try remove node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node * Update apps/trading/netlify.toml --- apps/trading/netlify.toml | 2 ++ apps/trading/project.json | 9 +++++++++ package.json | 19 ++++++++----------- yarn.lock | 4 ++-- 4 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 apps/trading/netlify.toml diff --git a/apps/trading/netlify.toml b/apps/trading/netlify.toml new file mode 100644 index 000000000..a92bfc034 --- /dev/null +++ b/apps/trading/netlify.toml @@ -0,0 +1,2 @@ +[functions] + included_files = ["!node_modules/@swc/**/*"] diff --git a/apps/trading/project.json b/apps/trading/project.json index 450ce3d01..22d96508d 100644 --- a/apps/trading/project.json +++ b/apps/trading/project.json @@ -51,6 +51,15 @@ "options": { "lintFilePatterns": ["apps/trading/**/*.{ts,tsx,js,jsx}"] } + }, + "build-netlify": { + "builder": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + "cp apps/trading/netlify.toml netlify.toml", + "nx build trading" + ] + } } }, "tags": [] diff --git a/package.json b/package.json index 8909230a9..b36639148 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,9 @@ "private": true, "dependencies": { "@apollo/client": "^3.5.8", - "@babel/plugin-proposal-export-default-from": "^7.18.10", - "@babel/preset-env": "^7.18.10", - "@babel/runtime": "^7.18.9", "@blueprintjs/icons": "^3.32.0", "@emotion/react": "^11.9.0", "@emotion/styled": "^11.8.1", - "@nrwl/next": "13.10.3", "@radix-ui/react-accordion": "^0.1.6", "@radix-ui/react-dialog": "^0.1.5", "@radix-ui/react-dropdown-menu": "^0.1.6", @@ -34,7 +30,6 @@ "@sentry/nextjs": "^6.19.3", "@sentry/react": "^6.19.2", "@sentry/tracing": "^6.19.2", - "@testing-library/user-event": "^14.4.1", "@walletconnect/ethereum-provider": "^1.7.5", "@web3-react/core": "8.0.20-beta.0", "@web3-react/metamask": "8.0.16-beta.0", @@ -44,7 +39,6 @@ "allotment": "^1.14.5", "alpha-lyrae": "vegaprotocol/alpha-lyrae", "apollo": "^2.33.9", - "autoprefixer": "^10.4.2", "bignumber.js": "^9.0.2", "buffer": "^6.0.3", "classnames": "^2.3.1", @@ -53,7 +47,6 @@ "duration-js": "^4.0.0", "env-cmd": "^10.1.0", "ethers": "^5.6.0", - "faker": "^5.5.3", "graphql": "^15.7.2", "graphql-ws": "^5.6.3", "i18next": "^20.3.5", @@ -63,7 +56,6 @@ "lodash": "^4.17.21", "next": "12.0.9", "pennant": "^0.4.12", - "postcss": "^8.4.6", "react": "18.2.0", "react-copy-to-clipboard": "^5.0.4", "react-dom": "^18.2.0", @@ -77,9 +69,6 @@ "react-window": "^1.8.7", "react-window-infinite-loader": "^1.0.7", "recharts": "^2.1.2", - "regenerator-runtime": "0.13.7", - "tailwindcss": "^3.0.23", - "tslib": "^2.0.0", "uuid": "^8.3.2", "web-vitals": "^2.1.4", "zod": "^3.17.3", @@ -97,6 +86,7 @@ "@nrwl/eslint-plugin-nx": "13.10.3", "@nrwl/jest": "13.10.3", "@nrwl/linter": "13.10.3", + "@nrwl/next": "13.10.3", "@nrwl/nx-cloud": "13.3.1", "@nrwl/react": "13.10.3", "@nrwl/storybook": "13.10.3", @@ -113,6 +103,7 @@ "@svgr/webpack": "^5.4.0", "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "13.3.0", + "@testing-library/user-event": "^14.4.1", "@types/classnames": "^2.3.1", "@types/faker": "^5.5.8", "@types/jest": "27.4.1", @@ -129,6 +120,7 @@ "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "5.32.0", "@typescript-eslint/parser": "5.32.0", + "autoprefixer": "^10.4.2", "babel-jest": "27.5.1", "babel-loader": "8.1.0", "cypress": "^10.2.0", @@ -145,6 +137,7 @@ "eslint-plugin-react": "7.27.0", "eslint-plugin-react-hooks": "4.3.0", "eslint-plugin-unicorn": "^41.0.0", + "faker": "^5.5.3", "glob": "^8.0.1", "husky": "^7.0.4", "jest": "27.2.3", @@ -155,15 +148,19 @@ "npmlog": "^6.0.2", "nx": "13.10.1", "prettier": "^2.5.1", + "postcss": "^8.4.6", "react-test-renderer": "17.0.2", "recast": "^0.21.1", + "regenerator-runtime": "0.13.7", "replace-in-file": "^6.3.2", "resize-observer-polyfill": "^1.5.1", "sass": "1.49.9", "storybook-addon-themes": "^6.1.0", "ts-jest": "27.0.5", + "tailwindcss": "^3.0.23", "type-fest": "^2.12.2", "typescript": "~4.5.2", + "tslib": "^2.0.0", "url-loader": "^3.0.0" }, "lint-staged": { diff --git a/yarn.lock b/yarn.lock index 8179aeb82..340bbc9ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -484,7 +484,7 @@ "@babel/helper-plugin-utils" "^7.18.6" "@babel/plugin-syntax-dynamic-import" "^7.8.3" -"@babel/plugin-proposal-export-default-from@^7.12.1", "@babel/plugin-proposal-export-default-from@^7.18.10": +"@babel/plugin-proposal-export-default-from@^7.12.1": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz#091f4794dbce4027c03cf4ebc64d3fb96b75c206" integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow== @@ -1077,7 +1077,7 @@ "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/preset-env@^7.12.1", "@babel/preset-env@^7.12.11", "@babel/preset-env@^7.15.0", "@babel/preset-env@^7.16.0", "@babel/preset-env@^7.18.10", "@babel/preset-env@^7.18.2": +"@babel/preset-env@^7.12.1", "@babel/preset-env@^7.12.11", "@babel/preset-env@^7.15.0", "@babel/preset-env@^7.16.0", "@babel/preset-env@^7.18.2": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.18.10.tgz#83b8dfe70d7eea1aae5a10635ab0a5fe60dfc0f4" integrity sha512-wVxs1yjFdW3Z/XkNfXKoblxoHgbtUF7/l3PvvP4m02Qz9TZ6uZGxRVYjSQeR87oQmHco9zWitW5J82DJ7sCjvA==