Skip to content

Commit 6eef301

Browse files
committed
chore: use nodejs assert instead of console assert
1 parent 8725a8e commit 6eef301

File tree

1 file changed

+2
-1
lines changed
  • packages/create-react-native-library/src

1 file changed

+2
-1
lines changed

packages/create-react-native-library/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import dedent from 'dedent';
55
import kleur from 'kleur';
66
import yargs from 'yargs';
77
import ora from 'ora';
8+
import assert from 'node:assert';
89
import validateNpmPackage from 'validate-npm-package-name';
910
import githubUsername from 'github-username';
1011
import 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
);

0 commit comments

Comments
 (0)