Move the node.js folder into src.

This commit is contained in:
Jürg Lehni 2013-05-07 22:07:12 -07:00
parent 5f56759537
commit 9cca6d8a00
3 changed files with 3 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "paper", "name": "paper",
"version": "0.8.1", "version": "0.8.1",
"main": "./node.js/index.js", "main": "./src/node/index.js",
"engines": { "node": ">= 0.4.0" }, "engines": { "node": ">= 0.4.0" },
"dependencies": { "dependencies": {
"canvas": ">= 0.7.0" "canvas": ">= 0.7.0"

View file

@ -18,9 +18,6 @@
// jsdoc-toolkit will have its own project file // jsdoc-toolkit will have its own project file
"folder_exclude_patterns": ["jsdoc-toolkit"] "folder_exclude_patterns": ["jsdoc-toolkit"]
}, },
{
"path": "../node.js"
},
{ {
"path": "..", "path": "..",
"name": "root", "name": "root",

View file

@ -15,7 +15,7 @@ var fs = require('fs'),
path = require('path'), path = require('path'),
Canvas = require('canvas'); Canvas = require('canvas');
__dirname = path.resolve(__dirname, '../src/'); __dirname = path.resolve(__dirname, '..');
// Create the context within which we will run the source files: // Create the context within which we will run the source files:
var context = vm.createContext({ var context = vm.createContext({
@ -67,4 +67,4 @@ require.extensions['.pjs'] = function(module, uri) {
module.exports = scope; module.exports = scope;
}; };
module.exports = new context.PaperScope(); module.exports = new context.PaperScope();