Skip to content

Commit c2256a8

Browse files
committed
Use camelCase over PascalCase
1 parent 928079d commit c2256a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"acorn-jsx": "4.1.0",
3636
"asyncro": "^2.0.1",
3737
"babel-polyfill": "^6.26.0",
38+
"camelcase": "^4.1.0",
3839
"chalk": "^2.3.0",
3940
"es6-promisify": "^5.0.0",
4041
"glob": "^7.1.2",
@@ -53,7 +54,6 @@
5354
"rollup-plugin-preserve-shebang": "^0.1.3",
5455
"rollup-plugin-sizes": "^0.4.2",
5556
"rollup-plugin-uglify": "^2.0.1",
56-
"uppercamelcase": "^3.0.0",
5757
"yargs": "^10.0.3"
5858
},
5959
"devDependencies": {

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ import gzipSize from 'gzip-size';
1616
import prettyBytes from 'pretty-bytes';
1717
import shebangPlugin from 'rollup-plugin-preserve-shebang';
1818
import flow from 'rollup-plugin-flow';
19-
import pascalCase from 'uppercamelcase';
19+
import camelCase from 'camelcase';
2020

2121
const readFile = promisify(fs.readFile);
2222
const stat = promisify(fs.stat);
2323
const isDir = name => stat(name).then( stats => stats.isDirectory() ).catch( () => false );
2424
const isFile = name => stat(name).then( stats => stats.isFile() ).catch( () => false );
25-
const safeVariableName = name => pascalCase(name.toLowerCase().replace(/((^[^a-zA-Z]+)|[^\w.-])|([^a-zA-Z0-9]+$)/g, ''));
25+
const safeVariableName = name => camelCase(name.toLowerCase().replace(/((^[^a-zA-Z]+)|[^\w.-])|([^a-zA-Z0-9]+$)/g, ''));
2626

2727
const FORMATS = ['es', 'cjs', 'umd'];
2828

0 commit comments

Comments
 (0)