@rnx-kit/cli 1.0.1 → 1.0.2

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/lib/build.d.ts CHANGED
@@ -26,10 +26,10 @@ export declare const rnxBuildCommand: {
26
26
  default: string;
27
27
  parse: typeof asDestination;
28
28
  } | {
29
- default?: undefined;
30
29
  name: string;
31
30
  description: string;
32
31
  parse: typeof setCcacheDir;
32
+ default?: undefined;
33
33
  })[];
34
34
  };
35
35
  export {};
@@ -119,7 +119,7 @@ function emitBytecode(cliConfig, input, sourcemap, options) {
119
119
  const compilerSourcemap = JSON.parse(fs.readFileSync(outputMap, options));
120
120
  const { composeSourceMaps } = (0, metro_1.requireModuleFromMetro)("metro-source-map");
121
121
  const composed = composeSourceMaps([packagerSourcemap, compilerSourcemap]);
122
- (0, tools_filesystem_1.writeJSONFile)(outputMap, composed, 0);
122
+ (0, tools_filesystem_1.writeJSONFileSync)(outputMap, composed, 0);
123
123
  }
124
124
  }
125
125
  //# sourceMappingURL=hermes.js.map
@@ -74,12 +74,12 @@ async function metroBundle(metroConfig, bundleConfig, dev, minify, output = metr
74
74
  minify,
75
75
  };
76
76
  // ensure all output directories exist
77
- (0, tools_filesystem_1.ensureDir)(path.dirname(metroBundleArgs.bundleOutput), fs);
77
+ (0, tools_filesystem_1.ensureDirSync)(path.dirname(metroBundleArgs.bundleOutput), fs);
78
78
  if (metroBundleArgs.sourcemapOutput) {
79
- (0, tools_filesystem_1.ensureDir)(path.dirname(metroBundleArgs.sourcemapOutput), fs);
79
+ (0, tools_filesystem_1.ensureDirSync)(path.dirname(metroBundleArgs.sourcemapOutput), fs);
80
80
  }
81
81
  if (metroBundleArgs.assetsDest) {
82
- (0, tools_filesystem_1.ensureDir)(metroBundleArgs.assetsDest, fs);
82
+ (0, tools_filesystem_1.ensureDirSync)(metroBundleArgs.assetsDest, fs);
83
83
  }
84
84
  // create the bundle
85
85
  await output(metroBundleArgs, metroConfig);
package/lib/bundle.d.ts CHANGED
@@ -35,15 +35,15 @@ export declare const rnxBundleCommand: {
35
35
  default: string;
36
36
  parse?: undefined;
37
37
  } | {
38
- default?: undefined;
39
38
  name: string;
40
39
  description: string;
41
40
  parse: typeof import("./helpers/parsers.ts").asNumber;
42
- } | {
43
41
  default?: undefined;
42
+ } | {
44
43
  name: string;
45
44
  description: string;
46
45
  parse: typeof import("./helpers/parsers.ts").asTransformProfile;
46
+ default?: undefined;
47
47
  })[];
48
48
  };
49
49
  export {};
@@ -161,7 +161,7 @@ async function assembleAarBundle(context, packageName, { aar }, fs = nodefs) {
161
161
  ...customEnv,
162
162
  };
163
163
  const outputDir = path.join(context.options.assetsDest, "aar");
164
- (0, tools_filesystem_1.ensureDir)(outputDir);
164
+ (0, tools_filesystem_1.ensureDirSync)(outputDir, fs);
165
165
  const dest = path.join(outputDir, `${targetName}-${version}.aar`);
166
166
  const targets = [`:${targetName}:assembleRelease`];
167
167
  const targetsToCopy = [[output, dest]];
@@ -234,7 +234,7 @@ async function assembleAarBundle(context, packageName, { aar }, fs = nodefs) {
234
234
  `project(":${targetName}").projectDir = file(${JSON.stringify(androidProject)})`,
235
235
  "",
236
236
  ].join("\n");
