diff --git a/jest.config.mjs b/jest.config.mjs index d21b03b..81b0d58 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -1,14 +1,10 @@ export default { - extensionsToTreatAsEsm: ['.ts'], moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1', }, transform: { '^.+\\.[tj]s$': [ 'ts-jest', - { - useESM: true, - }, ], }, testMatch: ['/src/**/__tests__/*.spec.ts'], diff --git a/package.json b/package.json index 2ca7cd8..a6d8cb5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "url": "https://github.com/stoplightio/path" }, "license": "Apache-2.0", - "type": "module", + "type": "commonjs", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", @@ -44,7 +44,7 @@ "test.prod": "yarn lint && yarn test --coverage --maxWorkers=2", "test.update": "yarn test --updateSnapshot", "test.watch": "yarn test --watch", - "yalc": "yarn build && (cd dist && yalc push)", + "yalc": "yarn build && yalc push", "yalc.watch": "nodemon --watch 'src/**/*' --exec 'yarn yalc'" }, "peerDependencies": {},