Skip to content

Commit

Permalink
Remove all AMD/Browser/minified bits
Browse files Browse the repository at this point in the history
If users want to build things, they should use Webpack, or Browserify,
or one of the many other options.  There's no way to please everyone, so
it seems the best approach is to just be like all the other modules that
do not do this stuff.

Separation of concerns.

Fix #120
  • Loading branch information
isaacs committed Jul 11, 2015
1 parent 63c4829 commit 41b56fa
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 78 deletions.
24 changes: 0 additions & 24 deletions Makefile

This file was deleted.

6 changes: 0 additions & 6 deletions foot.js.txt

This file was deleted.

2 changes: 0 additions & 2 deletions head.js.txt

This file was deleted.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
"version": "4.3.6",
"description": "The semantic version parser used by npm.",
"main": "semver.js",
"browser": "semver.browser.js",
"min": "semver.min.js",
"scripts": {
"test": "tap test/*.js",
"prepublish": "make"
"test": "tap test/*.js"
},
"devDependencies": {
"tap": "^1.2.0",
"uglify-js": "~2.3.6"
},
"license": "ISC",
"repository": "git://github.com/npm/node-semver.git",
"repository": "https://github.com/npm/node-semver",
"bin": {
"semver": "./bin/semver"
}
Expand Down
8 changes: 1 addition & 7 deletions semver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// export the class if we are in a Node-like system.
if (typeof module === 'object' && module.exports === exports)
exports = module.exports = SemVer;
exports = module.exports = SemVer;

// The debug function is excluded entirely from the minified version.
/* nomin */ var debug;
Expand Down Expand Up @@ -1199,7 +1197,3 @@ function outside(version, range, hilo, loose) {
}
return true;
}

// Use the define() function if we're in AMD land
if (typeof define === 'function' && define.amd)
define(exports);
15 changes: 0 additions & 15 deletions test/amd.js

This file was deleted.

19 changes: 0 additions & 19 deletions test/no-module.js

This file was deleted.

0 comments on commit 41b56fa

Please sign in to comment.