@react-native-community/cli-config 19.0.0 → 19.1.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAmB,MAAM,mCAAmC,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAmB,MAAM,mCAAmC,CAAC;;;;;;;;kBA8BrD,MAAM,EAAE,OAAO,MAAM;;AAT3C,wBAYE"}
|
package/build/commands/config.js
CHANGED
|
@@ -11,12 +11,16 @@ function filterConfig(config) {
|
|
|
11
11
|
const filtered = {
|
|
12
12
|
...config
|
|
13
13
|
};
|
|
14
|
+
const dependencies = {};
|
|
14
15
|
Object.keys(filtered.dependencies).forEach(item => {
|
|
15
|
-
if (
|
|
16
|
-
|
|
16
|
+
if (isValidRNDependency(filtered.dependencies[item])) {
|
|
17
|
+
dependencies[item] = filtered.dependencies[item];
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
|
-
return
|
|
20
|
+
return {
|
|
21
|
+
...filtered,
|
|
22
|
+
dependencies
|
|
23
|
+
};
|
|
20
24
|
}
|
|
21
25
|
var _default = {
|
|
22
26
|
name: 'config',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isValidRNDependency","config","Object","keys","platforms","filter","key","Boolean","length","filterConfig","filtered","dependencies","forEach","item","name","description","options","func","_argv","ctx","console","log","JSON","stringify"],"sources":["../../src/commands/config.ts"],"sourcesContent":["import {Config, DependencyConfig} from '@react-native-community/cli-types';\n\nfunction isValidRNDependency(config: DependencyConfig) {\n return (\n Object.keys(config.platforms).filter((key) =>\n Boolean(config.platforms[key]),\n ).length !== 0\n );\n}\n\nfunction filterConfig(config: Config) {\n const filtered = {...config};\n Object.keys(filtered.dependencies).forEach((item) => {\n if (
|
|
1
|
+
{"version":3,"names":["isValidRNDependency","config","Object","keys","platforms","filter","key","Boolean","length","filterConfig","filtered","dependencies","forEach","item","name","description","options","func","_argv","ctx","console","log","JSON","stringify"],"sources":["../../src/commands/config.ts"],"sourcesContent":["import {Config, DependencyConfig} from '@react-native-community/cli-types';\n\nfunction isValidRNDependency(config: DependencyConfig) {\n return (\n Object.keys(config.platforms).filter((key) =>\n Boolean(config.platforms[key]),\n ).length !== 0\n );\n}\n\nfunction filterConfig(config: Config) {\n const filtered = {...config};\n const dependencies: Record<string, DependencyConfig> = {};\n Object.keys(filtered.dependencies).forEach((item) => {\n if (isValidRNDependency(filtered.dependencies[item])) {\n dependencies[item] = filtered.dependencies[item];\n }\n });\n return {...filtered, dependencies};\n}\n\nexport default {\n name: 'config',\n description: 'Print CLI configuration',\n options: [\n {\n name: '--platform <platform>',\n description: 'Output configuration for a specific platform',\n },\n ],\n func: async (_argv: string[], ctx: Config) => {\n console.log(JSON.stringify(filterConfig(ctx), null, 2));\n },\n};\n"],"mappings":";;;;;;AAEA,SAASA,mBAAmB,CAACC,MAAwB,EAAE;EACrD,OACEC,MAAM,CAACC,IAAI,CAACF,MAAM,CAACG,SAAS,CAAC,CAACC,MAAM,CAAEC,GAAG,IACvCC,OAAO,CAACN,MAAM,CAACG,SAAS,CAACE,GAAG,CAAC,CAAC,CAC/B,CAACE,MAAM,KAAK,CAAC;AAElB;AAEA,SAASC,YAAY,CAACR,MAAc,EAAE;EACpC,MAAMS,QAAQ,GAAG;IAAC,GAAGT;EAAM,CAAC;EAC5B,MAAMU,YAA8C,GAAG,CAAC,CAAC;EACzDT,MAAM,CAACC,IAAI,CAACO,QAAQ,CAACC,YAAY,CAAC,CAACC,OAAO,CAAEC,IAAI,IAAK;IACnD,IAAIb,mBAAmB,CAACU,QAAQ,CAACC,YAAY,CAACE,IAAI,CAAC,CAAC,EAAE;MACpDF,YAAY,CAACE,IAAI,CAAC,GAAGH,QAAQ,CAACC,YAAY,CAACE,IAAI,CAAC;IAClD;EACF,CAAC,CAAC;EACF,OAAO;IAAC,GAAGH,QAAQ;IAAEC;EAAY,CAAC;AACpC;AAAC,eAEc;EACbG,IAAI,EAAE,QAAQ;EACdC,WAAW,EAAE,yBAAyB;EACtCC,OAAO,EAAE,CACP;IACEF,IAAI,EAAE,uBAAuB;IAC7BC,WAAW,EAAE;EACf,CAAC,CACF;EACDE,IAAI,EAAE,OAAOC,KAAe,EAAEC,GAAW,KAAK;IAC5CC,OAAO,CAACC,GAAG,CAACC,IAAI,CAACC,SAAS,CAACd,YAAY,CAACU,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;EACzD;AACF,CAAC;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-community/cli-config",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"types": "build/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@react-native-community/cli-tools": "19.
|
|
11
|
+
"@react-native-community/cli-tools": "19.1.0",
|
|
12
12
|
"chalk": "^4.1.2",
|
|
13
13
|
"cosmiconfig": "^9.0.0",
|
|
14
14
|
"deepmerge": "^4.3.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"!*.map"
|
|
22
22
|
],
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@react-native-community/cli-types": "19.
|
|
24
|
+
"@react-native-community/cli-types": "19.1.0",
|
|
25
25
|
"@types/cosmiconfig": "^5.0.3"
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/react-native-community/cli/tree/main/packages/cli-config",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"url": "https://github.com/react-native-community/cli.git",
|
|
31
31
|
"directory": "packages/cli-config"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "8f3ecef6520713e24a67869afcde51f0c466e828"
|
|
34
34
|
}
|