Skip to content

Commit 778a11f

Browse files
authored
fix: export Config type from @rnef/cli (#416)
* fix: export Config type from @rnef/cli * changeset * adjust exports
1 parent 4d4dce0 commit 778a11f

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

.changeset/khaki-mice-hug.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@rnef/cli': patch
3+
'rnef-docs': patch
4+
---
5+
6+
fix: export Config type from @rnef/cli

packages/cli/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"name": "@rnef/cli",
33
"version": "0.7.25",
44
"type": "module",
5+
"types": "./dist/src/index.d.ts",
56
"exports": {
7+
".": {
8+
"types": "./dist/src/index.d.ts",
9+
"default": null
10+
},
611
"./package.json": "./package.json"
712
},
813
"bin": {

packages/cli/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './lib/cli.js';
2+
export type { Config } from '@rnef/config';

website/docs/docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The most basic configuration would, assuming you only support iOS platform and c
99
import { platformIOS } from '@rnef/platform-ios';
1010
import { pluginMetro } from '@rnef/plugin-metro';
1111

12-
/** @type {import('@rnef/config').Config} */
12+
/** @type {import('@rnef/cli').Config} */
1313
export default {
1414
bundler: pluginMetro(),
1515
platforms: {

website/docs/docs/getting-started/migrating-from-community-cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { PackageManagerTabs } from 'rspress/theme';
2424
import { platformAndroid } from '@rnef/platform-android';
2525
import { pluginMetro } from '@rnef/plugin-metro';
2626

27-
/** @type {import('@rnef/config').Config} */
27+
/** @type {import('@rnef/cli').Config} */
2828
export default {
2929
bundler: pluginMetro(),
3030
platforms: {

0 commit comments

Comments
 (0)