From 9cca6d8a003d66b29f84f9bf55de677bd1d1a68b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 7 May 2013 22:07:12 -0700 Subject: [PATCH] Move the node.js folder into src. --- package.json | 2 +- projects/paperjs.sublime-project | 3 --- {node.js => src/node}/index.js | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) rename {node.js => src/node}/index.js (95%) diff --git a/package.json b/package.json index 59b59690..3ee29cc4 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/projects/paperjs.sublime-project b/projects/paperjs.sublime-project index ce9b6778..7f8c0f80 100644 --- a/projects/paperjs.sublime-project +++ b/projects/paperjs.sublime-project @@ -18,9 +18,6 @@ // jsdoc-toolkit will have its own project file "folder_exclude_patterns": ["jsdoc-toolkit"] }, - { - "path": "../node.js" - }, { "path": "..", "name": "root", diff --git a/node.js/index.js b/src/node/index.js similarity index 95% rename from node.js/index.js rename to src/node/index.js index 8262a5f6..477856c0 100644 --- a/node.js/index.js +++ b/src/node/index.js @@ -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(); \ No newline at end of file +module.exports = new context.PaperScope();