1
1
/**
2
+ * @import {CompileOptions, Sources} from '../vendor/types/node-elm-compiler';
2
3
* @import {AppHash, BuildResult} from './types/build';
3
4
* @import {ApplicationElmJson, ElmJson} from './types/content';
4
- * @import {VersionString } from './types/version ';
5
+ * @import {ErrorMessageInfo } from './types/error-message ';
5
6
* @import {Options, Template} from './types/options';
6
7
* @import {Path} from './types/path';
7
- * @import {CompileOptions, Sources } from '../vendor/ types/node-elm-compiler ';
8
+ * @import {VersionString } from './ types/version ';
8
9
*/
9
10
const path = require ( 'node:path' ) ;
10
11
const crypto = require ( 'node:crypto' ) ;
@@ -334,6 +335,7 @@ async function createTemplateProject(
334
335
* @param {Options } options
335
336
* @param {string } userSrc
336
337
* @param {ApplicationElmJson } elmJson
338
+ * @returns {ApplicationElmJson }
337
339
*/
338
340
function updateSourceDirectories ( options , userSrc , elmJson ) {
339
341
let sourceDirectories = [
@@ -359,10 +361,10 @@ function updateSourceDirectories(options, userSrc, elmJson) {
359
361
360
362
/**
361
363
* @param {Options } options
362
- * @param {string } dest
363
- * @param {string } elmModulePath
364
+ * @param {Path } dest
365
+ * @param {Path } elmModulePath
364
366
* @param {Sources } compileTargets
365
- * @param {string } elmBinary
367
+ * @param {Path } elmBinary
366
368
* @param {boolean } isReviewApp
367
369
* @returns {Promise<string | null> }
368
370
*/
@@ -455,6 +457,7 @@ async function compileElmProject(
455
457
/**
456
458
* @param {Options } options
457
459
* @param {string } stderr
460
+ * @returns {ErrorMessageInfo }
458
461
*/
459
462
function compilationError ( options , stderr ) {
460
463
if ( stderr . includes ( 'DEBUG REMNANTS' ) ) {
@@ -496,6 +499,7 @@ function compilationError(options, stderr) {
496
499
* @param {Options } options
497
500
* @param {Path } reviewElmJsonPath
498
501
* @param {ElmJson } reviewElmJson
502
+ * @returns {void }
499
503
*/
500
504
function validateElmReviewVersion ( options , reviewElmJsonPath , reviewElmJson ) {
501
505
if ( options . localElmReviewSrc ) {
0 commit comments