File tree Expand file tree Collapse file tree 11 files changed +11
-9
lines changed Expand file tree Collapse file tree 11 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import buildAAR from './targets/aar';
11
11
import buildCommonJS from './targets/commonjs' ;
12
12
import buildModule from './targets/module' ;
13
13
import buildTypescript from './targets/typescript' ;
14
- import { Options } from './types' ;
14
+ import type { Options } from './types' ;
15
15
16
16
// eslint-disable-next-line import/no-commonjs
17
17
const { name } = require ( '../package.json' ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import ejs from 'ejs';
4
4
import dedent from 'dedent' ;
5
5
import chalk from 'chalk' ;
6
6
import inquirer from 'inquirer' ;
7
- import yargs from 'yargs' ;
7
+ import type yargs from 'yargs' ;
8
8
import spawn from 'cross-spawn' ;
9
9
import validateNpmPackage from 'validate-npm-package-name' ;
10
10
import githubUsername from 'github-username' ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import chalk from 'chalk';
3
3
import fs from 'fs-extra' ;
4
4
import del from 'del' ;
5
5
import androidAssemble from '../utils/androidAssemble' ;
6
- import { Input } from '../types' ;
7
6
import jetifier from '../utils/jetifier' ;
7
+ import type { Input } from '../types' ;
8
8
9
9
type TargetOptions = {
10
10
androidPath : string ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import path from 'path';
2
2
import chalk from 'chalk' ;
3
3
import del from 'del' ;
4
4
import compile from '../utils/compile' ;
5
- import { Input } from '../types' ;
5
+ import type { Input } from '../types' ;
6
6
7
7
type Options = Input & {
8
8
options ?: {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import path from 'path';
2
2
import chalk from 'chalk' ;
3
3
import del from 'del' ;
4
4
import compile from '../utils/compile' ;
5
- import { Input } from '../types' ;
5
+ import type { Input } from '../types' ;
6
6
7
7
type Options = Input & {
8
8
options ?: {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import spawn from 'cross-spawn';
6
6
import del from 'del' ;
7
7
import JSON5 from 'json5' ;
8
8
import { platform } from 'os' ;
9
- import { Input } from '../types' ;
9
+ import type { Input } from '../types' ;
10
10
11
11
type Options = Input & {
12
12
options ?: { project ?: string ; tsc ?: string } ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import chalk from 'chalk';
3
3
import fs from 'fs-extra' ;
4
4
import { execFileSync } from 'child_process' ;
5
5
import { platform } from 'os' ;
6
- import { Report } from '../types' ;
6
+ import type { Report } from '../types' ;
7
7
8
8
type Options = {
9
9
root : string ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import chalk from 'chalk';
4
4
import * as babel from '@babel/core' ;
5
5
import browserslist from 'browserslist' ;
6
6
import glob from 'glob' ;
7
- import { Input } from '../types' ;
7
+ import type { Input } from '../types' ;
8
8
9
9
type Options = Input & {
10
10
babelrc ?: boolean | null | undefined ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import path from 'path';
2
2
import chalk from 'chalk' ;
3
3
import { execFileSync } from 'child_process' ;
4
4
import fs from 'fs-extra' ;
5
- import { Report } from '../types' ;
5
+ import type { Report } from '../types' ;
6
6
7
7
type Options = {
8
8
root : string ;
Original file line number Diff line number Diff line change 7
7
"allowUnreachableCode" : false ,
8
8
"allowUnusedLabels" : false ,
9
9
"esModuleInterop" : true ,
10
+ "importsNotUsedAsValues" : " error" ,
10
11
"forceConsistentCasingInFileNames" : true ,
11
12
"jsx" : " react" ,
12
13
"lib" : [" esnext" ],
You can’t perform that action at this time.
0 commit comments