diff --git a/package.json b/package.json index 29bd5cb27a..cee5caef16 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,11 @@ "devDependencies": { "@babel/cli": "^7.11.6", "@babel/node": "^7.10.5", + "@babel/plugin-transform-runtime": "^7.18.10", "@beyondessential/eslint-config-jest": "^1.0.0", "@beyondessential/eslint-config-js": "^1.1.1", "@beyondessential/eslint-config-ts": "^1.3.2", + "babel-eslint": "^10.1.0", "babel-jest": "^27.0.6", "concurrently": "^5.2.0", "cypress-dotenv": "^1.2.2", diff --git a/packages/meditrak-app/.yarnrc.yml b/packages/meditrak-app/.yarnrc.yml deleted file mode 100644 index 9dab2039a7..0000000000 --- a/packages/meditrak-app/.yarnrc.yml +++ /dev/null @@ -1 +0,0 @@ -nmHoistingLimits: workspaces \ No newline at end of file diff --git a/packages/meditrak-app/package.json b/packages/meditrak-app/package.json index 873473f9dc..889e481b37 100644 --- a/packages/meditrak-app/package.json +++ b/packages/meditrak-app/package.json @@ -8,6 +8,9 @@ "url": "git+https://github.com/beyondessential/tupaia.git", "directory": "packages/meditrak-app" }, + "installConfig": { + "hoistingLimits": "workspaces" + }, "author": "Beyond Essential Systems (https://beyondessential.com.au)", "main": "app/main.js", "scripts": { diff --git a/yarn.lock b/yarn.lock index 1dc204446c..e1ac06b97f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -73,6 +73,13 @@ __metadata: languageName: node linkType: hard +"@babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.18.8": + version: 7.18.8 + resolution: "@babel/compat-data@npm:7.18.8" + checksum: 3096aafad74936477ebdd039bcf342fba84eb3100e608f3360850fb63e1efa1c66037c4824f814d62f439ab47d25164439343a6e92e9b4357024fdf571505eb9 + languageName: node + linkType: hard + "@babel/core@npm:7.12.3": version: 7.12.3 resolution: "@babel/core@npm:7.12.3" @@ -208,6 +215,20 @@ __metadata: languageName: node linkType: hard +"@babel/helper-compilation-targets@npm:^7.17.7": + version: 7.18.9 + resolution: "@babel/helper-compilation-targets@npm:7.18.9" + dependencies: + "@babel/compat-data": ^7.18.8 + "@babel/helper-validator-option": ^7.18.6 + browserslist: ^4.20.2 + semver: ^6.3.0 + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 2a9d71e124e098a9f45de4527ddd1982349d231827d341e00da9dfb967e260ecc7662c8b62abee4a010fb34d5f07a8d2155c974e0bc1928144cee5644910621d + languageName: node + linkType: hard + "@babel/helper-create-class-features-plugin@npm:^7.12.1, @babel/helper-create-class-features-plugin@npm:^7.14.5, @babel/helper-create-class-features-plugin@npm:^7.15.4": version: 7.15.4 resolution: "@babel/helper-create-class-features-plugin@npm:7.15.4" @@ -289,6 +310,22 @@ __metadata: languageName: node linkType: hard +"@babel/helper-define-polyfill-provider@npm:^0.3.2": + version: 0.3.2 + resolution: "@babel/helper-define-polyfill-provider@npm:0.3.2" + dependencies: + "@babel/helper-compilation-targets": ^7.17.7 + "@babel/helper-plugin-utils": ^7.16.7 + debug: ^4.1.1 + lodash.debounce: ^4.0.8 + resolve: ^1.14.2 + semver: ^6.1.2 + peerDependencies: + "@babel/core": ^7.4.0-0 + checksum: 8f693ab8e9d73873c2e547c7764c7d32d73c14f8dcefdd67fd3a038eb75527e2222aa53412ea673b9bfc01c32a8779a60e77a7381bbdd83452f05c9b7ef69c2c + languageName: node + linkType: hard + "@babel/helper-environment-visitor@npm:^7.18.6": version: 7.18.6 resolution: "@babel/helper-environment-visitor@npm:7.18.6" @@ -380,6 +417,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-imports@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/helper-module-imports@npm:7.18.6" + dependencies: + "@babel/types": ^7.18.6 + checksum: f393f8a3b3304b1b7a288a38c10989de754f01d29caf62ce7c4e5835daf0a27b81f3ac687d9d2780d39685aae7b55267324b512150e7b2be967b0c493b6a1def + languageName: node + linkType: hard + "@babel/helper-module-transforms@npm:^7.12.1, @babel/helper-module-transforms@npm:^7.14.5, @babel/helper-module-transforms@npm:^7.15.4": version: 7.15.7 resolution: "@babel/helper-module-transforms@npm:7.15.7" @@ -428,6 +474,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-plugin-utils@npm:^7.16.7, @babel/helper-plugin-utils@npm:^7.18.9": + version: 7.18.9 + resolution: "@babel/helper-plugin-utils@npm:7.18.9" + checksum: ebae876cd60f1fe238c7210986093845fa5c4cad5feeda843ea4d780bf068256717650376d3af2a5e760f2ed6a35c065ae144f99c47da3e54aa6cba99d8804e0 + languageName: node + linkType: hard + "@babel/helper-plugin-utils@npm:^7.18.6": version: 7.18.6 resolution: "@babel/helper-plugin-utils@npm:7.18.6" @@ -528,6 +581,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-option@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/helper-validator-option@npm:7.18.6" + checksum: f9cc6eb7cc5d759c5abf006402180f8d5e4251e9198197428a97e05d65eb2f8ae5a0ce73b1dfd2d35af41d0eb780627a64edf98a4e71f064eeeacef8de58f2cf + languageName: node + linkType: hard + "@babel/helper-wrap-function@npm:^7.15.4": version: 7.15.4 resolution: "@babel/helper-wrap-function@npm:7.15.4" @@ -1632,6 +1692,22 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-runtime@npm:^7.18.10": + version: 7.18.10 + resolution: "@babel/plugin-transform-runtime@npm:7.18.10" + dependencies: + "@babel/helper-module-imports": ^7.18.6 + "@babel/helper-plugin-utils": ^7.18.9 + babel-plugin-polyfill-corejs2: ^0.3.2 + babel-plugin-polyfill-corejs3: ^0.5.3 + babel-plugin-polyfill-regenerator: ^0.4.0 + semver: ^6.3.0 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 98c18680b4258b8bd3f04926b73c72ae77037d5ea5b50761ca35de15896bf0d04bedabde39a81be56dbd4859c96ffaa7103fbefb5d5b58a36e0a80381e4a146c + languageName: node + linkType: hard + "@babel/plugin-transform-shorthand-properties@npm:^7.0.0, @babel/plugin-transform-shorthand-properties@npm:^7.12.1, @babel/plugin-transform-shorthand-properties@npm:^7.14.5": version: 7.14.5 resolution: "@babel/plugin-transform-shorthand-properties@npm:7.14.5" @@ -8887,6 +8963,19 @@ __metadata: languageName: node linkType: hard +"babel-plugin-polyfill-corejs2@npm:^0.3.2": + version: 0.3.2 + resolution: "babel-plugin-polyfill-corejs2@npm:0.3.2" + dependencies: + "@babel/compat-data": ^7.17.7 + "@babel/helper-define-polyfill-provider": ^0.3.2 + semver: ^6.1.1 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: a76e7bb1a5cc0a4507baa523c23f9efd75764069a25845beba92290386e5e48ed85b894005ece3b527e13c3d2d9c6589cc0a23befb72ea6fc7aa8711f231bb4d + languageName: node + linkType: hard + "babel-plugin-polyfill-corejs3@npm:^0.1.0": version: 0.1.7 resolution: "babel-plugin-polyfill-corejs3@npm:0.1.7" @@ -8911,6 +9000,18 @@ __metadata: languageName: node linkType: hard +"babel-plugin-polyfill-corejs3@npm:^0.5.3": + version: 0.5.3 + resolution: "babel-plugin-polyfill-corejs3@npm:0.5.3" + dependencies: + "@babel/helper-define-polyfill-provider": ^0.3.2 + core-js-compat: ^3.21.0 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 9c6644a1b0afbe59e402827fdafc6f44994ff92c5b2f258659cbbfd228f7075dea49e95114af10e66d70f36cbde12ff1d81263eb67be749b3ef0e2c18cf3c16d + languageName: node + linkType: hard + "babel-plugin-polyfill-regenerator@npm:^0.2.2": version: 0.2.2 resolution: "babel-plugin-polyfill-regenerator@npm:0.2.2" @@ -8922,6 +9023,17 @@ __metadata: languageName: node linkType: hard +"babel-plugin-polyfill-regenerator@npm:^0.4.0": + version: 0.4.0 + resolution: "babel-plugin-polyfill-regenerator@npm:0.4.0" + dependencies: + "@babel/helper-define-polyfill-provider": ^0.3.2 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 699aa9c0dc5a2259d7fa52b26613fa1e782439eee54cd98506991f87fddf0c00eec6c5b1917edf586c170731d9e318903bc41210225a691e7bb8087652bbda94 + languageName: node + linkType: hard + "babel-plugin-react-docgen@npm:^4.2.1": version: 4.2.1 resolution: "babel-plugin-react-docgen@npm:4.2.1" @@ -9668,6 +9780,20 @@ __metadata: languageName: node linkType: hard +"browserslist@npm:^4.20.2, browserslist@npm:^4.21.3": + version: 4.21.3 + resolution: "browserslist@npm:4.21.3" + dependencies: + caniuse-lite: ^1.0.30001370 + electron-to-chromium: ^1.4.202 + node-releases: ^2.0.6 + update-browserslist-db: ^1.0.5 + bin: + browserslist: cli.js + checksum: ff512a7bcca1c530e2854bbdfc7be2791d0fb524097a6340e56e1d5924164c7e4e0a9b070de04cdc4c149d15cb4d4275cb7c626ebbce954278a2823aaad2452a + languageName: node + linkType: hard + "browserslist@npm:^4.8.3": version: 4.8.5 resolution: "browserslist@npm:4.8.5" @@ -10177,6 +10303,13 @@ __metadata: languageName: node linkType: hard +"caniuse-lite@npm:^1.0.30001370": + version: 1.0.30001373 + resolution: "caniuse-lite@npm:1.0.30001373" + checksum: cd2f027e2fcf66ed3b0e3eccec89df871f951f2e7600944fae2c3f6f1c37ac82392e573c279e15bf851b75f9696472e38d33fd52d964819ffb8af7af4078ceba + languageName: node + linkType: hard + "capture-exit@npm:^2.0.0": version: 2.0.0 resolution: "capture-exit@npm:2.0.0" @@ -11437,6 +11570,16 @@ __metadata: languageName: node linkType: hard +"core-js-compat@npm:^3.21.0": + version: 3.24.1 + resolution: "core-js-compat@npm:3.24.1" + dependencies: + browserslist: ^4.21.3 + semver: 7.0.0 + checksum: b14516add9d59a9fae3b96d0de6e1d8864df80b714232814fce56ce946af3696cb50a4f83c717f8f36e43e1a37adf99a4cde6fc921e6ee56021eee2ea3bdc4dc + languageName: node + linkType: hard + "core-js-compat@npm:^3.6.2": version: 3.6.4 resolution: "core-js-compat@npm:3.6.4" @@ -13540,6 +13683,13 @@ __metadata: languageName: node linkType: hard +"electron-to-chromium@npm:^1.4.202": + version: 1.4.211 + resolution: "electron-to-chromium@npm:1.4.211" + checksum: 43d983b94f5aa542926c4063bae597591458b59e96ec0ab85a62cc296b9760c447d7d0af369d3c40b44b75cfc9d3a66277495736517c370cf03e181cf3ed39f1 + languageName: node + linkType: hard + "elegant-spinner@npm:^1.0.1": version: 1.0.1 resolution: "elegant-spinner@npm:1.0.1" @@ -24543,6 +24693,13 @@ __metadata: languageName: node linkType: hard +"node-releases@npm:^2.0.6": + version: 2.0.6 + resolution: "node-releases@npm:2.0.6" + checksum: e86a926dc9fbb3b41b4c4a89d998afdf140e20a4e8dbe6c0a807f7b2948b42ea97d7fd3ad4868041487b6e9ee98409829c6e4d84a734a4215dff060a7fbeb4bf + languageName: node + linkType: hard + "node-request-interceptor@npm:^0.6.3": version: 0.6.3 resolution: "node-request-interceptor@npm:0.6.3" @@ -26140,6 +26297,13 @@ __metadata: languageName: node linkType: hard +"picocolors@npm:^1.0.0": + version: 1.0.0 + resolution: "picocolors@npm:1.0.0" + checksum: a2e8092dd86c8396bdba9f2b5481032848525b3dc295ce9b57896f931e63fc16f79805144321f72976383fc249584672a75cc18d6777c6b757603f372f745981 + languageName: node + linkType: hard + "picomatch@npm:^2.0.4, picomatch@npm:^2.0.5, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2": version: 2.2.2 resolution: "picomatch@npm:2.2.2" @@ -33513,9 +33677,11 @@ __metadata: dependencies: "@babel/cli": ^7.11.6 "@babel/node": ^7.10.5 + "@babel/plugin-transform-runtime": ^7.18.10 "@beyondessential/eslint-config-jest": ^1.0.0 "@beyondessential/eslint-config-js": ^1.1.1 "@beyondessential/eslint-config-ts": ^1.3.2 + babel-eslint: ^10.1.0 babel-jest: ^27.0.6 concurrently: ^5.2.0 cypress-dotenv: ^1.2.2 @@ -34074,6 +34240,20 @@ __metadata: languageName: node linkType: hard +"update-browserslist-db@npm:^1.0.5": + version: 1.0.5 + resolution: "update-browserslist-db@npm:1.0.5" + dependencies: + escalade: ^3.1.1 + picocolors: ^1.0.0 + peerDependencies: + browserslist: ">= 4.21.0" + bin: + browserslist-lint: cli.js + checksum: 7e425fe5dbbebdccf72a84ce70ec47fc74dce561d28f47bc2b84a1c2b84179a862c2261b18ab66a5e73e261c7e2ef9e11c6129112989d4d52e8f75a56bb923f8 + languageName: node + linkType: hard + "update-notifier@npm:^4.0.0": version: 4.1.1 resolution: "update-notifier@npm:4.1.1"