We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2253d9e commit c8274e2Copy full SHA for c8274e2
ship.config.js
@@ -5,11 +5,16 @@ const packages = JSON.parse(
5
silent: true,
6
})
7
);
8
-const changedPackages = JSON.parse(
9
- shell.exec('yarn run --silent lerna list --toposort --json', {
10
- silent: true,
11
- })
12
-);
+const changedPackages = packages
+ .map((package) => ({
+ ...package,
+ isPublished: Boolean(
+ shell.exec(`git tag -l ${package.name}@${package.version}`, {
13
+ silent: true,
14
+ }).stdout
15
+ ),
16
+ }))
17
+ .filter(({ isPublished }) => !isPublished);
18
19
module.exports = {
20
shouldPrepare: () => {
0 commit comments