diff --git a/.gitignore b/.gitignore index d9feaee832..254c006cc0 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,6 @@ certs/ redis-data/ .pnpm-debug.log + +# Turborepo +.turbo diff --git a/package.json b/package.json index 1fb0b57046..214721168a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "html-elements": "tools/html-elements.js" }, "scripts": { - "build": "pnpm build --prefix src/web --", + "build": "pnpm turbo run build", "dev": "pnpm dev --prefix src/web --", "develop": "pnpm dev", "eslint": "eslint --config .eslintrc.js \"**/*.{jsx,tsx,ts,js}\"", @@ -116,10 +116,20 @@ "pretty-quick": "3.1.3", "run.env": "1.1.0", "supertest": "6.1.6", - "ts-jest": "27.1.2" + "ts-jest": "27.1.2", + "turbo": "1.0.28" }, "engines": { "node": ">=14.0.0", "pnpm": ">=6" + }, + "turbo": { + "pipeline": { + "build": { + "dependsOn": [ + "^build" + ] + } + } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5d7a7a6851..19bced0caf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,6 +78,7 @@ importers: stoppable: 1.1.0 supertest: 6.1.6 ts-jest: 27.1.2 + turbo: 1.0.28 dependencies: '@bull-board/api': 3.8.1 '@bull-board/express': 3.8.1 @@ -154,6 +155,7 @@ importers: run.env: 1.1.0 supertest: 6.1.6 ts-jest: 27.1.2_ac3f9d4a26c88540c3f2823ef15b8533 + turbo: 1.0.28 src/api/auth: specifiers: @@ -15484,6 +15486,160 @@ packages: dependencies: safe-buffer: 5.2.1 + /turbo-darwin-64/1.0.28: + resolution: + { + integrity: sha512-uvARrncW6HNTFi7PFe4sq4JqSOKs1vPgWjJjOEyVhsCFwBgYkXxYsJSdDfO8OhvJa3wv+eYFAK5RaUCk80Z8eg==, + } + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-darwin-arm64/1.0.28: + resolution: + { + integrity: sha512-d/ANU+RIq4Fx/MphkqFThvwOpb+NYDuR+07aV5w8cwI7ljw7hPAe3EW3CSlkPJhvjs6P/oh+F86jhh1Q581mVA==, + } + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-freebsd-64/1.0.28: + resolution: + { + integrity: sha512-JMJWftuWhJan+Momc39vbbwaLYEcMpYyBxIrumyIrIkQVaiSKs/6oEFzh1YA+KE16kAgzTPJPXFDkmsY3idAQg==, + } + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /turbo-freebsd-arm64/1.0.28: + resolution: + { + integrity: sha512-fGJNE8qJUhosaIK5sGBheeve9y074FLWv8KfYuXMyV/6+dxpNV60HoAFvw8tL3q8TNp47pU6x8e8h+u1/rn1wQ==, + } + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-32/1.0.28: + resolution: + { + integrity: sha512-fE0qIExxYuVFo5WlVWY0DJ1YZ/w+EC9RheT9nc1tU2EK83XPE1CZFW4lFIsWsXnIy9337zUeNDFVoVxOxCBSUQ==, + } + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-64/1.0.28: + resolution: + { + integrity: sha512-e+f/O1MlcKCMhJf10q1x+1KSImHwuFUW2+A6DbLk+ekBUW5RELC2qF7hGypCzcpm8xIqtj5A0kP3blFy60AMxw==, + } + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-arm/1.0.28: + resolution: + { + integrity: sha512-PbB/RzN4W9M6sNZTvcjmc3PZ2S4CeFyQv/53tSs82pIlwM7NKVJzxVC0j3xCtoqoDDgXoJBhCpPV7MUEjCARQg==, + } + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-arm64/1.0.28: + resolution: + { + integrity: sha512-zN0nQClxp4nP4edinbdTd/9CpPjgNPsULc8LgunuJD+B9A0NRcRP5NCDo8/6ctTWs456sE3UhUF3t2b+uEgDzw==, + } + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-mips64le/1.0.28: + resolution: + { + integrity: sha512-7LKmFS9M+AKW5slTHLz00Y4ovZh2CpjgMUkNNC6qtJB8YyWwXwoU0U7Yz28q3+rNVkcEiqWWx4l1Tj1AotTlaA==, + } + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-ppc64le/1.0.28: + resolution: + { + integrity: sha512-R382Op75XxcIiY1pWPnVnefxOeVbrVAeABIHLL1hKetbu9UPNzKAnQKqJYGzKIdTRKtPh5CQuErEFzs/Ky2ZgA==, + } + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-32/1.0.28: + resolution: + { + integrity: sha512-SjDgimlD5TMvkrFRtsJb4uVP7T44gwr0HqiIpAuWj1m5d8Pz/OisOoUkM/ISPKqVycIU5JF8wx0+CTnxC7YNhQ==, + } + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-64/1.0.28: + resolution: + { + integrity: sha512-nT7bgcdl/9QNGBiwCYwTQ2VszcsqJ4NqT4YkE954KFZYxgSwMjjVTdoXcsnXMHpWiMiYfFF7HZLecUNnDm1uUA==, + } + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo/1.0.28: + resolution: + { + integrity: sha512-5xmyVabNYqA0sCAU4VLdUS2A6GwIyy8FTszB/Fx4eNHwHudQwo00F2qORcDFwBHE4MqtnRoBFhL3ZJzo8c9A2w==, + } + hasBin: true + requiresBuild: true + optionalDependencies: + turbo-darwin-64: 1.0.28 + turbo-darwin-arm64: 1.0.28 + turbo-freebsd-64: 1.0.28 + turbo-freebsd-arm64: 1.0.28 + turbo-linux-32: 1.0.28 + turbo-linux-64: 1.0.28 + turbo-linux-arm: 1.0.28 + turbo-linux-arm64: 1.0.28 + turbo-linux-mips64le: 1.0.28 + turbo-linux-ppc64le: 1.0.28 + turbo-windows-32: 1.0.28 + turbo-windows-64: 1.0.28 + dev: true + /tv4/1.3.0: resolution: {integrity: sha1-0CDIRvrdUMhVq7JeuuzGj8EPeWM=} engines: {node: '>= 0.8.0'}