From 383c0be59aafe05abb3394ed6adf814f47c7d950 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Sat, 2 Sep 2023 20:32:46 +0200 Subject: [PATCH] refactor(dynamite): restructure package Signed-off-by: Nikolas Rimikis --- packages/dynamite/dynamite/lib/dynamite.dart | 16 ++-------------- .../dynamite/lib/src/openapi_builder.dart | 13 ++++++++++++- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/packages/dynamite/dynamite/lib/dynamite.dart b/packages/dynamite/dynamite/lib/dynamite.dart index 190cddf9..f8fd102e 100644 --- a/packages/dynamite/dynamite/lib/dynamite.dart +++ b/packages/dynamite/dynamite/lib/dynamite.dart @@ -1,16 +1,4 @@ +// ignore: unnecessary_library_directive library dynamite; -import 'dart:convert'; - -import 'package:build/build.dart'; -import 'package:code_builder/code_builder.dart'; -import 'package:collection/collection.dart'; -import 'package:dart_style/dart_style.dart'; -import 'package:dynamite/src/models/open_api.dart'; -import 'package:dynamite/src/models/parameter.dart' as spec_parameter; -import 'package:dynamite/src/models/path_item.dart'; -import 'package:dynamite/src/models/schema.dart'; -import 'package:dynamite/src/type_result/type_result.dart'; -import 'package:path/path.dart' as p; - -part 'src/openapi_builder.dart'; +export 'src/openapi_builder.dart'; diff --git a/packages/dynamite/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/dynamite/lib/src/openapi_builder.dart index 4f6971a3..a2f68439 100644 --- a/packages/dynamite/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/dynamite/lib/src/openapi_builder.dart @@ -1,4 +1,15 @@ -part of '../dynamite.dart'; +import 'dart:convert'; + +import 'package:build/build.dart'; +import 'package:code_builder/code_builder.dart'; +import 'package:collection/collection.dart'; +import 'package:dart_style/dart_style.dart'; +import 'package:dynamite/src/models/open_api.dart'; +import 'package:dynamite/src/models/parameter.dart' as spec_parameter; +import 'package:dynamite/src/models/path_item.dart'; +import 'package:dynamite/src/models/schema.dart'; +import 'package:dynamite/src/type_result/type_result.dart'; +import 'package:path/path.dart' as p; class OpenAPIBuilder implements Builder { @override