Skip to content

Commit

Permalink
expose main with .cjs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstormtaylor committed Dec 19, 2019
1 parent cb57265 commit 739f285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 739f285

Please sign in to comment.