Skip to content

Commit 1f1a1e8

Browse files
committed
Change to providing es6 out of the box
Move directories around Make source es6 available and default script
1 parent 63e525b commit 1f1a1e8

10 files changed

Lines changed: 9 additions & 8 deletions

lib/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/index.js renamed to lib/react-autosuggest-geocoder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44175,8 +44175,8 @@ if(content.locals) module.exports = content.locals;
4417544175
if(false) {
4417644176
// When the styles change, update the <style> tags
4417744177
if(!content.locals) {
44178-
module.hot.accept("!!../node_modules/css-loader/index.js!../node_modules/sass-loader/index.js!./index.scss", function() {
44179-
var newContent = require("!!../node_modules/css-loader/index.js!../node_modules/sass-loader/index.js!./index.scss");
44178+
module.hot.accept("!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/index.js!./index.scss", function() {
44179+
var newContent = require("!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/index.js!./index.scss");
4418044180
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
4418144181
update(newContent);
4418244182
});
@@ -44510,4 +44510,4 @@ function updateLink(linkElement, obj) {
4451044510
/***/ })
4451144511
/******/ ]);
4451244512
});
44513-
//# sourceMappingURL=index.js.map
44513+
//# sourceMappingURL=react-autosuggest-geocoder.js.map

lib/react-autosuggest-geocoder.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Autosuggest addresses using a Pelias service.",
44
"version": "1.0.0-beta.2",
55
"repository": "https://github.com/abec/react-autosuggest-geocoder",
6-
"main": "lib/index.js",
6+
"main": "src/index.js",
77
"scripts": {
88
"build": "webpack",
99
"test": "jest"
@@ -78,7 +78,8 @@
7878
"mapzen"
7979
],
8080
"files": [
81-
"lib"
81+
"lib",
82+
"src"
8283
],
8384
"license": "BSD-3-Clause",
8485
"semistandard": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import { ReactAutosuggestGeocoder } from './geocoder';
33

4-
import '../styles/index.scss';
4+
import './styles/index.scss';
55

66
export { ReactAutosuggestGeocoder };
File renamed without changes.
File renamed without changes.

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var path = require('path');
33
module.exports = {
44
entry: path.join(__dirname, 'src', 'index.js'),
55
output: {
6-
filename: 'index.js',
6+
filename: 'react-autosuggest-geocoder.js',
77
path: path.join(__dirname, 'lib'),
88
library: 'ReactAutosuggestGeocoder',
99
libraryTarget: 'umd'

0 commit comments

Comments
 (0)