From a475e24473555d4feec7ed01b55f1c8c35fd6571 Mon Sep 17 00:00:00 2001 From: ZHAO Jinxiang Date: Sun, 7 Apr 2019 23:11:24 +0800 Subject: [PATCH] change NODE_ENV and PUBLIC_URL into readonly --- packages/react-scripts/lib/react-app.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/lib/react-app.d.ts b/packages/react-scripts/lib/react-app.d.ts index e384accba5b..8e1752555a7 100644 --- a/packages/react-scripts/lib/react-app.d.ts +++ b/packages/react-scripts/lib/react-app.d.ts @@ -4,8 +4,8 @@ declare namespace NodeJS { interface ProcessEnv { - NODE_ENV: 'development' | 'production' | 'test'; - PUBLIC_URL: string; + readonly NODE_ENV: 'development' | 'production' | 'test'; + readonly PUBLIC_URL: string; } }