This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree 3 files changed +21
-15
lines changed
3 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 1
1
require ( '@fluentui/internal-tooling/babel/register' )
2
2
3
3
const config = require ( '../../config' ) . default
4
- const { compilerOptions } = require ( '../../build/tsconfig.docs.json' )
4
+
5
+ // Ensure that paths to local packages are interpreted properly
6
+ // (see https://github.com/microsoft/fluent-ui-react/pull/837)
7
+ const { compilerOptions } = require ( '../../tsconfig.json' )
5
8
6
9
require ( 'tsconfig-paths' ) . register ( {
7
10
baseUrl : config . path_base ,
Original file line number Diff line number Diff line change @@ -4,17 +4,19 @@ import * as tsPaths from 'tsconfig-paths'
4
4
5
5
import config from './config'
6
6
7
- const { compilerOptions } = require ( './build/tsconfig.docs.json' )
8
-
9
- // add node_modules/.bin to the path so we can invoke .bin CLIs in tasks
10
- process . env . PATH =
11
- process . env . PATH + path . delimiter + path . resolve ( __dirname , 'node_modules' , '.bin' )
7
+ // Ensure that paths to local packages are interpreted properly
8
+ // (see https://github.com/microsoft/fluent-ui-react/pull/837)
9
+ const { compilerOptions } = require ( './tsconfig.json' )
12
10
13
11
tsPaths . register ( {
14
12
baseUrl : config . path_base ,
15
13
paths : compilerOptions . paths ,
16
14
} )
17
15
16
+ // add node_modules/.bin to the path so we can invoke .bin CLIs in tasks
17
+ process . env . PATH =
18
+ process . env . PATH + path . delimiter + path . resolve ( __dirname , 'node_modules' , '.bin' )
19
+
18
20
// load tasks in order of dependency usage
19
21
require ( './build/gulp/tasks/bundle' )
20
22
require ( './build/gulp/tasks/docs' )
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ./build/tsconfig.common.json" ,
3
- "include" : [
4
- " docs/src" ,
5
- " build" ,
6
- " gulp" ,
7
- " packages/react/src" ,
8
- " packages/react/test" ,
9
- " perf/src" ,
10
- " types"
11
- ]
3
+ "compilerOptions" : {
4
+ "baseUrl" : " ." ,
5
+ "paths" : {
6
+ "@fluentui/docs" : [" docs" ],
7
+ "@fluentui/e2e" : [" e2e" ],
8
+ "@fluentui/internal-tooling" : [" build" ],
9
+ "@fluentui/perf" : [" perf" ],
10
+ "@fluentui/*" : [" packages/*/src" ]
11
+ }
12
+ }
12
13
}
You can’t perform that action at this time.
0 commit comments