From 68d468c465f522b8f6851e5d871a013ec24f58d3 Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Wed, 11 Feb 2015 16:55:57 +0000 Subject: [PATCH] Add NPM and CommonJS compatibility. --- package.json | 2 +- src/js/main.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/js/main.js diff --git a/package.json b/package.json index d251f98..435f581 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "email": "me@noraesae.net" } ], - "main": "out/js/perfect-scrollbar.js", + "main": "src/js/main.js", "repository": { "type": "git", "url": "https://github.com/noraesae/perfect-scrollbar" diff --git a/src/js/main.js b/src/js/main.js new file mode 100644 index 0000000..faccca5 --- /dev/null +++ b/src/js/main.js @@ -0,0 +1,6 @@ +/* Copyright (c) 2015 Hyunje Alex Jun and other contributors + * Licensed under the MIT License + */ +'use strict'; + +module.exports = require('./plugin/ps');