@nx/workspace 20.0.0-beta.1 → 20.0.0-canary.20240925-6182d20
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/workspace",
|
3
|
-
"version": "20.0.0-
|
3
|
+
"version": "20.0.0-canary.20240925-6182d20",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
|
6
6
|
"repository": {
|
@@ -61,13 +61,13 @@
|
|
61
61
|
}
|
62
62
|
},
|
63
63
|
"dependencies": {
|
64
|
-
"@nx/devkit": "20.0.0-
|
64
|
+
"@nx/devkit": "20.0.0-canary.20240925-6182d20",
|
65
65
|
"chalk": "^4.1.0",
|
66
66
|
"enquirer": "~2.3.6",
|
67
67
|
"tslib": "^2.3.0",
|
68
68
|
"yargs-parser": "21.1.1",
|
69
|
-
"nx": "20.0.0-
|
70
|
-
"@nrwl/workspace": "20.0.0-
|
69
|
+
"nx": "20.0.0-canary.20240925-6182d20",
|
70
|
+
"@nrwl/workspace": "20.0.0-canary.20240925-6182d20"
|
71
71
|
},
|
72
72
|
"publishConfig": {
|
73
73
|
"access": "public"
|
@@ -20,6 +20,7 @@ async function newGenerator(tree, opts) {
|
|
20
20
|
(0, child_process_1.execSync)(pmc.preInstall, {
|
21
21
|
cwd: (0, devkit_1.joinPathFragments)(tree.root, options.directory),
|
22
22
|
stdio: process.env.NX_GENERATE_QUIET === 'true' ? 'ignore' : 'inherit',
|
23
|
+
windowsHide: true,
|
23
24
|
});
|
24
25
|
}
|
25
26
|
(0, devkit_1.installPackagesTask)(tree, false, options.directory, options.packageManager);
|
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNpmPackageVersion = getNpmPackageVersion;
|
4
4
|
function getNpmPackageVersion(packageName, packageVersion) {
|
5
5
|
try {
|
6
|
-
const version = require('child_process').execSync(`npm view ${packageName}${packageVersion ? '@' + packageVersion : ''} version --json`, {
|
6
|
+
const version = require('child_process').execSync(`npm view ${packageName}${packageVersion ? '@' + packageVersion : ''} version --json`, {
|
7
|
+
stdio: ['pipe', 'pipe', 'ignore'],
|
8
|
+
windowsHide: true,
|
9
|
+
});
|
7
10
|
if (version) {
|
8
11
|
// package@1.12 => ["1.12.0", "1.12.1"]
|
9
12
|
// package@1.12.1 => "1.12.1"
|
@@ -5,8 +5,11 @@ const child_process_1 = require("child_process");
|
|
5
5
|
function deduceDefaultBase() {
|
6
6
|
const nxDefaultBase = 'main';
|
7
7
|
try {
|
8
|
-
return ((0, child_process_1.execSync)('git config --get init.defaultBranch'
|
9
|
-
|
8
|
+
return ((0, child_process_1.execSync)('git config --get init.defaultBranch', {
|
9
|
+
windowsHide: true,
|
10
|
+
})
|
11
|
+
.toString()
|
12
|
+
.trim() || nxDefaultBase);
|
10
13
|
}
|
11
14
|
catch {
|
12
15
|
return nxDefaultBase;
|