beachball 2.55.0 → 2.55.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepoOptions.d.ts","sourceRoot":"","sources":["../../src/options/getRepoOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAoB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"getRepoOptions.d.ts","sourceRoot":"","sources":["../../src/options/getRepoOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAoB,MAAM,2BAA2B,CAAC;AAK3F,wBAAgB,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAoD3E"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.getRepoOptions = void 0;
|
|
4
7
|
const cosmiconfig_1 = require("cosmiconfig");
|
|
5
8
|
const workspace_tools_1 = require("workspace-tools");
|
|
6
9
|
const env_1 = require("../env");
|
|
10
|
+
const path_1 = __importDefault(require("path"));
|
|
7
11
|
const cachedRepoOptions = new Map();
|
|
8
12
|
function getRepoOptions(cliOptions) {
|
|
9
13
|
const { configPath, path: cwd, branch } = cliOptions;
|
|
@@ -11,7 +15,22 @@ function getRepoOptions(cliOptions) {
|
|
|
11
15
|
return cachedRepoOptions.get(cliOptions);
|
|
12
16
|
}
|
|
13
17
|
let repoOptions;
|
|
14
|
-
|
|
18
|
+
let rootDir;
|
|
19
|
+
try {
|
|
20
|
+
rootDir = (0, workspace_tools_1.findGitRoot)(cwd);
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
rootDir = path_1.default.parse(cwd).root;
|
|
24
|
+
}
|
|
25
|
+
const configExplorer = (0, cosmiconfig_1.cosmiconfigSync)('beachball', {
|
|
26
|
+
cache: false,
|
|
27
|
+
// cosmiconfig v9 doesn't search up by default. To preserve most of the old behavior plus
|
|
28
|
+
// some of the efficiency gains, search up to the git root (if available, since realistically
|
|
29
|
+
// this is the farthest up that a config file is likely to be) or fall back to searching up
|
|
30
|
+
// to the filesystem root (probably the old behavior).
|
|
31
|
+
stopDir: rootDir,
|
|
32
|
+
searchStrategy: 'global',
|
|
33
|
+
});
|
|
15
34
|
if (configPath) {
|
|
16
35
|
repoOptions = configExplorer.load(configPath)?.config;
|
|
17
36
|
if (!repoOptions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepoOptions.js","sourceRoot":"","sources":["../../src/options/getRepoOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getRepoOptions.js","sourceRoot":"","sources":["../../src/options/getRepoOptions.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA8C;AAC9C,qDAAsE;AACtE,gCAA6B;AAE7B,gDAAwB;AAExB,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAoC,CAAC;AAEtE,SAAgB,cAAc,CAAC,UAAsB;IACnD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;IACrD,IAAI,CAAC,SAAG,CAAC,qBAAqB,IAAI,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;QACnE,OAAO,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAE,CAAC;KAC3C;IAED,IAAI,WAAoD,CAAC;IAEzD,IAAI,OAAe,CAAC;IACpB,IAAI;QACF,OAAO,GAAG,IAAA,6BAAW,EAAC,GAAG,CAAC,CAAC;KAC5B;IAAC,MAAM;QACN,OAAO,GAAG,cAAI,CAAC,KAAK,CAAC,GAAG,CAAC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}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beachball",
|
|
3
|
-
"version": "2.55.
|
|
3
|
+
"version": "2.55.1",
|
|
4
4
|
"description": "The Sunniest Semantic Version Bumper",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"cosmiconfig": "^
|
|
50
|
+
"cosmiconfig": "^9.0.0",
|
|
51
51
|
"execa": "^5.0.0",
|
|
52
52
|
"fs-extra": "^11.1.1",
|
|
53
53
|
"lodash": "^4.17.15",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"prettier": "~2.8.4",
|
|
81
81
|
"strip-ansi": "^6.0.1",
|
|
82
82
|
"tmp": "^0.2.1",
|
|
83
|
-
"ts-jest": "
|
|
83
|
+
"ts-jest": "29.2.6",
|
|
84
84
|
"typescript": "~5.2.0",
|
|
85
85
|
"verdaccio": "5.29.2",
|
|
86
86
|
"verdaccio-auth-memory": "^10.2.0",
|
|
@@ -88,5 +88,10 @@
|
|
|
88
88
|
},
|
|
89
89
|
"resolutions": {
|
|
90
90
|
"@types/node": "^14.0.0"
|
|
91
|
+
},
|
|
92
|
+
"rationale": {
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"ts-jest@29.2.6": "29.3.0 introduces type-fest v4 which requires node 16+"
|
|
95
|
+
}
|
|
91
96
|
}
|
|
92
97
|
}
|