From 69a7f446c9ae4603ae1923c6698d80fa3ab5fd3f Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Thu, 27 Aug 2020 17:37:17 -0500 Subject: [PATCH] Updated build script --- examples/with-react-intl/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-react-intl/package.json b/examples/with-react-intl/package.json index 54c6525ccdee9..73e90e87c2ec1 100644 --- a/examples/with-react-intl/package.json +++ b/examples/with-react-intl/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "scripts": { "dev": "NODE_ICU_DATA=node_modules/full-icu ts-node --project tsconfig.server.json server.ts", - "build": "next build && tsc -p tsconfig.server.json && npm run extract:i18n && npm run compile:i18n", + "build": "npm run extract:i18n && npm run compile:i18n && next build && tsc -p tsconfig.server.json", "extract:i18n": "formatjs extract '{pages,components}/*.{js,ts,tsx}' --format simple --out-file lang/en.json", "compile:i18n": "formatjs compile-folder --ast --format simple lang/ compiled-lang/", "start": "NODE_ENV=production NODE_ICU_DATA=node_modules/full-icu node dist/server"