diff --git a/package.json b/package.json index fe25eec..f33fa20 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "tsc -d", "prepublishOnly": "npm run build && npm run test", "format": "prettier --write '{src,test}/**/*'", - "test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register test/**/*" + "test": "mocha --require ts-node/register test/**/*" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index 4406ff3..240f8e7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compileOnSave": false, "compilerOptions": { - "module": "ES6", + "module": "commonjs", "moduleResolution": "node", "target": "ES5", "sourceMap": true,