Skip to content

Commit

Permalink
chore(deps): upgrades rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lena Stotska committed Jan 10, 2018
1 parent c27ab28 commit 19dfebc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@
"engines": {
"node": ">= 4.0.0"
},
"peerDependencies": {
"chai": "*"
},
"devDependencies": {
"chai": "*",
"mocha": "*",
"rollup": "^0.47.4",
"rollup-plugin-commonjs": "^8.1.0"
"rollup": "^0.53.3",
"rollup-plugin-commonjs": "^8.2.6"
}
}
17 changes: 9 additions & 8 deletions support/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import commonjs from 'rollup-plugin-commonjs';

const MODULE_NAME = '__chaiSpies__'

function injectChaiPresenceCheck() {
function replaceGlobalExportWithChaiUse() {
return {
name: 'chai-presence-check',
name: 'chai-use',

transformBundle(source, options) {
return source.replace(
Expand All @@ -21,13 +21,14 @@ function injectChaiPresenceCheck() {
}

export default {
entry: 'lib/spy.js',
dest: './chai-spies.js',
format: 'umd',
exports: 'default',
moduleName: MODULE_NAME,
input: 'lib/spy.js',
output: {
format: 'umd',
name: MODULE_NAME,
file: './chai-spies.js'
},
plugins: [
commonjs(),
injectChaiPresenceCheck()
replaceGlobalExportWithChaiUse()
]
};

0 comments on commit 19dfebc

Please sign in to comment.