File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
const childProcess = require ( 'child_process' ) ;
2
2
3
+ const BABEL_OPTIONS = `--config-file ./src/.babelrc.json --extensions '.ts,.tsx' --ignore "src/**/*.d.ts"` ;
4
+
3
5
console . info ( '## Start RNUILib Build ##' ) ;
4
6
5
7
console . info ( '## Build Typescript ##' ) ;
6
8
childProcess . execSync ( 'tsc --p tsconfig.build.json' ) ;
7
9
8
- console . info ( '## Build src files ##' ) ;
9
- childProcess . execSync ( `./node_modules/.bin/babel src --out-dir src --config-file ./src/.babelrc.json --extensions '.ts,.tsx' ` ) ;
10
+ console . info ( '## Build src files - convert TS to JS files ##' ) ;
11
+ childProcess . execSync ( `./node_modules/.bin/babel src --out-dir src ${ BABEL_OPTIONS } ` ) ;
10
12
11
- console . info ( '## Build lib (native component) files ##' ) ;
12
- childProcess . execSync ( `./node_modules/.bin/babel lib --out-dir lib --config-file ./src/.babelrc.json --extensions '.ts,.tsx' ` ) ;
13
+ console . info ( '## Build lib (native component) files - convert TS to JS files ##' ) ;
14
+ childProcess . execSync ( `./node_modules/.bin/babel lib --out-dir lib ${ BABEL_OPTIONS } ` ) ;
13
15
14
16
console . info ( '## Build standalone components packages ##' ) ;
15
17
require ( './buildPackages' ) ;
You can’t perform that action at this time.
0 commit comments