-
Notifications
You must be signed in to change notification settings - Fork 13
/
ship.config.mjs
26 lines (25 loc) · 789 Bytes
/
ship.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { writeFileSync } from 'fs'
import { resolve } from 'path'
export default {
monorepo: {
mainVersionFile: 'package.json',
packagesToBump: ['packages/*'],
packagesToPublish: [
'packages/upload-client',
'packages/rest-client',
'packages/signed-uploads',
'packages/image-shrink'
]
},
publishCommand: ({ defaultCommand }) => `${defaultCommand} --access public`,
versionUpdated: ({ version, dir }) => {
const packages = ['upload-client', 'rest-client', 'api-client-utils']
const versionPaths = packages.map((p) =>
resolve(dir, 'packages', p, 'src/version.ts')
)
for (const versionPath of versionPaths) {
writeFileSync(versionPath, `export default '${version}'\n`)
}
},
pullRequestReviewers: ['nd0ut']
}