@nx/plugin 20.0.0-beta.1 → 20.0.0-beta.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/plugin",
|
|
3
|
-
"version": "20.0.0-beta.
|
|
3
|
+
"version": "20.0.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
|
6
6
|
"repository": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"fs-extra": "^11.1.0",
|
|
31
31
|
"tslib": "^2.3.0",
|
|
32
|
-
"@nx/devkit": "20.0.0-beta.
|
|
33
|
-
"@nx/jest": "20.0.0-beta.
|
|
34
|
-
"@nx/js": "20.0.0-beta.
|
|
35
|
-
"@nx/eslint": "20.0.0-beta.
|
|
36
|
-
"@nrwl/nx-plugin": "20.0.0-beta.
|
|
32
|
+
"@nx/devkit": "20.0.0-beta.3",
|
|
33
|
+
"@nx/jest": "20.0.0-beta.3",
|
|
34
|
+
"@nx/js": "20.0.0-beta.3",
|
|
35
|
+
"@nx/eslint": "20.0.0-beta.3",
|
|
36
|
+
"@nrwl/nx-plugin": "20.0.0-beta.3"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
@@ -12,14 +12,17 @@ async function main() {
|
|
|
12
12
|
|
|
13
13
|
// This assumes "<%= preset %>" and "<%= projectName %>" are at the same version
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
15
|
-
const presetVersion = require('../package.json').version
|
|
15
|
+
const presetVersion = require('../package.json').version;
|
|
16
16
|
|
|
17
17
|
// TODO: update below to customize the workspace
|
|
18
|
-
const { directory } = await createWorkspace(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
const { directory } = await createWorkspace(
|
|
19
|
+
`<%= preset %>@${presetVersion}`,
|
|
20
|
+
{
|
|
21
|
+
name,
|
|
22
|
+
nxCloud: 'skip',
|
|
23
|
+
packageManager: 'npm',
|
|
24
|
+
}
|
|
25
|
+
);
|
|
23
26
|
|
|
24
27
|
console.log(`Successfully created the workspace: ${directory}.`);
|
|
25
28
|
}
|
|
@@ -19,6 +19,7 @@ function runCommandAsync(command, opts = {
|
|
|
19
19
|
(0, child_process_1.exec)(command, {
|
|
20
20
|
cwd: opts.cwd ?? (0, paths_1.tmpProjPath)(),
|
|
21
21
|
env: { ...process.env, ...opts.env },
|
|
22
|
+
windowsHide: true,
|
|
22
23
|
}, (err, stdout, stderr) => {
|
|
23
24
|
if (!opts.silenceError && err) {
|
|
24
25
|
reject(err);
|
|
@@ -21,6 +21,7 @@ function runNxCommand(command, opts = {
|
|
|
21
21
|
const execSyncOptions = {
|
|
22
22
|
cwd,
|
|
23
23
|
env: { ...process.env, ...opts.env },
|
|
24
|
+
windowsHide: true,
|
|
24
25
|
};
|
|
25
26
|
if ((0, utils_1.fileExists)((0, paths_1.tmpProjPath)('package.json'))) {
|
|
26
27
|
const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(cwd));
|
|
@@ -17,6 +17,7 @@ function runNxNewCommand(args, silent) {
|
|
|
17
17
|
return (0, child_process_1.execSync)(`node ${require.resolve('nx')} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=apps ${args || ''}`, {
|
|
18
18
|
cwd: localTmpDir,
|
|
19
19
|
...(silent && false ? { stdio: ['ignore', 'ignore', 'ignore'] } : {}),
|
|
20
|
+
windowsHide: true,
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
function patchPackageJsonForPlugin(npmPackageName, distPath) {
|
|
@@ -44,6 +45,7 @@ function runPackageManagerInstall(silent = true) {
|
|
|
44
45
|
const install = (0, child_process_1.execSync)(pmc.install, {
|
|
45
46
|
cwd,
|
|
46
47
|
...(silent ? { stdio: ['ignore', 'ignore', 'ignore'] } : {}),
|
|
48
|
+
windowsHide: true,
|
|
47
49
|
});
|
|
48
50
|
return install ? install.toString() : '';
|
|
49
51
|
}
|