mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
This reverts commit 0675568d03.
This commit is contained in:
@@ -7,10 +7,19 @@
|
||||
const path = require('path');
|
||||
|
||||
const tsconfigPath = path.join(__dirname, 'tools/gulp/tsconfig.json');
|
||||
const tsconfig = require(tsconfigPath);
|
||||
|
||||
// Register TS compilation.
|
||||
require('ts-node').register({
|
||||
project: tsconfigPath
|
||||
});
|
||||
|
||||
// The gulp tsconfig file maps specific imports to relative paths. In combination with ts-node
|
||||
// this doesn't work because the JavaScript output will still refer to the imports instead of
|
||||
// to the relative path. Tsconfig-paths can be used to support path mapping inside of Node.
|
||||
require("tsconfig-paths").register({
|
||||
baseUrl: path.dirname(tsconfigPath),
|
||||
paths: tsconfig.compilerOptions.paths
|
||||
});
|
||||
|
||||
require('./tools/gulp/gulpfile');
|
||||
|
||||
Reference in New Issue
Block a user