Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit b5b7f0d

Browse files
committed
fix build?
1 parent 4205275 commit b5b7f0d

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

build/screener/screener.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
require('@fluentui/internal-tooling/babel/register')
22

33
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')
58

69
require('tsconfig-paths').register({
710
baseUrl: config.path_base,

gulpfile.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ import * as tsPaths from 'tsconfig-paths'
44

55
import 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

1311
tsPaths.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
1921
require('./build/gulp/tasks/bundle')
2022
require('./build/gulp/tasks/docs')

tsconfig.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
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-
]
2+
"extends": "./build/tsconfig.docs.json",
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
}

0 commit comments

Comments
 (0)