mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 06:24:58 +00:00
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const fs = require('fs');
|
||
|
const { join } = require('path');
|
||
|
|
||
|
const packagesFolder = join(__dirname, '../../../');
|
||
|
|
||
|
const fileExistsInPackages = path =>
|
||
|
fs.promises
|
||
|
.access(join(packagesFolder, path))
|
||
|
.then(() => true)
|
||
|
.catch(() => false);
|
||
|
|
||
|
module.exports = fileExistsInPackages;
|