From 3af1a40bcc04b033b1ac9d99effdd5527ca0d837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Mouzin?= Date: Thu, 14 Dec 2023 09:39:52 +0100 Subject: [PATCH] fix: replacing deprecated flag at the end of TypeScript build process page Replacing "npm ci --production" flag by --only=dev because --production has been deprecated --- content/guides/fundamentals/typescript-build-process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/guides/fundamentals/typescript-build-process.md b/content/guides/fundamentals/typescript-build-process.md index 98258f90..8599f04c 100644 --- a/content/guides/fundamentals/typescript-build-process.md +++ b/content/guides/fundamentals/typescript-build-process.md @@ -94,6 +94,6 @@ Creating a standalone `build` folder does help in reducing the size of code that - You must install production-only dependencies inside the `build` folder. ```sh cd build - npm ci --production + npm ci --omit=dev ``` - We do not copy the `.env` file to the output folder. Because the environment variables are not transferable, you must define environment variables for production separately.