workspace-tools 0.19.4 → 0.20.0
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.json +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/paths.d.ts +0 -4
- package/lib/paths.js +1 -12
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "workspace-tools",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Thu, 23 Jun 2022
|
|
5
|
+
"date": "Thu, 23 Jun 2022 20:24:10 GMT",
|
|
6
|
+
"tag": "workspace-tools_v0.20.0",
|
|
7
|
+
"version": "0.20.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "elcraig@microsoft.com",
|
|
12
|
+
"package": "workspace-tools",
|
|
13
|
+
"comment": "BREAKING: Remove getChangePath because it's specific to beachball and should be defined there",
|
|
14
|
+
"commit": "bbfc44143e2f2bc0ca17bf5c351bab52fe8c9025"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 23 Jun 2022 19:53:03 GMT",
|
|
6
21
|
"tag": "workspace-tools_v0.19.4",
|
|
7
22
|
"version": "0.19.4",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - workspace-tools
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu, 23 Jun 2022
|
|
3
|
+
This log was last generated on Thu, 23 Jun 2022 20:24:10 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.20.0
|
|
8
|
+
|
|
9
|
+
Thu, 23 Jun 2022 20:24:10 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- BREAKING: Remove getChangePath because it's specific to beachball and should be defined there (elcraig@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.19.4
|
|
8
16
|
|
|
9
|
-
Thu, 23 Jun 2022 19:53:
|
|
17
|
+
Thu, 23 Jun 2022 19:53:03 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/paths.d.ts
CHANGED
|
@@ -15,8 +15,4 @@ export declare function findPackageRoot(cwd: string): string | null;
|
|
|
15
15
|
* falling back to the git root if no workspace is detected.
|
|
16
16
|
*/
|
|
17
17
|
export declare function findProjectRoot(cwd: string): string | null;
|
|
18
|
-
/**
|
|
19
|
-
* Get the folder containing beachball change files.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getChangePath(cwd: string): string | null;
|
|
22
18
|
export declare function isChildOf(child: string, parent: string): boolean;
|
package/lib/paths.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isChildOf = exports.
|
|
6
|
+
exports.isChildOf = exports.findProjectRoot = exports.findPackageRoot = exports.findGitRoot = exports.searchUp = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const getWorkspaceRoot_1 = require("./workspaces/getWorkspaceRoot");
|
|
@@ -53,17 +53,6 @@ function findProjectRoot(cwd) {
|
|
|
53
53
|
return workspaceRoot || findGitRoot(cwd);
|
|
54
54
|
}
|
|
55
55
|
exports.findProjectRoot = findProjectRoot;
|
|
56
|
-
/**
|
|
57
|
-
* Get the folder containing beachball change files.
|
|
58
|
-
*/
|
|
59
|
-
function getChangePath(cwd) {
|
|
60
|
-
const gitRoot = findGitRoot(cwd);
|
|
61
|
-
if (gitRoot) {
|
|
62
|
-
return path_1.default.join(gitRoot, "change");
|
|
63
|
-
}
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
exports.getChangePath = getChangePath;
|
|
67
56
|
function isChildOf(child, parent) {
|
|
68
57
|
const relativePath = path_1.default.relative(child, parent);
|
|
69
58
|
return /^[.\/\\]+$/.test(relativePath);
|