From 4343aebbcec97f9c39c6acd1b405529d25daa1a3 Mon Sep 17 00:00:00 2001 From: Matt Barton Date: Thu, 2 May 2024 11:02:45 +0100 Subject: [PATCH] added missing import --- Contentful-Schema/utils/verify-space-capacity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contentful-Schema/utils/verify-space-capacity.js b/Contentful-Schema/utils/verify-space-capacity.js index 8b0fce41..49afd930 100644 --- a/Contentful-Schema/utils/verify-space-capacity.js +++ b/Contentful-Schema/utils/verify-space-capacity.js @@ -1,12 +1,12 @@ import contentful from 'contentful-management'; import core from '@actions/core'; +import chalk from 'chalk'; +const red = chalk.bold.red; const managementToken = process.env.MANAGEMENT_TOKEN; const spaceId = process.env.SPACE_ID; const spaceCapacity = process.env.SPACE_CAPACITY; -const red = chalk.bold.red; - try { if (!managementToken) throw new Error("Environment variable MANAGEMENT_TOKEN not set"); if (!spaceId) throw new Error("Environment variable SPACE_ID not set");