@ontrails/trails 1.0.0-beta.22 → 1.0.0-beta.23
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.
- package/CHANGELOG.md +20 -0
- package/package.json +14 -14
- package/src/release/check.ts +14 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# trails
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7c037a0: Allow `trails release check` to pass as a no-op in generated single-package apps
|
|
8
|
+
that do not declare package workspaces.
|
|
9
|
+
- Updated dependencies [9c5ecdc]
|
|
10
|
+
- @ontrails/http@1.0.0-beta.23
|
|
11
|
+
- @ontrails/commander@1.0.0-beta.23
|
|
12
|
+
- @ontrails/adapter-kit@1.0.0-beta.23
|
|
13
|
+
- @ontrails/cli@1.0.0-beta.23
|
|
14
|
+
- @ontrails/core@1.0.0-beta.23
|
|
15
|
+
- @ontrails/mcp@1.0.0-beta.23
|
|
16
|
+
- @ontrails/observe@1.0.0-beta.23
|
|
17
|
+
- @ontrails/permits@1.0.0-beta.23
|
|
18
|
+
- @ontrails/topographer@1.0.0-beta.23
|
|
19
|
+
- @ontrails/tracing@1.0.0-beta.23
|
|
20
|
+
- @ontrails/warden@1.0.0-beta.23
|
|
21
|
+
- @ontrails/wayfinder@1.0.0-beta.23
|
|
22
|
+
|
|
3
23
|
## 1.0.0-beta.22
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ontrails/trails",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.23",
|
|
4
4
|
"bin": {
|
|
5
5
|
"trails": "./bin/trails.ts"
|
|
6
6
|
},
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@clack/prompts": "^1.1.0",
|
|
30
|
-
"@ontrails/adapter-kit": "^1.0.0-beta.
|
|
31
|
-
"@ontrails/cli": "^1.0.0-beta.
|
|
32
|
-
"@ontrails/commander": "^1.0.0-beta.
|
|
33
|
-
"@ontrails/core": "^1.0.0-beta.
|
|
34
|
-
"@ontrails/http": "^1.0.0-beta.
|
|
35
|
-
"@ontrails/mcp": "^1.0.0-beta.
|
|
36
|
-
"@ontrails/observe": "^1.0.0-beta.
|
|
37
|
-
"@ontrails/permits": "^1.0.0-beta.
|
|
38
|
-
"@ontrails/topographer": "^1.0.0-beta.
|
|
39
|
-
"@ontrails/tracing": "^1.0.0-beta.
|
|
40
|
-
"@ontrails/warden": "^1.0.0-beta.
|
|
41
|
-
"@ontrails/wayfinder": "^1.0.0-beta.
|
|
30
|
+
"@ontrails/adapter-kit": "^1.0.0-beta.23",
|
|
31
|
+
"@ontrails/cli": "^1.0.0-beta.23",
|
|
32
|
+
"@ontrails/commander": "^1.0.0-beta.23",
|
|
33
|
+
"@ontrails/core": "^1.0.0-beta.23",
|
|
34
|
+
"@ontrails/http": "^1.0.0-beta.23",
|
|
35
|
+
"@ontrails/mcp": "^1.0.0-beta.23",
|
|
36
|
+
"@ontrails/observe": "^1.0.0-beta.23",
|
|
37
|
+
"@ontrails/permits": "^1.0.0-beta.23",
|
|
38
|
+
"@ontrails/topographer": "^1.0.0-beta.23",
|
|
39
|
+
"@ontrails/tracing": "^1.0.0-beta.23",
|
|
40
|
+
"@ontrails/warden": "^1.0.0-beta.23",
|
|
41
|
+
"@ontrails/wayfinder": "^1.0.0-beta.23",
|
|
42
42
|
"commander": "^14.0.3",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"zod": "^4.3.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@ontrails/testing": "^1.0.0-beta.
|
|
47
|
+
"@ontrails/testing": "^1.0.0-beta.23"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/release/check.ts
CHANGED
|
@@ -170,7 +170,7 @@ export const discoverWorkspaces = async (
|
|
|
170
170
|
const root = await readJson<PackageJson>(join(repoRoot, 'package.json'));
|
|
171
171
|
|
|
172
172
|
if (!root.workspaces || root.workspaces.length === 0) {
|
|
173
|
-
|
|
173
|
+
return [];
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
const dirs = await discoverWorkspaceDirs(repoRoot, root.workspaces);
|
|
@@ -756,9 +756,19 @@ export const runReleaseCheck = async (
|
|
|
756
756
|
const baseRef =
|
|
757
757
|
options.baseRef ??
|
|
758
758
|
(options.changedFilesPath === undefined ? 'origin/main' : undefined);
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
759
|
+
let changedFiles: readonly string[];
|
|
760
|
+
|
|
761
|
+
if (options.changedFilesPath !== undefined) {
|
|
762
|
+
changedFiles = readChangedFiles(options.changedFilesPath);
|
|
763
|
+
} else if (workspaces.length > 0) {
|
|
764
|
+
changedFiles = readLocalChangedFiles(
|
|
765
|
+
options.repoRoot,
|
|
766
|
+
baseRef ?? 'origin/main'
|
|
767
|
+
);
|
|
768
|
+
} else {
|
|
769
|
+
changedFiles = [];
|
|
770
|
+
}
|
|
771
|
+
|
|
762
772
|
const loadedConfig = await loadReleaseConfig({
|
|
763
773
|
...(options.configPath === undefined
|
|
764
774
|
? {}
|