mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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",
|
"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"
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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();
|
Loading…
Reference in a new issue