Skip to content
Source
Sign inSign up
TanStack/cli

fix: modernize partner integration add-ons #490

Mergedtannerlinsleymerged 2 commits intomain fromrefs/pull/490/headmerged by tannerlinsley

Showing 45 changed files with 96 additions and 10 deletions (loading 42).

x
0 of 45 viewed, 45 left
9 additions and 0 deletions.changeset/fresh-partner-paths.mdAdded
View file
@@ -0,0 +1,9 @@
+---
+'@tanstack/create': patch
+---
+​
+Modernize the Clerk and WorkOS add-ons with their full-stack TanStack Start SDKs,
+update Railway projects for Railpack, and use safer Sentry defaults. Secret
+environment values are no longer stored in `.cta.json` or overwritten by
+`tanstack add`, and pnpm 11 projects receive the build approvals their selected
+integrations require.
78 additions and 8 deletionspackages/create/src/add-to-app.tsModified
View file
@@ -23,6 +23,61 @@
import type { Environment, Options } from './types.js'
import type { PersistedOptions } from './config-file.js'
​
+const ENV_FILE_NAMES = new Set(['.env', '.env.local', '.env.example'])
+const ENV_VARIABLE_PATTERN = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=/
+​
+function mergeEnvFileContents(existing: string, generated: string) {
+ const declaredVariables = new Set<string>()
+ for (const line of existing.split(/\r?\n/)) {
+ const match = line.match(ENV_VARIABLE_PATTERN)
+ if (match) {
+ declaredVariables.add(match[1])