Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@callstack/brownfield-cli

Package Overview
Dependencies
Maintainers
15
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@callstack/brownfield-cli - npm Package Compare versions

Comparing version
2.0.0-rc.1
to
2.0.0-rc.2
+4
dist/brownfield/utils/index.d.ts
export * from './paths.js';
export * from './rn-cli.js';
export * from './stripFrameworkBinary.js';
//# sourceMappingURL=index.d.ts.map
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/brownfield/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC"}
export * from './paths.js';
export * from './rn-cli.js';
export * from './stripFrameworkBinary.js';
import type { PackageAarFlags } from '@rock-js/platform-android';
import type { AndroidProjectConfig, Config as UserConfig, ProjectConfig } from '@react-native-community/cli-types';
/**
* Gets the project info for the given platform from the current working directory
* @param platform the platform for which to get project info
* @returns project root and android project config
*/
export declare function getProjectInfo<Platform extends 'ios' | 'android'>(platform: Platform): {
projectRoot: string;
userConfig: UserConfig;
platformConfig: ProjectConfig[Platform];
};
export declare const getAarConfig: (args: PackageAarFlags, androidConfig: AndroidProjectConfig) => {
sourceDir: string;
moduleName: string;
};
//# sourceMappingURL=rn-cli.d.ts.map
{"version":3,"file":"rn-cli.d.ts","sourceRoot":"","sources":["../../../src/brownfield/utils/rn-cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,MAAM,IAAI,UAAU,EACpB,aAAa,EACd,MAAM,mCAAmC,CAAC;AAW3C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,SAAS,KAAK,GAAG,SAAS,EAC/D,QAAQ,EAAE,QAAQ,GACjB;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;CACzC,CAmBA;AAED,eAAO,MAAM,YAAY,GACvB,MAAM,eAAe,EACrB,eAAe,oBAAoB;;;CAOpC,CAAC"}
import cliConfigImport from '@react-native-community/cli-config';
const cliConfig = typeof cliConfigImport === 'function'
? cliConfigImport
: // @ts-expect-error: interop default
cliConfigImport.default;
import { findProjectRoot, makeRelativeProjectConfigPaths } from './paths.js';
/**
* Gets the project info for the given platform from the current working directory
* @param platform the platform for which to get project info
* @returns project root and android project config
*/
export function getProjectInfo(platform) {
const projectRoot = findProjectRoot();
const userConfig = cliConfig({
projectRoot,
selectedPlatform: platform,
});
// below: relative sourceDir path is required by RN CLI's API
const platformConfig = makeRelativeProjectConfigPaths(projectRoot, userConfig.project[platform]);
if (!platformConfig) {
throw new Error(`${platform} project not found.`);
}
return { projectRoot, userConfig, platformConfig };
}
export const getAarConfig = (args, androidConfig) => {
const config = {
sourceDir: androidConfig.sourceDir,
moduleName: args.moduleName ?? '',
};
return config;
};
+5
-3
{
"name": "@callstack/brownfield-cli",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"license": "MIT",

@@ -16,3 +16,3 @@ "author": "Artur Morys-Magiera <artus9033@gmail.com>",

"repository": {
"url": "https://github.com/callstack/react-native-brownfield"
"url": "git+https://github.com/callstack/react-native-brownfield.git"
},

@@ -80,2 +80,4 @@ "description": "Brownfield CLI for React Native, gathering all packages of the RN brownfield ecosystem",

"commander": "^14.0.2",
"quicktype-core": "^23.2.6",
"quicktype-typescript-input": "^23.2.6",
"ts-morph": "^27.0.2"

@@ -103,2 +105,2 @@ },

}
}
}
# @callstack/brownfield-cli
## 1.0.4
### Patch Changes
- [#216](https://github.com/callstack/react-native-brownfield/pull/216) [`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d) Thanks [@thymikee](https://github.com/thymikee)! - chore: remove release-it
## 1.0.3
### Patch Changes
- [#213](https://github.com/callstack/react-native-brownfield/pull/213) [`2347775`](https://github.com/callstack/react-native-brownfield/commit/23477753b16ee189b82c1aee3eac98a56c79f52a) Thanks [@thymikee](https://github.com/thymikee)! - feat: create brownfield package as CLI proxy
## 1.0.2
### Patch Changes
- [`2a8563f`](https://github.com/callstack/react-native-brownfield/commit/2a8563f65ed152054ad1290caf963791a368ee9a) Thanks [@okwasniewski](https://github.com/okwasniewski)! - feat: strip framework binaries to avoid duplicate symbol errors
## 1.0.1
### Patch Changes
- [#198](https://github.com/callstack/react-native-brownfield/pull/198) [`c8c903d`](https://github.com/callstack/react-native-brownfield/commit/c8c903d0d2b78a8c06a41213dfbe781a2daf3d25) Thanks [@artus9033](https://github.com/artus9033)! - docs: added README files to all packages