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'
3
3
import { evaluate } from './esbuild/evaluate.js'
4
4
5
5
/**
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
10
10
*/
11
11
12
- /** @type {Options } */
12
+ /** @type {Config } */
13
13
const defaultConfig = {
14
14
outDir : 'out' ,
15
15
preBuild : [ ] ,
@@ -19,7 +19,7 @@ const defaultConfig = {
19
19
/**
20
20
* @param {string } cwd
21
21
* @param {string[] } files
22
- * @returns {Promise<Options > }
22
+ * @returns {Promise<Config > }
23
23
*/
24
24
export async function loadConfig ( cwd , ...files ) {
25
25
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'
10
10
import resolveReact from './resolve-react.js'
11
11
12
12
/**
13
- * @param {import('../config.js').Options } options
13
+ * @param {import('../config.js').Config } options
14
14
*/
15
15
export async function build ( { outDir = 'dir' , preBuild = [ ] , postBuild = [ ] } ) {
16
16
for ( const cmd of preBuild ) {
You can’t perform that action at this time.
0 commit comments