File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22// @ts -check
3+ /**
4+ * @import {
5+ * Configuration,
6+ * ConfigureParams,
7+ * FileCopy,
8+ * Manifest,
9+ * Platform,
10+ * PlatformConfiguration,
11+ * PlatformPackage,
12+ * } from "./types.js";
13+ */
314import * as nodefs from "node:fs" ;
415import { createRequire } from "node:module" ;
516import * as path from "node:path" ;
@@ -27,16 +38,6 @@ import * as colors from "./utils/colors.mjs";
2738import { downloadPackage } from "./utils/npm.mjs" ;
2839import { parseArgs } from "./utils/parseargs.mjs" ;
2940
30- /**
31- * @typedef {import("./types.js").Configuration } Configuration
32- * @typedef {import("./types.js").ConfigureParams } ConfigureParams
33- * @typedef {import("./types.js").FileCopy } FileCopy
34- * @typedef {Required<import("./types.js").Manifest> } Manifest
35- * @typedef {import("./types.js").PlatformConfiguration } PlatformConfiguration
36- * @typedef {import("./types.js").PlatformPackage } PlatformPackage
37- * @typedef {import("./types.js").Platform } Platform
38- */
39-
4041/**
4142 * @param {...string } paths
4243 * @returns {{ source: string; } }
@@ -57,7 +58,7 @@ function mergeObjects(lhs, rhs) {
5758 : sortByKeys ( rhs ) ;
5859}
5960
60- /** @type {() => Manifest } */
61+ /** @type {() => Required< Manifest> } */
6162const readManifest = memo ( ( ) =>
6263 readJSONFile ( new URL ( "../package.json" , import . meta. url ) )
6364) ;
You can’t perform that action at this time.
0 commit comments