Skip to content

Commit

Permalink
chore: use type PackageJson from type-fest
Browse files Browse the repository at this point in the history
  • Loading branch information
shulaoda committed Aug 23, 2024
1 parent e9d2133 commit fc9c343
Show file tree
Hide file tree
Showing 7 changed files with 689 additions and 14 deletions.
1 change: 1 addition & 0 deletions cspell.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
'node_modules',
'pnpm-lock.yaml',
],
words: ['parseable', 'opencollective'],
flagWords: banWords,
dictionaries: ['dictionary'],
dictionaryDefinitions: [
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
AutoExternal,
Format,
LibConfig,
PkgJson,
PackageJson,
RslibConfig,
RslibConfigAsyncFn,
RslibConfigExport,
Expand Down Expand Up @@ -89,7 +89,7 @@ export async function loadConfig({

export const composeAutoExternalConfig = (options: {
autoExternal: AutoExternal;
pkgJson?: PkgJson;
pkgJson?: PackageJson;
userExternals?: NonNullable<RsbuildConfig['output']>['externals'];
}): RsbuildConfig => {
const { autoExternal, pkgJson, userExternals } = options;
Expand Down Expand Up @@ -242,7 +242,7 @@ const composeFormatConfig = (format: Format): RsbuildConfig => {
const composeAutoExtensionConfig = (
config: LibConfig,
autoExtension: boolean,
pkgJson?: PkgJson,
pkgJson?: PackageJson,
): {
config: RsbuildConfig;
jsExtension: string;
Expand Down
Loading

0 comments on commit fc9c343

Please sign in to comment.