Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# rxjs (pulled in transitively via @creit.tech/xbull-wallet-connect, #598)
# declares tslib as its own dependency, but pnpm's strict per-package
# isolation has been observed failing to link tslib into rxjs's own nested
# node_modules on Vercel's cached install (though not on every fresh local
# install), breaking the production build with "Rolldown failed to resolve
# import tslib". Hoisting it to root node_modules makes it resolvable via
# Node's normal upward directory walk regardless of whether that specific
# nested link is correctly wired.
public-hoist-pattern[]=tslib
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"react-i18next": "^17.0.12",
"recharts": "^3.10.1",
"tailwind-merge": "^3.6.0",
"tslib": "^2.8.1",
"zustand": "^5.0.15"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"type": "module",
"main": "./dist/index.js",
"types": "./src/index.ts",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "vitest run --passWithNoTests",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"type": "module",
"main": "./dist/index.js",
"types": "./src/index.ts",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "vitest run --passWithNoTests",
Expand Down
2 changes: 1 addition & 1 deletion packages/stellar-sdk-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"type": "module",
"main": "./dist/index.js",
"types": "./src/index.ts",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "vitest run --passWithNoTests",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions scripts/build-vercel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ esbuild "$ROOT/packages/api-core/src/index.ts" \
--bundle --platform=node --format=esm --packages=external \
--outfile="$ROOT/packages/api-core/dist/index.js"

# esbuild above only emits JS; package.json#types now points at
# dist/index.d.ts, so generate that too.
echo "▶ Emitting type declarations for Vercel's function build…"
tsc --project "$ROOT/packages/shared/tsconfig.json" --emitDeclarationOnly
tsc --project "$ROOT/packages/stellar-sdk-helpers/tsconfig.json" --emitDeclarationOnly
tsc --project "$ROOT/packages/api-core/tsconfig.json" --emitDeclarationOnly

echo "▶ Cleaning output directory…"
rm -rf "$OUT"
mkdir -p "$OUT"
Expand Down
Loading