From 1997d5c92b3dbc0ae36daba26dc7be1c528544d2 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 17 Jan 2026 18:34:22 -0500 Subject: [PATCH] Update .gitignore, next-env.d.ts, and package.json for improved build management and dependency handling This commit adds Rust build artifacts to .gitignore, updates the import path in next-env.d.ts for better type resolution, and introduces new scripts in package.json for cleaning Rust build artifacts and pre-build processes. Additionally, it includes a new dependency '@fasttify/liquid-forge-native' in next.config.ts and updates the files section in the liquid-forge-native package.json to include '*.node'. --- .gitignore | 5 +++++ next-env.d.ts | 2 +- next.config.ts | 1 + package.json | 5 ++++- packages/liquid-forge-native/package.json | 3 ++- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8050ff34..8949b310 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,11 @@ # production /build +# Rust build artifacts +**/target/ +**/*.rs.bk +*.pdb + # misc .DS_Store *.pem diff --git a/next-env.d.ts b/next-env.d.ts index c4b7818f..9edff1c7 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/dev/types/routes.d.ts"; +import "./.next/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/next.config.ts b/next.config.ts index 90ec17d3..925a5a14 100644 --- a/next.config.ts +++ b/next.config.ts @@ -21,6 +21,7 @@ const nextConfig: NextConfig = { '@aws-sdk/client-s3', '@aws-sdk/client-ses', '@aws-sdk/s3-request-presigner', + '@fasttify/liquid-forge-native', 'dotenv', 'axios', 'node-fetch', diff --git a/package.json b/package.json index dc3eec96..d49dd2ca 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,8 @@ "template-sync": "node scripts/template-sync.js", "type-check": "tsc --noEmit", "type-check:fast": "tsc --noEmit --skipLibCheck", + "clean:rust": "rm -rf packages/liquid-forge-native/target packages/liquid-forge-native/src packages/liquid-forge-native/benches packages/liquid-forge-native/.cargo", + "prebuild": "pnpm run clean:rust", "build:fast": "next build --turbopack", "build:full": "pnpm run type-check && pnpm run build:fast", "workspace:install": "pnpm install --workspaces", @@ -50,7 +52,8 @@ "sandbox:logs": "npx ampx logs", "upload-template": "node scripts/upload-base-template.js", "license": "node scripts/add-license-header.js", - "license:check": "node scripts/check-license-header.js" + "license:check": "node scripts/check-license-header.js", + "check-build-size": "node scripts/check-build-size.js" }, "lint-staged": { "*.{js,jsx,ts,tsx,json,css,scss,md}": [ diff --git a/packages/liquid-forge-native/package.json b/packages/liquid-forge-native/package.json index 54761ef8..a98f0b00 100644 --- a/packages/liquid-forge-native/package.json +++ b/packages/liquid-forge-native/package.json @@ -41,7 +41,8 @@ }, "files": [ "index.js", - "index.d.ts" + "index.d.ts", + "*.node" ] }