Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #181 from shipitjs/fix-all-exports
Browse files Browse the repository at this point in the history
fix: be compatible with CommonJS
  • Loading branch information
gregberge authored Mar 25, 2018
2 parents f03037e + abd2316 commit 0ef31d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion packages/shipit-cli/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export { default } from './Shipit'
import Shipit from './Shipit'

module.exports = Shipit
2 changes: 1 addition & 1 deletion packages/shipit-deploy/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import deploy from './tasks/deploy'
import rollback from './tasks/rollback'
import pending from './tasks/pending'

export default shipit => {
module.exports = shipit => {
deploy(shipit)
rollback(shipit)
pending(shipit)
Expand Down
13 changes: 9 additions & 4 deletions packages/ssh-pool/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export { default as Connection } from './Connection'
export { default as ConnectionPool } from './ConnectionPool'
export { exec } from './util'
export { isRsyncSupported } from './commands/rsync'
import Connection from './Connection'
import ConnectionPool from './ConnectionPool'
import { exec } from './util'
import { isRsyncSupported } from './commands/rsync'

exports.Connection = Connection
exports.ConnectionPool = ConnectionPool
exports.exec = exec
exports.isRsyncSupported = isRsyncSupported

0 comments on commit 0ef31d6

Please sign in to comment.