From f7cf61784609ecc0fdecad933aa7208e6fcc50ae Mon Sep 17 00:00:00 2001 From: Garrett Nay Date: Fri, 22 Sep 2017 11:16:00 -0600 Subject: [PATCH] fix(esm): fix path to ES module --- other/__tests__/build.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/other/__tests__/build.js b/other/__tests__/build.js index d8c81aa97..bad027812 100644 --- a/other/__tests__/build.js +++ b/other/__tests__/build.js @@ -11,7 +11,7 @@ */ import assert from 'assert' -import esImport from '../../dist/downshift.es' +import esImport from '../../dist/downshift.esm' import cjsImport from '../../' // picks up the main from package.json diff --git a/package.json b/package.json index a8648a29c..b303a0e93 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete components", "main": "dist/downshift.cjs.js", - "jsnext:main": "dist/downshift.es.js", - "module": "dist/downshift.es.js", + "jsnext:main": "dist/downshift.esm.js", + "module": "dist/downshift.esm.js", "typings": "typings/index.d.ts", "scripts": { "add-contributor": "kcd-scripts contributors add",