You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					11 lines
				
				358 B
			
		
		
			
		
	
	
					11 lines
				
				358 B
			| 
								 
											3 years ago
										 
									 | 
							
								// Creates a `package.json` file in the CommonJS `build` folder.
							 | 
						||
| 
								 | 
							
								// That marks that whole folder as CommonJS so that Node.js doesn't complain
							 | 
						||
| 
								 | 
							
								// about `require()`-ing those files.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import fs from 'fs'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								fs.writeFileSync('./build/package.json', JSON.stringify({
							 | 
						||
| 
								 | 
							
									name: 'libphonenumber-js/build',
							 | 
						||
| 
								 | 
							
									type: 'commonjs',
							 | 
						||
| 
								 | 
							
									private: true
							 | 
						||
| 
								 | 
							
								}, null, 2), 'utf8')
							 |