From 739f285fcf2b9af0f3c0de9d74a4c919c0a59baa Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Thu, 19 Dec 2019 12:11:55 -0500 Subject: [PATCH] expose main with `.cjs` extension --- config/rollup-cjs.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/rollup-cjs.js b/config/rollup-cjs.js index 29e59f5e..490051d1 100644 --- a/config/rollup-cjs.js +++ b/config/rollup-cjs.js @@ -1,7 +1,7 @@ import config from './rollup' config.output = { - file: './lib/index.js', + file: './lib/index.cjs', format: 'cjs', name: 'Superstruct', sourcemap: true, diff --git a/package.json b/package.json index be2f0901..67adf376 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "repository": "git://github.com/ianstormtaylor/superstruct.git", "source": "./src/index.ts", "types": "./lib/index.d.ts", - "main": "./lib/index.js", + "main": "./lib/index.cjs", "module": "./lib/index.es.js", "files": [ "umd",