Skip to content

Commit

Permalink
fix config extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Apr 22, 2020
1 parent b0613e4 commit c1eb5c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@
"args": ["build"],
"cwd": "${workspaceRoot}/packages/fluentui/react-northstar",
"env": {
"NODE_ENV": "development",
// This is used in scripts/babel/index.js to enable sourcemaps
"DEBUG": "1"
"NODE_ENV": "development"
},
"sourceMaps": true,
"console": "integratedTerminal"
Expand Down
8 changes: 5 additions & 3 deletions scripts/ts-node-register.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const tsNode = require('ts-node');
const jju = require('jju');
const fs = require('fs');
const path = require('path');
const { readConfig } = require('./read-config');

// Until ts-node re-enables caching, we're using version 7 (before caching was disabled).
// https://github.com/TypeStrong/ts-node/issues/951
Expand All @@ -12,6 +11,9 @@ tsNode.register({
// // Register ts-node so that it uses the scripts directory's tsconfig
// dir: __dirname,
// Hack to work around lack of `dir` option: manually pass in tsconfig
compilerOptions: jju.parse(fs.readFileSync(path.join(__dirname, 'tsconfig.json'))).compilerOptions,
compilerOptions: {
...readConfig(path.join(__dirname, 'typescript/tsconfig.common.json')).compilerOptions,
...readConfig(path.join(__dirname, 'tsconfig.json')).compilerOptions,
},
skipProject: true, // don't read tsconfig within ts-node
});

0 comments on commit c1eb5c0

Please sign in to comment.