@react-native/core-cli-utils 0.75.0-nightly-20240318-a87fb56ef → 0.75.0-nightly-20240319-d97741af6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -6
- package/dist/index.js +3 -3
- package/dist/index.js.flow +7 -5
- package/dist/private/clean.d.ts +1 -2
- package/dist/private/clean.js +1 -12
- package/dist/private/clean.js.flow +1 -2
- package/dist/private/utils.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
* @oncall react_native
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { tasks as android } from "./private/android.js";
|
|
13
|
-
import { tasks as apple } from "./private/apple.js";
|
|
14
|
-
import { tasks as clean } from "./private/clean.js";
|
|
15
12
|
declare const $$EXPORT_DEFAULT_DECLARATION$$: {
|
|
16
|
-
android:
|
|
17
|
-
apple:
|
|
18
|
-
clean:
|
|
13
|
+
android: any;
|
|
14
|
+
apple: any;
|
|
15
|
+
clean: any;
|
|
19
16
|
};
|
|
20
17
|
export default $$EXPORT_DEFAULT_DECLARATION$$;
|
|
18
|
+
export type { Task } from "./private/types";
|
package/dist/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var _clean = require("./private/clean.js");
|
|
|
19
19
|
*/
|
|
20
20
|
/* eslint sort-keys : "error" */
|
|
21
21
|
var _default = {
|
|
22
|
-
android: _android.tasks,
|
|
23
|
-
apple: _apple.tasks,
|
|
24
|
-
clean: _clean.tasks,
|
|
22
|
+
android: typeof _android.tasks,
|
|
23
|
+
apple: typeof _apple.tasks,
|
|
24
|
+
clean: typeof _clean.tasks,
|
|
25
25
|
};
|
|
26
26
|
exports.default = _default;
|
package/dist/index.js.flow
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
* @oncall react_native
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { tasks as android } from "./private/android.js";
|
|
13
|
-
import { tasks as apple } from "./private/apple.js";
|
|
14
|
-
import { tasks as clean } from "./private/clean.js";
|
|
15
|
-
|
|
16
12
|
/* eslint sort-keys : "error" */
|
|
17
|
-
declare export default {
|
|
13
|
+
declare export default {
|
|
14
|
+
android: $FlowFixMe,
|
|
15
|
+
apple: $FlowFixMe,
|
|
16
|
+
clean: $FlowFixMe,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type { Task } from "./private/types";
|
package/dist/private/clean.d.ts
CHANGED
|
@@ -12,12 +12,11 @@
|
|
|
12
12
|
import type { Task } from "./types";
|
|
13
13
|
type CleanTasks = {
|
|
14
14
|
android: (androidSrcDir: null | undefined | string) => Task[];
|
|
15
|
+
cocoapods?: (projectRootDir: string) => Task[];
|
|
15
16
|
metro: () => Task[];
|
|
16
17
|
npm: (projectRootDir: string, verifyCache?: boolean) => Task[];
|
|
17
|
-
bun: (projectRootDir: string) => Task[];
|
|
18
18
|
watchman: (projectRootDir: string) => Task[];
|
|
19
19
|
yarn: (projectRootDir: string) => Task[];
|
|
20
|
-
cocoapods?: (projectRootDir: string) => Task[];
|
|
21
20
|
};
|
|
22
21
|
/**
|
|
23
22
|
* Removes the contents of a directory matching a given pattern, but keeps the directory.
|
package/dist/private/clean.js
CHANGED
|
@@ -31,9 +31,9 @@ const rmrf = (pathname) => {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
(0, _fs.rm)(pathname, {
|
|
34
|
+
force: true,
|
|
34
35
|
maxRetries: 3,
|
|
35
36
|
recursive: true,
|
|
36
|
-
force: true,
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -133,17 +133,6 @@ const tasks = {
|
|
|
133
133
|
}
|
|
134
134
|
return _tasks;
|
|
135
135
|
},
|
|
136
|
-
/**
|
|
137
|
-
* Cleans up the Bun cache.
|
|
138
|
-
*/
|
|
139
|
-
bun: (projectRootDir) => [
|
|
140
|
-
(0, _utils.task)("🧹 Clean Bun cache", (opts) =>
|
|
141
|
-
(0, _execa.default)("bun", ["pm", "cache", "rm"], {
|
|
142
|
-
cwd: projectRootDir,
|
|
143
|
-
...opts,
|
|
144
|
-
})
|
|
145
|
-
),
|
|
146
|
-
],
|
|
147
136
|
/**
|
|
148
137
|
* Stops Watchman and clears its cache
|
|
149
138
|
*/
|
|
@@ -12,12 +12,11 @@
|
|
|
12
12
|
import type { Task } from "./types";
|
|
13
13
|
type CleanTasks = {
|
|
14
14
|
android: (androidSrcDir: ?string) => Task[],
|
|
15
|
+
cocoapods?: (projectRootDir: string) => Task[],
|
|
15
16
|
metro: () => Task[],
|
|
16
17
|
npm: (projectRootDir: string, verifyCache?: boolean) => Task[],
|
|
17
|
-
bun: (projectRootDir: string) => Task[],
|
|
18
18
|
watchman: (projectRootDir: string) => Task[],
|
|
19
19
|
yarn: (projectRootDir: string) => Task[],
|
|
20
|
-
cocoapods?: (projectRootDir: string) => Task[],
|
|
21
20
|
};
|
|
22
21
|
|
|
23
22
|
/**
|
package/dist/private/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/core-cli-utils",
|
|
3
|
-
"version": "0.75.0-nightly-
|
|
3
|
+
"version": "0.75.0-nightly-20240319-d97741af6",
|
|
4
4
|
"description": "React Native CLI library for Frameworks to build on",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
".": "./dist/index.js",
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
16
17
|
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/core-cli-utils#readme",
|
|
17
18
|
"keywords": [
|
|
18
19
|
"cli-utils",
|