From 7900eaf5c8568edf2557810355544f49a064dd65 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 9 Nov 2017 13:30:41 +0000 Subject: [PATCH] fix(build): ensure node uses umd build --- package.json | 2 +- rollup.conf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 224362e..8c33bf4 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "index.js", "type-detect.js" ], - "main": "./index.js", + "main": "./type-detect.js", "repository": { "type": "git", "url": "git+ssh://git@github.com/chaijs/type-detect.git" diff --git a/rollup.conf.js b/rollup.conf.js index 637968d..fe448b8 100644 --- a/rollup.conf.js +++ b/rollup.conf.js @@ -14,7 +14,7 @@ export default { output: { file: env === 'test' ? 'type-detect.test.js' : 'type-detect.js', name: 'typeDetect', - format: 'iife', + format: 'umd', }, plugins, };