From 5d5513d2649e10b764efd7fc29c849c42a5a322c Mon Sep 17 00:00:00 2001 From: calebboyd Date: Sun, 2 Apr 2023 12:02:35 -0500 Subject: [PATCH] refactor: compile with esmoudle interop --- src/options.ts | 2 +- src/steps/resource.ts | 2 +- tsconfig.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/options.ts b/src/options.ts index 00182f2..230dbb2 100644 --- a/src/options.ts +++ b/src/options.ts @@ -1,4 +1,4 @@ -import * as parseArgv from 'minimist' +import parseArgv from 'minimist' import { NexeCompiler, NexeError } from './compiler' import { isWindows, STDIN_FLAG } from './util' import { basename, extname, join, isAbsolute, resolve } from 'path' diff --git a/src/steps/resource.ts b/src/steps/resource.ts index b50377a..91e6f98 100644 --- a/src/steps/resource.ts +++ b/src/steps/resource.ts @@ -1,5 +1,5 @@ import { each } from '../util' -import * as globs from 'globby' +import globs from 'globby' import { resolve } from 'path' import { NexeCompiler } from '../compiler' diff --git a/tsconfig.json b/tsconfig.json index 5011d28..8735c77 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target":"es2015", "skipLibCheck": true, "experimentalDecorators": true, + "esModuleInterop": true, "lib": ["es2018"], "module": "commonjs", "outDir": "./lib",