gristlabs_grist-core/test/setupPaths.js
2023-01-17 16:14:15 -05:00

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"));