File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/create-react-native-library/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import dedent from 'dedent';
55import kleur from 'kleur' ;
66import yargs from 'yargs' ;
77import ora from 'ora' ;
8+ import assert from 'node:assert' ;
89import validateNpmPackage from 'validate-npm-package-name' ;
910import githubUsername from 'github-username' ;
1011import prompts , { type PromptObject } from './utils/prompts' ;
@@ -795,7 +796,7 @@ async function create(_argv: yargs.Arguments<any>) {
795796 // We have to get read the version from the example app and put to the root package json
796797 const exampleCommunityCLIVersion =
797798 examplePackageJson . devDependencies [ '@react-native-community/cli' ] ;
798- console . assert (
799+ assert (
799800 exampleCommunityCLIVersion !== undefined ,
800801 "The generated example app doesn't have community CLI installed"
801802 ) ;
You can’t perform that action at this time.
0 commit comments