This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-15
lines changed Expand file tree Collapse file tree 3 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 11require ( '@fluentui/internal-tooling/babel/register' )
22
33const 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' )
58
69require ( 'tsconfig-paths' ) . register ( {
710 baseUrl : config . path_base ,
Original file line number Diff line number Diff line change @@ -4,17 +4,19 @@ import * as tsPaths from 'tsconfig-paths'
44
55import config from './config'
66
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' )
1210
1311tsPaths . register ( {
1412 baseUrl : config . path_base ,
1513 paths : compilerOptions . paths ,
1614} )
1715
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+
1820// load tasks in order of dependency usage
1921require ( './build/gulp/tasks/bundle' )
2022require ( './build/gulp/tasks/docs' )
Original file line number Diff line number Diff line change 11{
22 "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+ }
1213}
You can’t perform that action at this time.
0 commit comments