* @private * @method copyToOutputPath * @param {String} inputPath
(inputPath)
| 97 | * @param {String} inputPath |
| 98 | */ |
| 99 | copyToOutputPath(inputPath) { |
| 100 | let outputPath = this.outputPath; |
| 101 | |
| 102 | fs.mkdirsSync(outputPath); |
| 103 | |
| 104 | if (!this.canDeleteOutputPath(outputPath)) { |
| 105 | throw new SilentError(`Using a build destination path of \`${outputPath}\` is not supported.`); |
| 106 | } |
| 107 | |
| 108 | let sync = this._sync; |
| 109 | if (sync === undefined) { |
| 110 | this._sync = sync = new Sync(inputPath, path.resolve(this.outputPath)); |
| 111 | } |
| 112 | |
| 113 | let changes = sync.sync(); |
| 114 | |
| 115 | return changes.map((op) => op[1]); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * @private |
no test coverage detected