Skip to content

Commit 8c78985

Browse files
committed
use relative path for AMD
1 parent dfadfa3 commit 8c78985

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

js/load-image-exif-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'use strict';
1919
if (typeof define === 'function' && define.amd) {
2020
// Register as an anonymous AMD module:
21-
define(['load-image', 'load-image-exif'], factory);
21+
define(['./load-image', './load-image-exif'], factory);
2222
} else if (typeof module === 'object' && module.exports) {
2323
factory(require('./load-image'), require('./load-image-exif'));
2424
} else {

js/load-image-exif.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616
if (typeof define === 'function' && define.amd) {
1717
// Register as an anonymous AMD module:
18-
define(['load-image', 'load-image-meta'], factory);
18+
define(['./load-image', './load-image-meta'], factory);
1919
} else if (typeof module === 'object' && module.exports) {
2020
factory(require('./load-image'), require('./load-image-meta'));
2121
} else {

js/load-image-ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020
if (typeof define === 'function' && define.amd) {
2121
// Register as an anonymous AMD module:
22-
define(['load-image'], factory);
22+
define(['./load-image'], factory);
2323
} else if (typeof module === 'object' && module.exports) {
2424
factory(require('./load-image'));
2525
} else {

js/load-image-meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020
if (typeof define === 'function' && define.amd) {
2121
// Register as an anonymous AMD module:
22-
define(['load-image'], factory);
22+
define(['./load-image'], factory);
2323
} else if (typeof module === 'object' && module.exports) {
2424
factory(require('./load-image'));
2525
} else {

js/load-image-orientation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616
if (typeof define === 'function' && define.amd) {
1717
// Register as an anonymous AMD module:
18-
define(['load-image'], factory);
18+
define(['./load-image'], factory);
1919
} else if (typeof module === 'object' && module.exports) {
2020
factory(require('./load-image'));
2121
} else {

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"mocha-phantomjs": "4.0.1",
3535
"uglify-js": "2.6.1"
3636
},
37+
"directories" : {
38+
"lib" : "js"
39+
},
3740
"scripts": {
3841
"test": "jshint js test && mocha-phantomjs test/index.html",
3942
"build": "cd js && uglifyjs load-image.js load-image-ios.js load-image-orientation.js load-image-meta.js load-image-exif.js load-image-exif-map.js -c -m -o load-image.all.min.js --source-map load-image.all.min.js.map",

0 commit comments

Comments
 (0)