mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Move the node.js folder into src.
This commit is contained in:
parent
5f56759537
commit
9cca6d8a00
3 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "paper",
|
||||
"version": "0.8.1",
|
||||
"main": "./node.js/index.js",
|
||||
"main": "./src/node/index.js",
|
||||
"engines": { "node": ">= 0.4.0" },
|
||||
"dependencies": {
|
||||
"canvas": ">= 0.7.0"
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
// jsdoc-toolkit will have its own project file
|
||||
"folder_exclude_patterns": ["jsdoc-toolkit"]
|
||||
},
|
||||
{
|
||||
"path": "../node.js"
|
||||
},
|
||||
{
|
||||
"path": "..",
|
||||
"name": "root",
|
||||
|
|
|
@ -15,7 +15,7 @@ var fs = require('fs'),
|
|||
path = require('path'),
|
||||
Canvas = require('canvas');
|
||||
|
||||
__dirname = path.resolve(__dirname, '../src/');
|
||||
__dirname = path.resolve(__dirname, '..');
|
||||
|
||||
// Create the context within which we will run the source files:
|
||||
var context = vm.createContext({
|
||||
|
@ -67,4 +67,4 @@ require.extensions['.pjs'] = function(module, uri) {
|
|||
module.exports = scope;
|
||||
};
|
||||
|
||||
module.exports = new context.PaperScope();
|
||||
module.exports = new context.PaperScope();
|
Loading…
Reference in a new issue