pxt-calliope/cmds/pxtrequire.ts

5 lines
247 B
TypeScript
Raw Normal View History

2016-11-10 23:15:55 +01:00
import * as path from "path";
export let pxtCore = require("pxt-core");
// require.resolve() gives path to [pxt dir]/built/pxt.js, so move up twice to get pxt root dir
export let pxtCoreDir = path.resolve(require.resolve("pxt-core"), "..", "..");