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

Commit abd2316

Browse files
committed
fix: be compatible with CommonJS
1 parent f03037e commit abd2316

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

packages/shipit-cli/src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export { default } from './Shipit'
1+
import Shipit from './Shipit'
2+
3+
module.exports = Shipit

packages/shipit-deploy/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import deploy from './tasks/deploy'
22
import rollback from './tasks/rollback'
33
import pending from './tasks/pending'
44

5-
export default shipit => {
5+
module.exports = shipit => {
66
deploy(shipit)
77
rollback(shipit)
88
pending(shipit)

packages/ssh-pool/src/index.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
export { default as Connection } from './Connection'
2-
export { default as ConnectionPool } from './ConnectionPool'
3-
export { exec } from './util'
4-
export { isRsyncSupported } from './commands/rsync'
1+
import Connection from './Connection'
2+
import ConnectionPool from './ConnectionPool'
3+
import { exec } from './util'
4+
import { isRsyncSupported } from './commands/rsync'
5+
6+
exports.Connection = Connection
7+
exports.ConnectionPool = ConnectionPool
8+
exports.exec = exec
9+
exports.isRsyncSupported = isRsyncSupported

0 commit comments

Comments
 (0)