From 1fbfc0fe6c4615fb7bda2eb9e698be9f51540399 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Wed, 29 Jun 2016 15:51:39 +0300 Subject: [PATCH] move rbush.js to index.js --- bench/perf.js | 2 +- rbush.js => index.js | 0 package.json | 4 ++-- test/test.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename rbush.js => index.js (100%) diff --git a/bench/perf.js b/bench/perf.js index ad7acab..276c86e 100644 --- a/bench/perf.js +++ b/bench/perf.js @@ -31,7 +31,7 @@ var bboxes100 = genData(1000, 100 * Math.sqrt(0.1)); var bboxes10 = genData(1000, 10); var bboxes1 = genData(1000, 1); -var rbush = typeof require !== 'undefined' ? require('../rbush.js') : rbush; +var rbush = typeof require !== 'undefined' ? require('..') : rbush; var tree = rbush(maxFill); diff --git a/rbush.js b/index.js similarity index 100% rename from rbush.js rename to index.js diff --git a/package.json b/package.json index 1692008..37de10c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ ], "author": "Vladimir Agafonkin", "license": "MIT", - "main": "rbush.js", + "main": "index.js", "devDependencies": { "benchmark": "^2.1.0", "eslint": "^2.10.2", @@ -27,7 +27,7 @@ "tape": "^4.5.1" }, "scripts": { - "test": "eslint rbush.js test/test.js && node test/test.js | faucet", + "test": "eslint index.js test/test.js && node test/test.js | faucet", "perf": "node ./debug/perf.js", "cov": "istanbul cover test/test.js -x test/test.js" }, diff --git a/test/test.js b/test/test.js index bb7c309..582eb84 100644 --- a/test/test.js +++ b/test/test.js @@ -1,8 +1,8 @@ 'use strict'; -/*eslint key-spacing: 0, comma-spacing: 0, quotes: 0*/ +/*eslint key-spacing: 0, comma-spacing: 0 */ -var rbush = require('../rbush.js'), +var rbush = require('..'), t = require('tape'); function sortedEqual(t, a, b, compare) {