Skip to content

Commit

Permalink
chore(db): update turbo monorepo to v2 (major) (#1297)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [@turbo/gen](https://turbo.build/repo)
([source](https://github.com/vercel/turbo/tree/HEAD/packages/turbo-gen))
| devDependencies | major | [`1.13.4` ->
`2.0.3`](https://renovatebot.com/diffs/npm/@turbo%2fgen/1.13.4/2.0.3) |
[![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/vercel/turbo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vercel/turbo)
|
| [eslint-plugin-turbo](https://github.com/vercel/turbo)
([source](https://github.com/vercel/turbo/tree/HEAD/packages/eslint-plugin-turbo))
| devDependencies | major | [`1.13.4` ->
`2.0.3`](https://renovatebot.com/diffs/npm/eslint-plugin-turbo/1.13.4/2.0.3)
| [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/vercel/turbo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vercel/turbo)
|
| [turbo](https://turbo.build/repo)
([source](https://github.com/vercel/turbo)) | devDependencies | major
| [`1.13.4` ->
`2.0.3`](https://renovatebot.com/diffs/npm/turbo/1.13.4/2.0.3) |
[![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/vercel/turbo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vercel/turbo)
|

---

### Release Notes

<details>
<summary>vercel/turbo (@&#8203;turbo/gen)</summary>

### [`v2.0.3`](https://github.com/vercel/turbo/releases/tag/v2.0.3):
Turborepo v2.0.3

[Compare
Source](https://github.com/vercel/turbo/compare/v2.0.2...v2.0.3)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.3 -->

#### What's Changed

##### turbo-ignore

- fix(turbo-ignore): infer correct version of turbo for project by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8363

##### Changelog

- feat: warn when no local turbo found by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8356

**Full Changelog**:
vercel/turborepo@v2.0.2...v2.0.3

### [`v2.0.2`](https://github.com/vercel/turbo/releases/tag/v2.0.2):
Turborepo v2.0.2

[Compare
Source](https://github.com/vercel/turbo/compare/v2.0.1...v2.0.2)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.2 -->

#### What's Changed

##### [@&#8203;turbo/codemod](https://github.com/turbo/codemod)

- fix(turborepo): factor in negated globs for workspace detection in
codemods by [@&#8203;NicholasLYang](https://github.com/NicholasLYang)
in
[vercel/turborepo#8331

##### Examples

- Bump examples to 2.0.0. by
[@&#8203;anthonyshew](https://github.com/anthonyshew) in
[vercel/turborepo#8284

##### Changelog

- feat(ui): respect CI and NO_COLOR as overrides for TUI by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8335
- fix(ui): no longer attempt to read from stdin if non-tty by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8333
- fix: correctly serialize ui values by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8338
- fix: add NODE_OPTIONS to default pass through env vars by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8353
- chore: add additional env vars to default pass through by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8359
- fix(ui): disable TUI if log order is specified by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8343

#### New Contributors

- [@&#8203;dvoytenko](https://github.com/dvoytenko) made their first
contribution in
[vercel/turborepo#8334

**Full Changelog**:
vercel/turborepo@v2.0.1...v2.0.2

### [`v2.0.1`](https://github.com/vercel/turbo/releases/tag/v2.0.1):
Turborepo v2.0.1

[Compare
Source](https://github.com/vercel/turbo/compare/v2.0.0...v2.0.1)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.1 -->

**Full Changelog**:
vercel/turborepo@v2.0.0...v2.0.1

### [`v2.0.0`](https://github.com/vercel/turbo/releases/tag/v2.0.0):
Turborepo v2.0.0

[Compare
Source](https://github.com/vercel/turbo/compare/v1.13.4...v2.0.0)

<!-- Release notes generated using configuration in
.github/turborepo-release.yml at v2.0.0 -->

#### What's Changed

Upgrade guide:
https://turbo.build/repo/docs/crafting-your-repository/upgrading

##### [@&#8203;turbo/codemod](https://github.com/turbo/codemod)

- feat(codemod): add logic for major version bump by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8260
- feat(codemod): place tasks last in turbo.json rewrites by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8268
- fix(codemod): support jsonc when parsing root turbo.json by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8279
- fix(codemod): respect --dry flag by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8280
- feat: change values of "ui" in turbo.json by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8289
- fix(codemod): support jsonc when parsing root turbo.json by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8279
- feat(codemod): place tasks last in turbo.json rewrites by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8268
- feat(codemod): add logic for major version bump by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8260
- feat(codemod): add missing package names by
[@&#8203;tknickman](https://github.com/tknickman) in
[vercel/turborepo#8186

##### Changelog

##### Breaking

- chore: remove legacy filter flags by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8294
- chore(turborepo): adjust error message for pipeline by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[vercel/turborepo#8264
- chore(turbo)!: remove check for legacy turbo config in package.json by
[@&#8203;mehulkar](https://github.com/mehulkar) in
[vercel/turborepo#8023
- chore(turbo)! hard error on env vars in task and global dependencies
by [@&#8203;mehulkar](https://github.com/mehulkar) in
[#&#8203;8026](https://github.com/vercel/turbo/issues/8026)
- feat: require packageManager in package.json by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8017](https://github.com/vercel/turbo/issues/8017)
- feat(filter): no longer infer scope in filters by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8137](https://github.com/vercel/turbo/issues/8137)
- chore!(create-turbo): remove old pm arg by
[@&#8203;tknickman](https://github.com/tknickman) in
[#&#8203;8150](https://github.com/vercel/turbo/issues/8150)
- feat: error on empty package name by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski)
[#&#8203;8152](https://github.com/vercel/turbo/issues/8152)
- feat(filter): error on invalid filters by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski)
[#&#8203;8142](https://github.com/vercel/turbo/issues/8142)
- Move fs cache location. by
[@&#8203;anthonyshew](https://github.com/anthonyshew) in
[#&#8203;8126](https://github.com/vercel/turbo/issues/8126)
- refactor(turborepo): Rename outputMode to outputLogs in turbo.json by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[#&#8203;8149](https://github.com/vercel/turbo/issues/8149)
- feat: --only now applies to package dependencies by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8163](https://github.com/vercel/turbo/issues/8163)
- Rename pipeline to tasks. by
[@&#8203;anthonyshew](https://github.com/anthonyshew) in
[#&#8203;8157](https://github.com/vercel/turbo/issues/8157)
- feat: add doublestar to exact dir paths by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8180](https://github.com/vercel/turbo/issues/8180)
- chore: remove globalDotEnv and dotEnv fields by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8181](https://github.com/vercel/turbo/issues/8181)
- chore: make env mode strict by default by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8182](https://github.com/vercel/turbo/issues/8182)

##### Other

- feat: allow for negative globs in globalDeps by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8190](https://github.com/vercel/turbo/issues/8190)
- chore: change turborepo licenses to MIT by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8197](https://github.com/vercel/turbo/issues/8197)
- feat: all dependencies of root package contribute to global hash by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8202](https://github.com/vercel/turbo/issues/8202)
- fix(turborepo): non-determinism with root internal deps hash. by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[vercel/turborepo#8277
- fix: update integration test to expect correct output by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8285
- chore: remove cpuprofile flag by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8282
- fix(ui): disable UI on all dry runs by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8269
- fix(turborepo): stderr log by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[vercel/turborepo#8267
- chore(turborepo): adjust error message for pipeline by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[vercel/turborepo#8264
- fix(ui): ensure prelude gets printed before ui starts by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8265
-
chore([@&#8203;turbo/benchmark](https://github.com/turbo/benchmark)):
fix lint warnings by [@&#8203;mehulkar](https://github.com/mehulkar)
in
[vercel/turborepo#8233
- chore(turborepo): Feature flagged off file hashing by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[vercel/turborepo#8229
- chore: downgrade curl to fix Windows rust tests by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8242
- fix(turborepo): Remove optional git locks by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[vercel/turborepo#8244
- fix(turborepo): Optional lock with env var by
[@&#8203;NicholasLYang](https://github.com/NicholasLYang) in
[vercel/turborepo#8247
- add two retry strategies to allow requests to timeout gracefully by
[@&#8203;arlyon](https://github.com/arlyon) in
[vercel/turborepo#8080
- add support for upload speed / remaining in the cache upload step by
[@&#8203;arlyon](https://github.com/arlyon) in
[vercel/turborepo#8081
- chore: remove --ignore flag by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[vercel/turborepo#8201
- feat: factor engines into global cache key by
[@&#8203;chris-olszewski](https://github.com/chris-olszewski) in
[#&#8203;8173](https://github.com/vercel/turbo/issues/8173)

**Full Changelog**:
vercel/turborepo@v1.13.4...v2.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/weareinreach/InReach).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbImF1dG9tZXJnZSIsImRlcGVuZGVuY2llcyIsImtvZGlhazogbWVyZ2UubWV0aG9kID0gJ3NxdWFzaCciXX0=-->

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Joe Karow <58997957+JoeKarow@users.noreply.github.com>
  • Loading branch information
renovate[bot] and JoeKarow committed Jun 14, 2024
1 parent baac229 commit c0ea459
Show file tree
Hide file tree
Showing 24 changed files with 172 additions and 133 deletions.
2 changes: 1 addition & 1 deletion InReach.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
},
"prettier.resolveGlobalModules": false,
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.tsdk": "🚀 InReach App (@weareinreach/app)/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.workspaceSymbols.scope": "allOpenProjects",
"sonarlint.connectedMode.project": {
Expand Down
3 changes: 3 additions & 0 deletions apps/app/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin'
import { RelativeCiAgentWebpackPlugin } from '@relative-ci/agent'
import { withSentryConfig } from '@sentry/nextjs'
import { I18NextHMRPlugin } from 'i18next-hmr/webpack'
import createJiti from 'jiti'
import routes from 'nextjs-routes/config'

import path from 'path'
Expand All @@ -14,6 +15,8 @@ import i18nConfig from './next-i18next.config.mjs'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const jiti = createJiti(__filename)
jiti('../../packages/env')

const isVercelActiveDev = process.env.VERCEL_ENV === 'preview' && process.env.VERCEL_GIT_COMMIT_REF !== 'dev'
const isVercelProd = process.env.VERCEL_ENV === 'production'
Expand Down
1 change: 1 addition & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"eslint": "8.57.0",
"eslint-plugin-i18next": "6.0.3",
"i18next-hmr": "3.1.2",
"jiti": "1.21.6",
"listr2": "8.2.1",
"prettier": "3.3.2",
"trpc-panel": "1.3.4",
Expand Down
34 changes: 20 additions & 14 deletions apps/app/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": [
"build:prebuild",
Expand All @@ -12,26 +12,32 @@
"^db:dataMigrate"
],
"env": [
"DATABASE_URL",
"DB_DIRECT_URL",
"NEXTAUTH_SECRET",
"NEXTAUTH_URL",
"VERCEL_URL",
"PORT",
"AWS_REGION",
"COGNITO_ACCESS_KEY",
"COGNITO_CLIENT_ID",
"COGNITO_CLIENT_SECRET",
"COGNITO_ISSUER",
"COGNITO_USER_POOL_ID",
"AWS_REGION",
"COGNITO_ACCESS_KEY",
"COGNITO_SECRET",
"NODE_ENV",
"COGNITO_USER_POOL_ID",
"CRON_KEY",
"CROWDIN_TOKEN",
"DATABASE_URL",
"DB_DIRECT_URL",
"EDGE_CONFIG",
"FEATURE_FLAG_CONFIG",
"GOOGLE_PLACES_API_KEY",
"NEXT_PUBLIC_GOOGLE_MAPS_API",
"KV_REST_API_READ_ONLY_TOKEN",
"KV_REST_API_TOKEN",
"KV_REST_API_URL",
"KV_URL",
"NEXTAUTH_SECRET",
"NEXTAUTH_URL",
"NODE_ENV",
"PORT",
"SENTRY_AUTH_TOKEN",
"NEXT_PUBLIC_SENTRY_DSN",
"SENTRY_ORG",
"SENTRY_PROJECT",
"SENTRY_ORG"
"VERCEL_URL"
],
"outputs": [".next/**"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/web/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": [],
"env": [
Expand Down
2 changes: 1 addition & 1 deletion lambdas/cognito-messaging/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build:aws": {
"dependsOn": ["format", "lint:fix", "type-check"],
"inputs": ["./src/**"],
Expand Down
2 changes: 1 addition & 1 deletion lambdas/cognito-user-migrate/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build:aws": {
"dependsOn": ["format", "lint:fix", "^db:generate", "type-check"],
"inputs": ["./src/**"],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"devDependencies": {
"@changesets/cli": "2.27.5",
"@turbo/gen": "1.13.4",
"@turbo/gen": "2.0.3",
"@types/lint-staged": "13.3.0",
"@types/node": "20.14.2",
"@types/yargs": "17.0.32",
Expand All @@ -58,7 +58,7 @@
"prettier-plugin-prisma": "5.0.0",
"sherif": "0.8.4",
"tsx": "4.15.4",
"turbo": "1.13.4",
"turbo": "2.0.3",
"typescript": "5.4.5",
"typesync": "0.12.1",
"yargs": "17.7.2"
Expand Down
6 changes: 5 additions & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
"just-compact": "3.2.0"
},
"devDependencies": {
"@types/eslint": "8.56.10",
"@types/gtag.js": "0.0.20",
"@types/node": "20.14.2",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "workspace:*",
"eslint": "8.57.0",
"next": "14.2.4",
"nextjs-google-analytics": "2.3.3",
"type-fest": "4.20.0"
"type-fest": "4.20.0",
"typescript": "5.4.5"
},
"peerDependencies": {
"next": "14.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/turbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {}
"tasks": {}
}
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"zod": "3.23.8"
},
"devDependencies": {
"@turbo/gen": "1.13.4",
"@turbo/gen": "2.0.3",
"@types/eslint": "8.56.10",
"@types/google.maps": "3.55.9",
"@types/luxon": "3.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/turbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {}
"tasks": {}
}
2 changes: 2 additions & 0 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"preinstall": "npx only-allow pnpm"
},
"devDependencies": {
"@types/eslint": "8.56.10",
"@types/node": "20.14.2",
"@weareinreach/eslint-config": "workspace:*",
"alex": "11.0.1",
"eslint": "8.57.0",
"next-i18next": "15.3.0",
"typescript": "5.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/crowdin/turbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {}
"tasks": {}
}
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@snaplet/copycat": "5.0.0",
"@snaplet/seed": "0.97.20",
"@terraformer/wkt": "2.2.1",
"@turbo/gen": "1.13.4",
"@turbo/gen": "2.0.3",
"@turf/helpers": "7.0.0",
"@types/eslint": "8.56.10",
"@types/inquirer": "9.0.7",
Expand Down
6 changes: 3 additions & 3 deletions packages/db/turbo.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"$schema": "https://turborepo.org/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"db:dataMigrate": {
"dependsOn": ["db:generate", "db:deploy"],
"env": ["DATABASE_URL", "DB_DIRECT_URL"],
"inputs": ["./prisma/data-migrations/**/*.ts", "./prisma/dataMigrationRunner.ts"],
"outputMode": "new-only"
"outputLogs": "new-only"
},
"db:deploy": {
"dependsOn": ["db:generate", "^docker:up"],
"env": ["DATABASE_URL", "DB_DIRECT_URL"],
"inputs": ["./prisma/migrations/**/*"],
"outputMode": "new-only"
"outputLogs": "new-only"
},
"db:generate": {
"cache": false,
Expand Down
33 changes: 1 addition & 32 deletions packages/env/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,37 +45,8 @@ export const env = createEnv({
NEXT_PUBLIC_VERCEL_ENV: z.enum(['production', 'development', 'preview']).optional(),
NEXT_PUBLIC_GA_MEASUREMENT_ID: z.string(),
},
runtimeEnv: {
// Server
CI: process.env.CI,
COGNITO_ACCESS_KEY: process.env.COGNITO_ACCESS_KEY,
COGNITO_CLIENT_ID: process.env.COGNITO_CLIENT_ID,
COGNITO_CLIENT_SECRET: process.env.COGNITO_CLIENT_SECRET,
COGNITO_SECRET: process.env.COGNITO_SECRET,
COGNITO_USER_POOL_ID: process.env.COGNITO_USER_POOL_ID,
CRON_KEY: process.env.CRON_KEY,
CROWDIN_TOKEN: process.env.CROWDIN_TOKEN,
DATABASE_URL: process.env.DATABASE_URL,
DB_DIRECT_URL: process.env.DB_DIRECT_URL,
EDGE_CONFIG_TOKEN: process.env.EDGE_CONFIG_TOKEN,
EDGE_CONFIG: process.env.EDGE_CONFIG,
FEATURE_FLAG_CONFIG: process.env.FEATURE_FLAG_CONFIG,
GOOGLE_PLACES_API_KEY: process.env.GOOGLE_PLACES_API_KEY,
KV_REST_API_READ_ONLY_TOKEN: process.env.KV_REST_API_READ_ONLY_TOKEN,
KV_REST_API_TOKEN: process.env.KV_REST_API_TOKEN,
KV_REST_API_URL: process.env.KV_REST_API_URL,
KV_URL: process.env.KV_URL,
NEXT_RUNTIME: process.env.NEXT_RUNTIME,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
NODE_ENV: process.env.NODE_ENV,
OTEL_SERVER: process.env.OTEL_SERVER,
PORT: process.env.PORT,
VERCEL_ENV: process.env.VERCEL_ENV,
VERCEL_URL: process.env.VERCEL_URL,
VERCEL: process.env.VERCEL,

// Client
experimental__runtimeEnv: {
NEXT_PUBLIC_GA_MEASUREMENT_ID: process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID,
NEXT_PUBLIC_GOOGLE_MAPS_API: process.env.NEXT_PUBLIC_GOOGLE_MAPS_API,
NEXT_PUBLIC_VERCEL_ENV: process.env.NEXT_PUBLIC_VERCEL_ENV,
Expand All @@ -91,5 +62,3 @@ export const env = createEnv({
export const getEnv = <T extends keyof typeof env>(envVar: T): (typeof env)[T] => env[envVar]

export * from './checks'
// export const isDev = process.env.NODE_ENV === 'development'
// export const isVercelProd = process.env.VERCEL_ENV === 'production'
6 changes: 5 additions & 1 deletion packages/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
"zod": "3.23.8"
},
"devDependencies": {
"@types/eslint": "8.56.10",
"@types/node": "20.14.2",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "workspace:*"
"@weareinreach/eslint-config": "workspace:*",
"eslint": "8.57.0",
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint-plugin-node": "npm:eslint-plugin-n@16.6.2",
"eslint-plugin-react": "7.34.2",
"eslint-plugin-storybook": "0.8.0",
"eslint-plugin-turbo": "1.13.4",
"eslint-plugin-turbo": "2.0.3",
"next": "14.2.4",
"resolve-pkg-maps": "1.0.0",
"typescript": "5.4.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["./icon/iconList.ts", "./icon/iconCollection.ts"],
Expand Down
6 changes: 5 additions & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
"tslog": "4.9.3"
},
"devDependencies": {
"@types/eslint": "8.56.10",
"@types/luxon": "3.4.2",
"@types/node": "20.14.2",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "workspace:*"
"@weareinreach/eslint-config": "workspace:*",
"eslint": "8.57.0",
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/util/turbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {}
"tasks": {}
}
Loading

0 comments on commit c0ea459

Please sign in to comment.