@savvy-web/silk-effects 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -135,7 +135,8 @@ const STATUS_MAP = {
|
|
|
135
135
|
U: "unmerged"
|
|
136
136
|
};
|
|
137
137
|
function statusFromCode(code) {
|
|
138
|
-
|
|
138
|
+
const head = code.charAt(0);
|
|
139
|
+
return STATUS_MAP[head] ?? "unknown";
|
|
139
140
|
}
|
|
140
141
|
/**
|
|
141
142
|
* Parse `git diff --name-status -z` output into one entry per changed file.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk-effects",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Effect library for Silk Suite conventions",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-effects",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"remark-gfm": "^4.0.1",
|
|
41
41
|
"remark-parse": "^11.0.0",
|
|
42
42
|
"remark-stringify": "^11.0.0",
|
|
43
|
-
"semver-effect": "^0.3.
|
|
43
|
+
"semver-effect": "^0.3.1",
|
|
44
44
|
"shell-quote": "^1.9.0",
|
|
45
45
|
"sort-package-json": "^4.0.0",
|
|
46
46
|
"tinyglobby": "^0.2.17",
|
|
47
47
|
"unified": "^11.0.5",
|
|
48
48
|
"unified-lint-rule": "^3.0.1",
|
|
49
49
|
"unist-util-visit": "^5.1.0",
|
|
50
|
-
"workspaces-effect": "^2.0.
|
|
50
|
+
"workspaces-effect": "^2.0.1",
|
|
51
51
|
"yaml": "^2.9.0",
|
|
52
52
|
"yaml-effect": "^0.7.0",
|
|
53
53
|
"yaml-lint": "^1.7.0"
|
|
@@ -126,7 +126,10 @@ var SilkPublishability = class {
|
|
|
126
126
|
const fs = yield* FileSystem.FileSystem;
|
|
127
127
|
const targets = yield* detector.detect(pkg, root);
|
|
128
128
|
const kept = [];
|
|
129
|
-
for (const t of targets)
|
|
129
|
+
for (const t of targets) {
|
|
130
|
+
const dir = isAbsolute(t.directory) ? t.directory : join(pkg.path, t.directory);
|
|
131
|
+
if (!(yield* isTargetPrivate(fs, dir))) kept.push(t);
|
|
132
|
+
}
|
|
130
133
|
return kept;
|
|
131
134
|
});
|
|
132
135
|
}
|