()
| 73 | } |
| 74 | |
| 75 | findFiles() { |
| 76 | let outputPath = this.outputPath; |
| 77 | |
| 78 | try { |
| 79 | return walkSync(outputPath, { |
| 80 | directories: false, |
| 81 | }) |
| 82 | .filter((x) => x.endsWith('.css') || x.endsWith('.js')) |
| 83 | .map((x) => path.join(outputPath, x)); |
| 84 | } catch (e) { |
| 85 | if (e !== null && typeof e === 'object' && e.code === 'ENOENT') { |
| 86 | throw new Error(`No asset files found in the path provided: ${outputPath}`); |
| 87 | } else { |
| 88 | throw e; |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | }; |
no test coverage detected