recursive-directory-case-changer
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -20,3 +20,8 @@ "use strict"; | ||
static kebabCase(str) { | ||
return (0, dashify_1.default)(str).replace(/_/g, '-'); | ||
const hasLeadingAtSign = str.startsWith('@'); | ||
const transformedStr = (0, dashify_1.default)(str).replace(/_/g, '-'); | ||
if (hasLeadingAtSign) | ||
return `@${transformedStr}`; | ||
else | ||
return transformedStr; | ||
} | ||
@@ -23,0 +28,0 @@ } |
@@ -12,2 +12,3 @@ "use strict"; | ||
const file = ` | ||
import ScopedFoo from '@scope/foo/Bar'; | ||
import fs from 'fs-extra'; | ||
@@ -24,2 +25,3 @@ import path from 'path'; | ||
const adjustedFile = ` | ||
import ScopedFoo from '@scope/foo/bar'; | ||
import fs from 'fs-extra'; | ||
@@ -26,0 +28,0 @@ import path from 'path'; |
{ | ||
"name": "recursive-directory-case-changer", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "recursive", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43043
458