From fdb19b96a14858709b4392ee65f6bf73cb4e3118 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Wed, 28 Apr 2021 21:46:49 -0300 Subject: [PATCH] Add peer dependency on mem-fs and mem-fs-editor. (#288) So a stand alone generator can control mem-fs/mem-fs-editor versions. --- package-lock.json | 54 ++++++++++++++++++++++++++++++++++++++--------- package.json | 6 +++++- 2 files changed, 49 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 56bc2164..e4222ed1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,6 +66,10 @@ }, "engines": { "node": ">=12.10.0" + }, + "peerDependencies": { + "mem-fs": "^1.2.0 || ^2.0.0", + "mem-fs-editor": "^8.1.2" } }, "node_modules/@babel/code-frame": { @@ -2691,6 +2695,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", + "peer": true, "engines": { "node": ">=0.8" } @@ -2699,6 +2704,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", + "peer": true, "engines": { "node": ">= 0.10" } @@ -2715,12 +2721,14 @@ "node_modules/clone-stats": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=" + "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "peer": true }, "node_modules/cloneable-readable": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.3.tgz", "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", + "peer": true, "dependencies": { "inherits": "^2.0.1", "process-nextick-args": "^2.0.0", @@ -4999,6 +5007,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz", "integrity": "sha1-G97NuOCDwGZLkZRVgVd6Q6nzHXA=", + "peer": true, "dependencies": { "readable-stream": "^2.0.2" }, @@ -6442,7 +6451,8 @@ "node_modules/is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "peer": true }, "node_modules/is-windows": { "version": "1.0.2", @@ -7405,6 +7415,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/mem-fs/-/mem-fs-2.0.0.tgz", "integrity": "sha512-RGoSFIhXt6+2cYapkARzBaJTl3ToXeB/UWC+GV4GZ59jl41t+XKzxjBDpJK3wmm2jly0s2/Nk+tnADDt8q6qzg==", + "peer": true, "dependencies": { "vinyl": "^2.0.1", "vinyl-file": "^3.0.0" @@ -9879,7 +9890,8 @@ "node_modules/remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "peer": true }, "node_modules/repeat-element": { "version": "1.1.3", @@ -9903,6 +9915,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz", "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==", + "peer": true, "engines": { "node": ">= 0.10" } @@ -10964,6 +10977,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz", "integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=", + "peer": true, "dependencies": { "is-utf8": "^0.2.1" }, @@ -10975,6 +10989,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz", "integrity": "sha1-+H217yYT9paKpUWr/h7HKLaoKco=", + "peer": true, "dependencies": { "first-chunk-stream": "^2.0.0", "strip-bom": "^2.0.0" @@ -10987,6 +11002,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "peer": true, "dependencies": { "is-utf8": "^0.2.0" }, @@ -11848,6 +11864,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz", "integrity": "sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==", + "peer": true, "dependencies": { "clone": "^2.1.1", "clone-buffer": "^1.0.0", @@ -11864,6 +11881,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-3.0.0.tgz", "integrity": "sha1-sQTZ5ECf+jJfqt1SBkLQo7SIs2U=", + "peer": true, "dependencies": { "graceful-fs": "^4.1.2", "pify": "^2.3.0", @@ -11879,6 +11897,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -15123,12 +15142,14 @@ "clone": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=" + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", + "peer": true }, "clone-buffer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=" + "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", + "peer": true }, "clone-response": { "version": "1.0.2", @@ -15142,12 +15163,14 @@ "clone-stats": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=" + "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "peer": true }, "cloneable-readable": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.3.tgz", "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", + "peer": true, "requires": { "inherits": "^2.0.1", "process-nextick-args": "^2.0.0", @@ -16958,6 +16981,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz", "integrity": "sha1-G97NuOCDwGZLkZRVgVd6Q6nzHXA=", + "peer": true, "requires": { "readable-stream": "^2.0.2" } @@ -18011,7 +18035,8 @@ "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "peer": true }, "is-windows": { "version": "1.0.2", @@ -18790,6 +18815,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/mem-fs/-/mem-fs-2.0.0.tgz", "integrity": "sha512-RGoSFIhXt6+2cYapkARzBaJTl3ToXeB/UWC+GV4GZ59jl41t+XKzxjBDpJK3wmm2jly0s2/Nk+tnADDt8q6qzg==", + "peer": true, "requires": { "vinyl": "^2.0.1", "vinyl-file": "^3.0.0" @@ -20700,7 +20726,8 @@ "remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "peer": true }, "repeat-element": { "version": "1.1.3", @@ -20717,7 +20744,8 @@ "replace-ext": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz", - "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==" + "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==", + "peer": true }, "request": { "version": "2.88.2", @@ -21559,6 +21587,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz", "integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=", + "peer": true, "requires": { "is-utf8": "^0.2.1" } @@ -21567,6 +21596,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz", "integrity": "sha1-+H217yYT9paKpUWr/h7HKLaoKco=", + "peer": true, "requires": { "first-chunk-stream": "^2.0.0", "strip-bom": "^2.0.0" @@ -21576,6 +21606,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "peer": true, "requires": { "is-utf8": "^0.2.0" } @@ -22267,6 +22298,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz", "integrity": "sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==", + "peer": true, "requires": { "clone": "^2.1.1", "clone-buffer": "^1.0.0", @@ -22280,6 +22312,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-3.0.0.tgz", "integrity": "sha1-sQTZ5ECf+jJfqt1SBkLQo7SIs2U=", + "peer": true, "requires": { "graceful-fs": "^4.1.2", "pify": "^2.3.0", @@ -22291,7 +22324,8 @@ "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "peer": true } } }, diff --git a/package.json b/package.json index 99519897..2bca8c39 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "istextorbinary": "^5.7.0", "lodash": "^4.17.10", "log-symbols": "^4.0.0", - "mem-fs": "^2.0.0", + "mem-fs": "^1.2.0 || ^2.0.0", "mem-fs-editor": "^8.1.2", "minimatch": "^3.0.4", "npmlog": "^4.1.2", @@ -85,6 +85,10 @@ "text-table": "^0.2.0", "untildify": "^4.0.0" }, + "peerDependencies": { + "mem-fs": "^1.2.0 || ^2.0.0", + "mem-fs-editor": "^8.1.2" + }, "devDependencies": { "coveralls": "^3.0.2", "cross-spawn": "^7.0.1",