Skip to content

Commit fc9c343

Browse files
committed
chore: use type PackageJson from type-fest
1 parent e9d2133 commit fc9c343

File tree

7 files changed

+689
-14
lines changed

7 files changed

+689
-14
lines changed

cspell.config.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
'node_modules',
1919
'pnpm-lock.yaml',
2020
],
21+
words: ['parseable', 'opencollective'],
2122
flagWords: banWords,
2223
dictionaries: ['dictionary'],
2324
dictionaryDefinitions: [

packages/core/src/config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {
1414
AutoExternal,
1515
Format,
1616
LibConfig,
17-
PkgJson,
17+
PackageJson,
1818
RslibConfig,
1919
RslibConfigAsyncFn,
2020
RslibConfigExport,
@@ -89,7 +89,7 @@ export async function loadConfig({
8989

9090
export const composeAutoExternalConfig = (options: {
9191
autoExternal: AutoExternal;
92-
pkgJson?: PkgJson;
92+
pkgJson?: PackageJson;
9393
userExternals?: NonNullable<RsbuildConfig['output']>['externals'];
9494
}): RsbuildConfig => {
9595
const { autoExternal, pkgJson, userExternals } = options;
@@ -242,7 +242,7 @@ const composeFormatConfig = (format: Format): RsbuildConfig => {
242242
const composeAutoExtensionConfig = (
243243
config: LibConfig,
244244
autoExtension: boolean,
245-
pkgJson?: PkgJson,
245+
pkgJson?: PackageJson,
246246
): {
247247
config: RsbuildConfig;
248248
jsExtension: string;

0 commit comments

Comments
 (0)