(collectionName: string)
| 30 | } |
| 31 | |
| 32 | async function runNgAdd(collectionName: string): Promise<string> { |
| 33 | const collectionPath = resolve(collectionName); |
| 34 | |
| 35 | // Copy locally as bun doesn't install the dependency correctly if it has symlinks. |
| 36 | await cp(assetDir(collectionName), collectionPath, { |
| 37 | recursive: true, |
| 38 | dereference: true, |
| 39 | }); |
| 40 | |
| 41 | const { stdout } = await ng('add', collectionPath, '--skip-confirmation'); |
| 42 | |
| 43 | return stdout; |
| 44 | } |