From 154f8b14c9eff6071b7b4966b01bff397d4d8940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Sun, 7 Oct 2018 12:20:27 +0200 Subject: [PATCH] Output commonjs modules --- package.json | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,