mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
8 lines
339 B
JavaScript
8 lines
339 B
JavaScript
|
// enhance require() to support project paths and typescript.
|
||
|
const path = require('path');
|
||
|
const appModulePath = require('app-module-path');
|
||
|
const root = path.dirname(__dirname);
|
||
|
appModulePath.addPath(path.join(root, "_build"));
|
||
|
appModulePath.addPath(path.join(root, "_build/core"));
|
||
|
appModulePath.addPath(path.join(root, "_build/ext"));
|