mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-11-30 17:17:55 +08:00
fix: update minify-docker.js for newer @vercel/nft (#8628)
In commit ad1a09597f, @vercel/nft is
updated to 0.17.0, and in this version fileList from nft is a set
instead of an array [1].
[1] https://github.com/vercel/nft/pull/240
This commit is contained in:
@@ -7,9 +7,10 @@ const resultFolder = 'app-minimal';
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
console.log('Start analyizing...');
|
console.log('Start analyizing...');
|
||||||
const { fileList } = await nodeFileTrace(files, {
|
const { fileList: fileSet } = await nodeFileTrace(files, {
|
||||||
base: path.resolve(path.join(__dirname, '../..')),
|
base: path.resolve(path.join(__dirname, '../..')),
|
||||||
});
|
});
|
||||||
|
const fileList = Array.from(fileSet);
|
||||||
console.log('Total files need to be copy: ' + fileList.length);
|
console.log('Total files need to be copy: ' + fileList.length);
|
||||||
return Promise.all(fileList.map((e) => fs.copy(e, path.resolve(path.join(resultFolder, e)))));
|
return Promise.all(fileList.map((e) => fs.copy(e, path.resolve(path.join(resultFolder, e)))));
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user