File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,14 @@ const stripCode = require('gulp-strip-code');
26
26
const compareVersions = require ( 'compare-versions' ) ;
27
27
// const getTSCommonConfig = require('./getTSCommonConfig');
28
28
const replaceLib = require ( './replaceLib' ) ;
29
+ const getTSCommonConfig = require ( './getTSCommonConfig' ) ;
29
30
30
31
const packageJson = require ( getProjectPath ( 'package.json' ) ) ;
31
32
const cwd = process . cwd ( ) ;
32
33
const libDir = getProjectPath ( 'lib' ) ;
33
34
const esDir = getProjectPath ( 'es' ) ;
34
35
35
- // const tsConfig = getTSCommonConfig();
36
+ const tsConfig = getTSCommonConfig ( ) ;
36
37
37
38
function dist ( done ) {
38
39
rimraf . sync ( path . join ( cwd , 'dist' ) ) ;
@@ -73,9 +74,9 @@ function dist(done) {
73
74
74
75
async function compileTs ( modules = false , cb ) {
75
76
const options = {
76
- allowJs : true ,
77
- declaration : true ,
78
77
emitDeclarationOnly : true ,
78
+ ...tsConfig ,
79
+ moduleResolution : 2 ,
79
80
} ;
80
81
81
82
const createdFiles = { } ;
@@ -90,6 +91,7 @@ async function compileTs(modules = false, cb) {
90
91
'components/**/*.jsx' ,
91
92
'components/**/*.tsx' ,
92
93
'components/**/*.ts' ,
94
+ 'typings/**/*.d.ts' ,
93
95
'!components/*/__tests__/*' ,
94
96
'!components/*/style/*' ,
95
97
'!components/styles.ts' ,
You can’t perform that action at this time.
0 commit comments