mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 00:51:17 +00:00
14 lines
308 B
JavaScript
14 lines
308 B
JavaScript
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const { join } = require('path');
|
|
const packagesFolder = require('./packagesFolder');
|
|
|
|
const fileExistsInPackages = (path) =>
|
|
fs.promises
|
|
.access(join(packagesFolder, path))
|
|
.then(() => true)
|
|
.catch(() => false);
|
|
|
|
module.exports = fileExistsInPackages;
|