Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"@react-native-community/eslint-config": "^2.0.0",
"@types/glob": "^7.1.1",
"@types/jest": "^26.0.15",
"@types/mkdirp": "^0.5.2",
"@types/node": "^10.0.0",
"@types/node-fetch": "^2.3.7",
"babel-jest": "^26.6.2",
Expand All @@ -51,14 +50,12 @@
"lerna": "^3.22.1",
"metro-memory-fs": "^0.66.1",
"micromatch": "^3.1.10",
"mkdirp": "^0.5.3",
"rimraf": "^3.0.2",
"slash": "^3.0.0",
"string-length": "^2.0.0",
"typescript": "^3.8.0"
},
"resolutions": {
"mkdirp": "^0.5.3",
"@types/node": "^10.0.0"
}
}
1 change: 0 additions & 1 deletion packages/cli-plugin-metro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"metro-react-native-babel-transformer": "^0.66.1",
"metro-resolver": "^0.66.1",
"metro-runtime": "^0.66.1",
"mkdirp": "^0.5.1",
"readline": "^1.3.0"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/cli-plugin-metro/src/commands/bundle/saveAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
*/

import mkdirp from 'mkdirp';
import path from 'path';
import fs from 'fs';

Expand Down Expand Up @@ -84,7 +83,7 @@ function copy(
callback: (error: NodeJS.ErrnoException) => void,
): void {
const destDir = path.dirname(dest);
mkdirp(destDir, (err?: NodeJS.ErrnoException) => {
fs.mkdir(destDir, {recursive: true}, (err?) => {
if (err) {
callback(err);
return;
Expand Down
2 changes: 0 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"leven": "^3.1.0",
"lodash": "^4.17.15",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"node-stream-zip": "^1.9.1",
"ora": "^3.4.0",
"pretty-format": "^26.6.2",
Expand All @@ -69,7 +68,6 @@
"@types/hapi__joi": "^17.1.6",
"@types/lodash": "^4.14.149",
"@types/minimist": "^1.2.0",
"@types/mkdirp": "^0.5.2",
"@types/prompts": "^2.0.9",
"@types/semver": "^6.0.2",
"@types/wcwidth": "^1.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/src/commands/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import path from 'path';
import fs from 'fs-extra';
import minimist from 'minimist';
import ora from 'ora';
import mkdirp from 'mkdirp';
import {validateProjectName} from './validate';
import DirectoryAlreadyExistsError from './errors/DirectoryAlreadyExistsError';
import printRunInstructions from './printRunInstructions';
Expand Down Expand Up @@ -50,7 +49,7 @@ async function setProjectDirectory(directory: string) {
}

try {
mkdirp.sync(directory);
fs.mkdirSync(directory, {recursive: true});
process.chdir(directory);
} catch (error) {
throw new CLIError(
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/tools/unzip.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {mkdirpSync} from 'fs-extra';
import {mkdirSync} from 'fs';
const StreamZip = require('node-stream-zip');

const unzip = async (source: string, destination: string) => {
Expand All @@ -8,7 +8,7 @@ const unzip = async (source: string, destination: string) => {
storeEntries: true,
});

mkdirpSync(destination);
mkdirSync(destination, {recursive: true});

zip.on('ready', () => {
zip.extract(null, destination, (err: Error | null) => {
Expand Down
1 change: 0 additions & 1 deletion packages/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"chalk": "^3.0.0",
"lodash": "^4.17.15",
"mime": "^2.4.1",
"mkdirp": "^0.5.1",
"node-fetch": "^2.6.0",
"open": "^6.2.0",
"semver": "^6.3.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/tools/src/releaseChecker/releaseCacheManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import path from 'path';
import fs from 'fs';
import os from 'os';
import appDirs from 'appdirsjs';
import mkdirp from 'mkdirp';
import logger from '../logger';

type ReleaseCacheKey = 'eTag' | 'lastChecked' | 'latestVersion';
Expand Down Expand Up @@ -43,7 +42,7 @@ function getCacheRootPath() {
const cachePath = appDirs({appName: 'react-native-cli', legacyPath}).cache;

if (!fs.existsSync(cachePath)) {
mkdirp.sync(cachePath);
fs.mkdirSync(cachePath, {recursive: true});
}

return cachePath;
Expand Down
3 changes: 1 addition & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const mkdirp = require('mkdirp');
const babel = require('@babel/core');
const chalk = require('chalk');
const micromatch = require('micromatch');
Expand Down Expand Up @@ -78,7 +77,7 @@ function buildFile(file, silent) {
return;
}

mkdirp.sync(path.dirname(destPath), '777');
fs.mkdirSync(path.dirname(destPath), {mode: 0o777, recursive: true});

if (
!micromatch.isMatch(file, JS_FILES_PATTERN) &&
Expand Down
9 changes: 1 addition & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2404,13 +2404,6 @@
resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6"
integrity sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=

"@types/mkdirp@^0.5.2":
version "0.5.2"
resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-0.5.2.tgz#503aacfe5cc2703d5484326b1b27efa67a339c1f"
integrity sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg==
dependencies:
"@types/node" "*"

"@types/node-fetch@^2.3.7", "@types/node-fetch@^2.5.5":
version "2.5.5"
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.5.tgz#cd264e20a81f4600a6c52864d38e7fef72485e92"
Expand Down Expand Up @@ -8338,7 +8331,7 @@ mkdirp-promise@^5.0.1:
dependencies:
mkdirp "*"

mkdirp@*, mkdirp@0.x.x, mkdirp@^0.5.1, mkdirp@^0.5.3, mkdirp@^0.5.5, mkdirp@~0.5.1:
mkdirp@*, mkdirp@0.x.x, mkdirp@^0.5.1, mkdirp@^0.5.5, mkdirp@~0.5.1:
version "0.5.5"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==
Expand Down