File tree Expand file tree Collapse file tree
platform-android/src/lib/commands
platform-harmony/src/lib/commands/build Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import type { RockCLIOptions } from '@rock-js/tools' ;
12import { outro } from '@rock-js/tools' ;
23import { runGradleAar } from '../runGradle.js' ;
34import { toPascalCase } from '../toPascalCase.js' ;
@@ -54,4 +55,4 @@ export const options = [
5455 name : '--module-name <string>' ,
5556 description : 'AAR module name' ,
5657 } ,
57- ] ;
58+ ] satisfies RockCLIOptions ;
Original file line number Diff line number Diff line change 1+ import type { RockCLIOptions } from '@rock-js/tools' ;
12import { outro } from '@rock-js/tools' ;
23import { runGradleAar } from '../runGradle.js' ;
34import type { AarProject } from './packageAar.js' ;
@@ -17,4 +18,4 @@ export const options = [
1718 name : '--module-name <string>' ,
1819 description : 'AAR module name' ,
1920 } ,
20- ] ;
21+ ] satisfies RockCLIOptions ;
Original file line number Diff line number Diff line change 11import type { AndroidProjectConfig } from '@react-native-community/cli-types' ;
2- import type { RemoteBuildCache } from '@rock-js/tools' ;
2+ import type { RemoteBuildCache , RockCLIOptions } from '@rock-js/tools' ;
33import {
44 colorLink ,
55 type FingerprintSources ,
@@ -104,4 +104,4 @@ export const options = [
104104 name : '--local' ,
105105 description : 'Force local build with Gradle wrapper.' ,
106106 } ,
107- ] ;
107+ ] satisfies RockCLIOptions ;
Original file line number Diff line number Diff line change 1- import type { RemoteBuildCache } from '@rock-js/tools' ;
1+ import type { RemoteBuildCache , RockCLIOptions } from '@rock-js/tools' ;
22import {
33 colorLink ,
44 type FingerprintSources ,
@@ -96,4 +96,4 @@ export const options = [
9696 description : 'OpenHarmony product defined in build-profile.json5.' ,
9797 default : 'default' ,
9898 } ,
99- ] ;
99+ ] satisfies RockCLIOptions ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export { default as cacheManager } from './lib/cacheManager.js';
77export * from './lib/parse-args.js' ;
88export * from './lib/path.js' ;
99export * from './lib/project.js' ;
10+ export * from './lib/types.js' ;
1011export * from './lib/build-cache/common.js' ;
1112export * from './lib/build-cache/localBuildCache.js' ;
1213export { getBinaryPath } from './lib/build-cache/getBinaryPath.js' ;
Original file line number Diff line number Diff line change 1+ export type RockCLIOption = {
2+ name : string ;
3+ description : string ;
4+ default ?: string ;
5+ parse ?: ( args : string ) => string | string [ ] ;
6+ } ;
7+
8+ export type RockCLIOptions = RockCLIOption [ ] ;
You can’t perform that action at this time.
0 commit comments