diff --git a/package.json b/package.json index 46c6452..a6d15d1 100755 --- a/package.json +++ b/package.json @@ -68,7 +68,11 @@ "jest": { "transform": { "\\.ts$": "ts-jest" - } + }, + "testPathIgnorePatterns": [ + "/node_modules/", + "/dist/" + ] }, "browserslist": [ "node 16" diff --git a/src/index.test.ts b/src/index.test.ts index 25ed4f3..6c5b961 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1,4 +1,4 @@ -import { parseMSKLC } from './index'; +import parseMSKLC from './index'; describe('parseMSKLC', () => { it('should parse a layout', () => { diff --git a/src/index.ts b/src/index.ts index e71b098..a993baa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { Layout, reset, handle } from './handlers'; -export function parseMSKLC(layout: string) { +export default function parseMSKLC(layout: string) { reset(); const result: Partial = {}; @@ -11,5 +11,3 @@ export function parseMSKLC(layout: string) { return result; } - -export default parseMSKLC; diff --git a/tsconfig.json b/tsconfig.json index f7a146d..694b97e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "rootDir": "src", "outDir": "dist", "target": "es2022", - "module": "es2020", + "module": "commonjs", "moduleResolution": "node16", "importHelpers": true, "downlevelIteration": true,