237
- (0, tools_filesystem_1.ensureDir)(buildDir);
237
+ (0, tools_filesystem_1.ensureDirSync)(buildDir, fs);
238
238
  fs.writeFileSync(path.join(buildDir, "build.gradle"), buildGradle);
239
239
  fs.writeFileSync(path.join(buildDir, "gradle.properties"), gradleProperties);
240
240
  fs.writeFileSync(path.join(buildDir, "settings.gradle"), settingsGradle);
@@ -247,7 +247,7 @@ function copyFiles(files, destination, fs = nodefs) {
247
247
  if (!Array.isArray(files) || files.length === 0) {
248
248
  return [];
249
249
  }
250
- (0, tools_filesystem_1.ensureDir)(destination, fs);
250
+ (0, tools_filesystem_1.ensureDirSync)(destination, fs);
251
251
  return files.map((file) => {
252
252
  return cp_r(file, `${destination}/${path.basename(file)}`, fs);
253
253
  });
@@ -34,15 +34,15 @@ export declare const rnxRamBundleCommand: {
34
34
  default: string;
35
35
  parse?: undefined;
36
36
  } | {
37
- default?: undefined;
38
37
  name: string;
39
38
  description: string;
40
39
  parse: typeof import("./helpers/parsers").asNumber;
41
- } | {
42
40
  default?: undefined;
41
+ } | {
43
42
  name: string;
44
43
  description: string;
45
44
  parse: typeof import("./helpers/parsers").asTransformProfile;
45
+ default?: undefined;
46
46
  })[];
47
47
  };
48
48
  export {};
package/lib/run.d.ts CHANGED
@@ -23,10 +23,10 @@ export declare const rnxRunCommand: {
23
23
  default: string;
24
24
  parse: (destination: string) => import("./build/types.ts").DeviceType;
25
25
  } | {
26
- default?: undefined;
27
26
  name: string;
28
27
  description: string;
29
28
  parse: typeof import("./build/ccache").setCcacheDir;
29
+ default?: undefined;
30
30
  })[];
31
31
  };
32
32
  //# sourceMappingURL=run.d.ts.map
package/lib/start.d.ts CHANGED
@@ -12,10 +12,10 @@ export declare const rnxStartCommand: {
12
12
  parse: typeof asNumber;
13
13
  default: number;
14
14
  } | {
15
- parse?: undefined;
16
15
  name: string;
17
16
  description: string;
18
17
  default: string;
18
+ parse?: undefined;
19
19
  } | {
20
20
  default?: undefined;
21
21
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnx-kit/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Command-line interface for working with kit packages in your repo",
5
5
  "homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/cli#readme",
6
6
  "license": "MIT",
@@ -52,10 +52,10 @@
52
52
  "@rnx-kit/third-party-notices": "^2.0.0",
53
53
  "@rnx-kit/tools-android": "^0.2.2",
54
54
  "@rnx-kit/tools-apple": "^0.2.2",
55
- "@rnx-kit/tools-filesystem": "^0.1.0",
55
+ "@rnx-kit/tools-filesystem": "^0.2.0",
56
56
  "@rnx-kit/tools-language": "^3.0.1",
57
57
  "@rnx-kit/tools-node": "^3.0.4",
58
- "@rnx-kit/tools-react-native": "^2.3.3",
58
+ "@rnx-kit/tools-react-native": "^2.3.4",
59
59
  "@rnx-kit/types-bundle-config": "^1.0.0",
60
60
  "@rnx-kit/types-kit-config": "^1.0.0",
61
61
  "@rnx-kit/types-node": "^1.0.0",
@@ -88,6 +88,7 @@
88
88
  "@types/node": "^24.0.0",
89
89
  "@types/qrcode": "^1.4.2",
90
90
  "markdown-table": "^3.0.0",
91
+ "memfs": "^4.56.10",
91
92
  "metro": "^0.83.3",
92
93
  "metro-babel-transformer": "^0.83.1",
93
94
  "metro-config": "^0.83.3",