Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Change require to imports (alt) #150

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/src/bundle/assetPathUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function getBasePath(asset: PackagerAsset) {
return basePath;
}

module.exports = {
export default {
getAndroidAssetSuffix,
getAndroidResourceFolderName,
getAndroidResourceIdentifier,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ if (require.main === module) {
cli.run();
}

module.exports = cli;
sidferreira marked this conversation as resolved.
Show resolved Hide resolved
export default cli;
14 changes: 7 additions & 7 deletions packages/global-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
// /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

import fs from 'fs';
import path from 'path';
import exec from 'child_process'.exec;
import execSync from 'child_process'.execSync;
import chalk from 'chalk';
import prompt from 'prompt';
import semver from 'semver';
const fs = require('fs');
const path = require('path');
const exec = require('child_process').exec;
const execSync = require('child_process').execSync;
const chalk = require('chalk');
const prompt = require('prompt');
const semver = require('semver');
/**
* Used arguments:
* -v --version - to print current version of react-native-cli and react-native dependency
Expand Down