From 12160bfc72c04d4d46005c3f6aa7e9c064da79a9 Mon Sep 17 00:00:00 2001 From: Brian Cooper Date: Tue, 5 Dec 2023 14:56:19 -0500 Subject: [PATCH] format and import fix --- components/src/index.ts | 1 + components/src/legacy-hardware-sim/index.ts | 1 - components/webpack.config.js | 2 +- protocol-designer/src/labware-defs/utils.ts | 2 +- protocol-library-kludge/src/URLDeck.tsx | 3 ++- shared-data/webpack.config.js | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/src/index.ts b/components/src/index.ts index 29dcc9fb771..48d718aad19 100644 --- a/components/src/index.ts +++ b/components/src/index.ts @@ -9,6 +9,7 @@ export * from './alerts' export * from './buttons' export * from './controls' export * from './hardware-sim' +export * from './legacy-hardware-sim' export * from './forms' export * from './icons' export * from './images' diff --git a/components/src/legacy-hardware-sim/index.ts b/components/src/legacy-hardware-sim/index.ts index 7caf9ec14f5..0f915451971 100644 --- a/components/src/legacy-hardware-sim/index.ts +++ b/components/src/legacy-hardware-sim/index.ts @@ -1,3 +1,2 @@ -export * from './constants' export * from './LabwareNameOverlay' export * from './ModuleItem' // legacy App module rendering diff --git a/components/webpack.config.js b/components/webpack.config.js index 5c6e6c1a25e..74bcc0c6ff5 100644 --- a/components/webpack.config.js +++ b/components/webpack.config.js @@ -14,6 +14,6 @@ module.exports = async () => path: OUTPUT_PATH, filename: 'opentrons-components.js', library: '@opentrons/components', - libraryTarget: 'umd' + libraryTarget: 'umd', }, }) diff --git a/protocol-designer/src/labware-defs/utils.ts b/protocol-designer/src/labware-defs/utils.ts index d7dbe8cb71f..f299e9e5a0d 100644 --- a/protocol-designer/src/labware-defs/utils.ts +++ b/protocol-designer/src/labware-defs/utils.ts @@ -2,11 +2,11 @@ import groupBy from 'lodash/groupBy' import { getLabwareDefURI, PD_DO_NOT_LIST, + LabwareDefinition1, LabwareDefinition2, } from '@opentrons/shared-data' import { LabwareDefByDefURI } from './types' - // require all definitions in the labware/definitions/1 directory // require.context is webpack-specific method const labwareSchemaV1DefsContext = require.context( diff --git a/protocol-library-kludge/src/URLDeck.tsx b/protocol-library-kludge/src/URLDeck.tsx index 00553af7fd2..dbfffaf34a7 100644 --- a/protocol-library-kludge/src/URLDeck.tsx +++ b/protocol-library-kludge/src/URLDeck.tsx @@ -79,7 +79,8 @@ export class URLDeck extends React.Component<{}> { if (!slot.matingSurfaceUnitVector) return null // if slot has no mating surface, don't render anything in it const moduleModel = modulesBySlot && modulesBySlot[slotId] const labware = labwareBySlot && labwareBySlot[slotId] - const labwareDefV2 = labware && getLatestLabwareDef(labware.labwareType) + const labwareDefV2 = + labware && getLatestLabwareDef(labware.labwareType) let labwareDisplayType: string | null = null if (labwareDefV2) { labwareDisplayType = labwareDefV2.metadata.displayName diff --git a/shared-data/webpack.config.js b/shared-data/webpack.config.js index 5db3c4873df..7f9dc870132 100644 --- a/shared-data/webpack.config.js +++ b/shared-data/webpack.config.js @@ -15,6 +15,6 @@ module.exports = async () => path: OUTPUT_PATH, filename: 'opentrons-shared-data.js', library: '@opentrons/shared-data', - libraryTarget: 'umd' + libraryTarget: 'umd', }, })