gristlabs_grist-core/test/setupPaths.js

8 lines
339 B
JavaScript
Raw Normal View History

2023-01-17 21:14:15 +00:00
// 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"));