@deot/dev-shared 2.9.2 → 2.9.8
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/dist/index.cjs +0 -3
- package/dist/index.js +0 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -89,7 +89,6 @@ const toPromise = (target, promise) => {
|
|
|
89
89
|
instance.finally = (callback) => promise.finally(callback);
|
|
90
90
|
return instance;
|
|
91
91
|
};
|
|
92
|
-
/* istanbul ignore next -- @preserve */
|
|
93
92
|
const LOCAL_COMMAND_MAP = fs__namespace.existsSync(binDirectory) ? fs__namespace.readdirSync(binDirectory).reduce((pre, file) => {
|
|
94
93
|
const fullpath = path__namespace.resolve(binDirectory, file);
|
|
95
94
|
const stat = fs__namespace.statSync(fullpath);
|
|
@@ -205,7 +204,6 @@ const getNormalizePackage = (dataMap) => {
|
|
|
205
204
|
const result = [];
|
|
206
205
|
while (queue.length > 0) {
|
|
207
206
|
const node = queue.shift();
|
|
208
|
-
/* istanbul ignore next -- @preserve */
|
|
209
207
|
if (!node) return [];
|
|
210
208
|
result.push(node);
|
|
211
209
|
const dependencies = dataMap[node];
|
|
@@ -229,7 +227,6 @@ const getPackageName = (packageFolderName$, cwd) => {
|
|
|
229
227
|
};
|
|
230
228
|
const getPackageFolderName = (packageName$, cwd) => {
|
|
231
229
|
const { workspace, packageFolderName, packageName } = impl(cwd);
|
|
232
|
-
/* istanbul ignore next -- @preserve */
|
|
233
230
|
if (!workspace) return "";
|
|
234
231
|
if (packageName$ === packageName) return packageFolderName;
|
|
235
232
|
return packageName$?.replace(new RegExp(`${packageName}-?`, "g"), "");
|
package/dist/index.js
CHANGED
|
@@ -64,7 +64,6 @@ const toPromise = (target, promise) => {
|
|
|
64
64
|
instance.finally = (callback) => promise.finally(callback);
|
|
65
65
|
return instance;
|
|
66
66
|
};
|
|
67
|
-
/* istanbul ignore next -- @preserve */
|
|
68
67
|
const LOCAL_COMMAND_MAP = fs.existsSync(binDirectory) ? fs.readdirSync(binDirectory).reduce((pre, file) => {
|
|
69
68
|
const fullpath = path.resolve(binDirectory, file);
|
|
70
69
|
const stat = fs.statSync(fullpath);
|
|
@@ -180,7 +179,6 @@ const getNormalizePackage = (dataMap) => {
|
|
|
180
179
|
const result = [];
|
|
181
180
|
while (queue.length > 0) {
|
|
182
181
|
const node = queue.shift();
|
|
183
|
-
/* istanbul ignore next -- @preserve */
|
|
184
182
|
if (!node) return [];
|
|
185
183
|
result.push(node);
|
|
186
184
|
const dependencies = dataMap[node];
|
|
@@ -204,7 +202,6 @@ const getPackageName = (packageFolderName$, cwd) => {
|
|
|
204
202
|
};
|
|
205
203
|
const getPackageFolderName = (packageName$, cwd) => {
|
|
206
204
|
const { workspace, packageFolderName, packageName } = impl(cwd);
|
|
207
|
-
/* istanbul ignore next -- @preserve */
|
|
208
205
|
if (!workspace) return "";
|
|
209
206
|
if (packageName$ === packageName) return packageFolderName;
|
|
210
207
|
return packageName$?.replace(new RegExp(`${packageName}-?`, "g"), "");
|