function linkPackages() {
	log.bold('> linkPackages.js')

	const cwd = __dirname
	const targetDir = path.resolve(cwd, '../packages/node_modules/@micro-fleet')
	fs.ensureDirSync(targetDir)
	
	const packageDir = path.resolve(cwd, '../packages/libs')
	const packages = fs.readdirSync(packageDir)

	for (let p of packages) {
		let from = path.join(packageDir, p)
		let to = path.join(targetDir, p)
		// log.info('Ensuring', p, 'from', from, 'to', to) // For debugging
		log.info('Ensuring', p)
		fs.ensureSymlinkSync(from, to)
	}
	log.success(`Linked ${packages.length + 1} libs packages to packages/node_modules/@micro-fleet`)
}
/**
 * Creates symlinks in root node_modules pointing to all folders in /packages/libs/
 */
Creates symlinks in root node_modules pointing to all folders in /packages/libs
Creates symlinks in root node_modules pointing to all folders in / packages / libs
function linkPackages() {
	log.bold('> linkPackages.js')
	const cwd = __dirname
	const targetDir = path.resolve(cwd, '../packages/node_modules/@micro-fleet')
	fs.ensureDirSync(targetDir)
	const packageDir = path.resolve(cwd, '../packages/libs')
	const packages = fs.readdirSync(packageDir)
	for (let p of packages) {
		let from = path.join(packageDir, p)
		let to = path.join(targetDir, p)
		log.info('Ensuring', p)
		fs.ensureSymlinkSync(from, to)
	}
	log.success(`Linked ${packages.length + 1} libs packages to packages/node_modules/@micro-fleet`)
}
function linkPackages ( ) { log . bold ( '> linkPackages.js' ) const cwd = __dirname const targetDir = path . resolve ( cwd , '../packages/node_modules/@micro-fleet' ) fs . ensureDirSync ( targetDir ) const packageDir = path . resolve ( cwd , '../packages/libs' ) const packages = fs . readdirSync ( packageDir ) for ( let p of packages ) { let from = path . join ( packageDir , p ) let to = path . join ( targetDir , p ) log . info ( 'Ensuring' , p ) fs . ensureSymlinkSync ( from , to ) } log . success ( ` ${ packages . length + 1 } ` ) }
Creates symlinks in root node_modules pointing to all folders in /packages/libs
Creates symlinks in root node_modules pointing to all folders in / packages / libs
// log.info('Ensuring', p, 'from', from, 'to', to) // For debugging