added missing files for pxtrequire

This commit is contained in:
Peli de Halleux 2016-11-10 14:15:55 -08:00
parent 1cec654342
commit 1f98257984
2 changed files with 7 additions and 1 deletions

4
cmds/pxtrequire.ts Normal file
View File

@ -0,0 +1,4 @@
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"), "..", "..");

View File

@ -26,6 +26,8 @@
"docs/*/*.md",
"docs/*/*/*.md"
],
"main": "built/pxtrequire.js",
"typings": "built/pxtrequire.d.ts",
"devDependencies": {
"typescript": "^1.8.7"
},
@ -34,4 +36,4 @@
"less": "^2.6.0",
"semantic-ui-less": "^2.2.4"
}
}
}