Skip to content

Commit

Permalink
chore(breaking): remove initCompat a.k.a legacy "init" (#1544)
Browse files Browse the repository at this point in the history
* chore: remove global-cli

* feat: remove initCompat

* fix
  • Loading branch information
grabbou authored Feb 2, 2022
1 parent 6578485 commit 2f819db
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 198 deletions.
80 changes: 0 additions & 80 deletions __e2e__/legacyInit.test.ts

This file was deleted.

116 changes: 0 additions & 116 deletions packages/cli/src/commands/init/initCompat.ts

This file was deleted.

3 changes: 1 addition & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {Command, Config} from '@react-native-community/cli-types';
import {logger, CLIError} from '@react-native-community/cli-tools';

import {detachedCommands, projectCommands} from './commands';
import init from './commands/init/initCompat';
import loadConfig from '@react-native-community/cli-config';

const pkgJson = require('../package.json');
Expand Down Expand Up @@ -255,4 +254,4 @@ async function setupAndRun() {

const bin = require.resolve('./bin');

export {run, init, bin, loadConfig};
export {run, bin, loadConfig};

0 comments on commit 2f819db

Please sign in to comment.