From 4a7b48011171bae9f38e51888334b51c3bfc8bc6 Mon Sep 17 00:00:00 2001 From: Anders Date: Tue, 10 Jan 2023 15:48:18 +0100 Subject: [PATCH] chore: deprecate asset extractors configs (#1887) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: deprecate asset extractors configs * chore: provide fallbacks for env lists Co-authored-by: Tobias Høegh --- .../scripts/figma/tasks/assetsExtractors.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/dnb-eufemia/scripts/figma/tasks/assetsExtractors.js b/packages/dnb-eufemia/scripts/figma/tasks/assetsExtractors.js index a29cd3e42e8..7005c73e47a 100644 --- a/packages/dnb-eufemia/scripts/figma/tasks/assetsExtractors.js +++ b/packages/dnb-eufemia/scripts/figma/tasks/assetsExtractors.js @@ -57,18 +57,8 @@ export function IconsConfig(overwrite = {}) { 'calendar', ] - const iconRenameList = process.env.FIGMA_ICONS_RENAME_LIST || [ - { from: 'checkmark', to: 'check' }, // deprecated, can be removed in next minor versjon - { from: 'repeat', to: 'refresh' }, // deprecated, can be removed in next minor versjon - { from: 'document', to: 'file' }, // deprecated, can be removed in next minor versjon - { from: 'more_horizontal', to: 'more' }, // deprecated, can be removed in next minor versjon - ] - - const iconCloneList = process.env.FIGMA_ICONS_CLONE_LIST || [ - // As of now, we only clone these icons - { from: 'document', to: 'file' }, // deprecated, can be removed in next minor versjon - ] - + const iconRenameList = process.env.FIGMA_ICONS_RENAME_LIST || [] + const iconCloneList = process.env.FIGMA_ICONS_CLONE_LIST || [] const canvasNameSelector = process.env.FIGMA_ICONS_PAGE_SELECTOR || /^Icons$/ // before we have used: ^[0-9]+[_\- ]Icons$ const frameNameSelector =