Skip to content

Commit 726270a

Browse files
committed
fix build
1 parent 7c3c600 commit 726270a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/orga-build/lib/config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import path from 'node:path'
33
import { 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} */
1313
const 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
*/
2424
export async function loadConfig(cwd, ...files) {
2525
for (const file of files) {

packages/orga-build/lib/esbuild/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import rawLoader from './raw-loader.js'
1010
import resolveReact from './resolve-react.js'
1111

1212
/**
13-
* @param {import('../config.js').Options} options
13+
* @param {import('../config.js').Config} options
1414
*/
1515
export async function build({ outDir = 'dir', preBuild = [], postBuild = [] }) {
1616
for (const cmd of preBuild) {

0 commit comments

Comments
 (0)