Skip to content

Commit

Permalink
feat: export UMD bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Jun 29, 2018
1 parent 70d90c1 commit 2d98da2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -3,6 +3,8 @@
"version": "0.0.0-semantically-released",
"description": "Simple and complete DOM testing utilities that encourage good testing practices.",
"main": "dist/index.js",
"umd:main": "dist/dom-testing-library.umd.js",
"source": "src/index.js",
"typings": "typings",
"keywords": [
"testing",
Expand All @@ -22,7 +24,7 @@
},
"scripts": {
"add-contributor": "kcd-scripts contributors add",
"build": "kcd-scripts build",
"build": "kcd-scripts build && kcd-scripts build --bundle umd --no-clean",
"lint": "kcd-scripts lint",
"test": "kcd-scripts test",
"test:update": "npm test -- --updateSnapshot --coverage",
Expand All @@ -45,7 +47,8 @@
"devDependencies": {
"dtslint": "^0.3.0",
"jest-in-case": "^1.0.2",
"kcd-scripts": "^0.37.0"
"kcd-scripts": "^0.37.0",
"microbundle": "^0.4.4"
},
"eslintConfig": {
"extends": "./node_modules/kcd-scripts/eslint.js",
Expand Down
5 changes: 5 additions & 0 deletions rollup.config.js
@@ -0,0 +1,5 @@
const rollupConfig = require('kcd-scripts/dist/config/rollup.config')

// the exports in this library should always be named for all formats.
rollupConfig.output[0].exports = 'named'
module.exports = rollupConfig

0 comments on commit 2d98da2

Please sign in to comment.