Skip to content

Commit 3181335

Browse files
jelbournmmalerba
authored andcommitted
Revert "build: publish build tools on github (#5458)" (#5526)
This reverts commit 0675568.
1 parent 38b4265 commit 3181335

File tree

8 files changed

+189
-137
lines changed

8 files changed

+189
-137
lines changed

gulpfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@
77
const path = require('path');
88

99
const tsconfigPath = path.join(__dirname, 'tools/gulp/tsconfig.json');
10+
const tsconfig = require(tsconfigPath);
1011

1112
// Register TS compilation.
1213
require('ts-node').register({
1314
project: tsconfigPath
1415
});
1516

17+
// The gulp tsconfig file maps specific imports to relative paths. In combination with ts-node
18+
// this doesn't work because the JavaScript output will still refer to the imports instead of
19+
// to the relative path. Tsconfig-paths can be used to support path mapping inside of Node.
20+
require("tsconfig-paths").register({
21+
baseUrl: path.dirname(tsconfigPath),
22+
paths: tsconfig.compilerOptions.paths
23+
});
24+
1625
require('./tools/gulp/gulpfile');

package-lock.json

Lines changed: 163 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)