mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 11:54:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			306 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			306 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;
 |