mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +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;
 | 
