File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import path from 'node:path'
33import { evaluate } from './esbuild/evaluate.js'
44
55/**
6- * @typedef {Object } Options
7- * @property {string } [ outDir]
8- * @property {string[] } [ preBuild]
9- * @property {string[] } [ postBuild]
6+ * @typedef {Object } Config
7+ * @property {string } outDir
8+ * @property {string[] } preBuild
9+ * @property {string[] } postBuild
1010 */
1111
12- /** @type {Options } */
12+ /** @type {Config } */
1313const defaultConfig = {
1414 outDir : 'out' ,
1515 preBuild : [ ] ,
@@ -19,7 +19,7 @@ const defaultConfig = {
1919/**
2020 * @param {string } cwd
2121 * @param {string[] } files
22- * @returns {Promise<Options > }
22+ * @returns {Promise<Config > }
2323 */
2424export async function loadConfig ( cwd , ...files ) {
2525 for ( const file of files ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import rawLoader from './raw-loader.js'
1010import resolveReact from './resolve-react.js'
1111
1212/**
13- * @param {import('../config.js').Options } options
13+ * @param {import('../config.js').Config } options
1414 */
1515export async function build ( { outDir = 'dir' , preBuild = [ ] , postBuild = [ ] } ) {
1616 for ( const cmd of preBuild ) {
You can’t perform that action at this time.
0 commit comments