find-packages
Advanced tools
Comparing version 7.0.24 to 8.0.0
# find-packages | ||
## 8.0.0 | ||
### Major Changes | ||
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work. | ||
### Patch Changes | ||
- Updated dependencies [97b986fbc] | ||
- @pnpm/read-project-manifest@2.0.0 | ||
- @pnpm/types@7.0.0 | ||
## 7.0.24 | ||
@@ -4,0 +16,0 @@ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path_1 = __importDefault(require("path")); | ||
const read_project_manifest_1 = require("@pnpm/read-project-manifest"); | ||
const path = require("path"); | ||
const fastGlob = require("fast-glob"); | ||
const pFilter = require("p-filter"); | ||
const fast_glob_1 = __importDefault(require("fast-glob")); | ||
const p_filter_1 = __importDefault(require("p-filter")); | ||
const DEFAULT_IGNORE = [ | ||
@@ -18,9 +21,9 @@ '**/node_modules/**', | ||
globOpts.ignore = (_a = opts.ignore) !== null && _a !== void 0 ? _a : DEFAULT_IGNORE; | ||
const patterns = normalizePatterns(opts.patterns ? opts.patterns : ['.', '**']); | ||
const paths = await fastGlob(patterns, globOpts); | ||
const patterns = normalizePatterns((opts.patterns != null) ? opts.patterns : ['.', '**']); | ||
const paths = await (0, fast_glob_1.default)(patterns, globOpts); | ||
if (opts.includeRoot) { | ||
// Always include the workspace root (https://github.com/pnpm/pnpm/issues/1986) | ||
Array.prototype.push.apply(paths, await fastGlob(normalizePatterns(['.']), globOpts)); | ||
Array.prototype.push.apply(paths, await (0, fast_glob_1.default)(normalizePatterns(['.']), globOpts)); | ||
} | ||
return pFilter( | ||
return (0, p_filter_1.default)( | ||
// `Array.from()` doesn't create an intermediate instance, | ||
@@ -31,8 +34,8 @@ // unlike `array.map()` | ||
new Set(paths | ||
.map(manifestPath => path.join(root, manifestPath)) | ||
.sort((path1, path2) => path.dirname(path1).localeCompare(path.dirname(path2)))), async (manifestPath) => { | ||
.map(manifestPath => path_1.default.join(root, manifestPath)) | ||
.sort((path1, path2) => path_1.default.dirname(path1).localeCompare(path_1.default.dirname(path2)))), async (manifestPath) => { | ||
try { | ||
return { | ||
dir: path.dirname(manifestPath), | ||
...await read_project_manifest_1.readExactProjectManifest(manifestPath), | ||
dir: path_1.default.dirname(manifestPath), | ||
...await (0, read_project_manifest_1.readExactProjectManifest)(manifestPath), | ||
}; | ||
@@ -39,0 +42,0 @@ } |
{ | ||
"name": "find-packages", | ||
"version": "7.0.24", | ||
"version": "8.0.0", | ||
"description": "Find all packages inside a directory", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"prepublishOnly": "pnpm run compile", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build" | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix" | ||
}, | ||
@@ -24,5 +24,4 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/find-packages", | ||
], | ||
"author": "Zoltan Kochan <z@kochan.io> (https://www.kochan.io/)", | ||
"engines": { | ||
"node": ">=10.16" | ||
"node": ">=12.17" | ||
}, | ||
@@ -35,4 +34,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@pnpm/read-project-manifest": "1.1.7", | ||
"@pnpm/types": "6.4.0", | ||
"@pnpm/read-project-manifest": "2.0.0", | ||
"@pnpm/types": "7.0.0", | ||
"fast-glob": "^3.2.4", | ||
@@ -39,0 +38,0 @@ "p-filter": "^2.1.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8472
72
1
+ Added@pnpm/error@2.0.0(transitive)
+ Added@pnpm/read-project-manifest@2.0.0(transitive)
+ Added@pnpm/types@7.0.0(transitive)
+ Added@pnpm/write-project-manifest@2.0.0(transitive)
- Removed@pnpm/error@1.4.0(transitive)
- Removed@pnpm/read-project-manifest@1.1.7(transitive)
- Removed@pnpm/types@6.4.0(transitive)
- Removed@pnpm/write-project-manifest@1.1.7(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedgraceful-fs@4.2.4(transitive)
- Removedmz@2.7.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)
Updated@pnpm/types@7.0.0