From 48af797aba6f043eada05ad9b8b4227dd0e795cf Mon Sep 17 00:00:00 2001 From: Kamil Kuczmera Date: Wed, 5 Jun 2024 11:42:35 +0200 Subject: [PATCH] fix: Fix exports in VueFileHandler and GraphqlFileHandler --- src/VueFileHandler.ts | 2 -- src/graphql/GraphqlFileHandler.ts | 2 -- test/VueFileHandler.test.ts | 2 +- test/graphql/GraphqlFileHandler.test.ts | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/VueFileHandler.ts b/src/VueFileHandler.ts index 350e2a0..31afe53 100644 --- a/src/VueFileHandler.ts +++ b/src/VueFileHandler.ts @@ -125,5 +125,3 @@ export class VueFileHandler { fs.writeFileSync(newFile, newFileContent!); } } - -export default VueFileHandler; diff --git a/src/graphql/GraphqlFileHandler.ts b/src/graphql/GraphqlFileHandler.ts index 9242052..15d3f58 100644 --- a/src/graphql/GraphqlFileHandler.ts +++ b/src/graphql/GraphqlFileHandler.ts @@ -112,5 +112,3 @@ export class GraphqlFileHandler { fs.writeFileSync(newFile, newFileContent!); } } - -export default GraphqlFileHandler; diff --git a/test/VueFileHandler.test.ts b/test/VueFileHandler.test.ts index aca73f3..83b2086 100644 --- a/test/VueFileHandler.test.ts +++ b/test/VueFileHandler.test.ts @@ -1,7 +1,7 @@ import fs from 'fs'; import path from 'path'; import temp from 'temp'; -import VueFileHandler from '../src/VueFileHandler'; +import { VueFileHandler } from '../src/VueFileHandler'; temp.track(); // Automatically track and clean up files at exit diff --git a/test/graphql/GraphqlFileHandler.test.ts b/test/graphql/GraphqlFileHandler.test.ts index 935deea..e26a997 100644 --- a/test/graphql/GraphqlFileHandler.test.ts +++ b/test/graphql/GraphqlFileHandler.test.ts @@ -1,7 +1,7 @@ import fs from 'fs'; import path from 'path'; import temp from 'temp'; -import GraphqlFileHandler from '../../src/graphql/GraphqlFileHandler'; +import { GraphqlFileHandler } from '../../src/graphql/GraphqlFileHandler'; temp.track(); // Automatically track and clean up files at exit