@nrwl/nx-plugin 14.2.2 → 14.2.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [14.2.
|
|
6
|
+
## [14.2.3](https://github.com/nrwl/nx/compare/14.2.2...14.2.3) (2022-06-09)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/nx-plugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/nx-plugin",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.3",
|
|
4
4
|
"description": "Plugin for creating plugins for Nx :)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"migrations": "./migrations.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nrwl/devkit": "14.2.
|
|
31
|
-
"@nrwl/jest": "14.2.
|
|
32
|
-
"@nrwl/js": "14.2.
|
|
33
|
-
"@nrwl/linter": "14.2.
|
|
30
|
+
"@nrwl/devkit": "14.2.3",
|
|
31
|
+
"@nrwl/jest": "14.2.3",
|
|
32
|
+
"@nrwl/js": "14.2.3",
|
|
33
|
+
"@nrwl/linter": "14.2.3",
|
|
34
34
|
"fs-extra": "^10.1.0",
|
|
35
35
|
"rxjs": "^6.5.4",
|
|
36
36
|
"semver": "7.3.4",
|
|
37
37
|
"tslib": "^2.3.0"
|
|
38
38
|
},
|
|
39
39
|
"typings": "./index.d.ts",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "48246e8ba71770e0903774e513d528447af944d3"
|
|
41
41
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { JsonParseOptions } from '@nrwl/devkit';
|
|
2
|
+
import { directoryExists, fileExists } from 'nx/src/utils/fileutils';
|
|
3
|
+
export { directoryExists, fileExists };
|
|
2
4
|
/**
|
|
3
5
|
* Copies module folders from the working directory to the e2e directory
|
|
4
6
|
* @param modules a list of module names or scopes to copy
|
|
@@ -65,16 +67,6 @@ export declare function rmDist(): void;
|
|
|
65
67
|
* Get the currend `cwd` in the process
|
|
66
68
|
*/
|
|
67
69
|
export declare function getCwd(): string;
|
|
68
|
-
/**
|
|
69
|
-
* Check if a directory exists
|
|
70
|
-
* @param directoryPath Path to directory
|
|
71
|
-
*/
|
|
72
|
-
export declare function directoryExists(directoryPath: string): boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Check if a file exists.
|
|
75
|
-
* @param filePath Path to file
|
|
76
|
-
*/
|
|
77
|
-
export declare function fileExists(filePath: string): boolean;
|
|
78
70
|
/**
|
|
79
71
|
* Check if a file or directory exists.
|
|
80
72
|
* @param path Path to file or directory
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSize = exports.exists = exports.
|
|
3
|
+
exports.getSize = exports.exists = exports.getCwd = exports.rmDist = exports.cleanup = exports.readFile = exports.readJson = exports.listFiles = exports.checkFilesExist = exports.renameFile = exports.updateFile = exports.expectTestsPass = exports.copyNodeModules = exports.fileExists = exports.directoryExists = void 0;
|
|
4
4
|
const fs_extra_1 = require("fs-extra");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const paths_1 = require("./paths");
|
|
7
7
|
const devkit_1 = require("@nrwl/devkit");
|
|
8
|
+
const fileutils_1 = require("nx/src/utils/fileutils");
|
|
9
|
+
Object.defineProperty(exports, "directoryExists", { enumerable: true, get: function () { return fileutils_1.directoryExists; } });
|
|
10
|
+
Object.defineProperty(exports, "fileExists", { enumerable: true, get: function () { return fileutils_1.fileExists; } });
|
|
8
11
|
/**
|
|
9
12
|
* Copies module folders from the working directory to the e2e directory
|
|
10
13
|
* @param modules a list of module names or scopes to copy
|
|
@@ -119,38 +122,12 @@ function getCwd() {
|
|
|
119
122
|
return process.cwd();
|
|
120
123
|
}
|
|
121
124
|
exports.getCwd = getCwd;
|
|
122
|
-
/**
|
|
123
|
-
* Check if a directory exists
|
|
124
|
-
* @param directoryPath Path to directory
|
|
125
|
-
*/
|
|
126
|
-
function directoryExists(directoryPath) {
|
|
127
|
-
try {
|
|
128
|
-
return (0, fs_extra_1.statSync)(directoryPath).isDirectory();
|
|
129
|
-
}
|
|
130
|
-
catch (_a) {
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
exports.directoryExists = directoryExists;
|
|
135
|
-
/**
|
|
136
|
-
* Check if a file exists.
|
|
137
|
-
* @param filePath Path to file
|
|
138
|
-
*/
|
|
139
|
-
function fileExists(filePath) {
|
|
140
|
-
try {
|
|
141
|
-
return (0, fs_extra_1.statSync)(filePath).isFile();
|
|
142
|
-
}
|
|
143
|
-
catch (_a) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
exports.fileExists = fileExists;
|
|
148
125
|
/**
|
|
149
126
|
* Check if a file or directory exists.
|
|
150
127
|
* @param path Path to file or directory
|
|
151
128
|
*/
|
|
152
129
|
function exists(path) {
|
|
153
|
-
return directoryExists(path) || fileExists(path);
|
|
130
|
+
return (0, fileutils_1.directoryExists)(path) || (0, fileutils_1.fileExists)(path);
|
|
154
131
|
}
|
|
155
132
|
exports.exists = exists;
|
|
156
133
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/utils/testing-utils/utils.ts"],"names":[],"mappings":";;;AAAA,uCASkB;AAClB,+BAA2C;AAC3C,mCAAsC;AACtC,yCAAyC;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources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